/* * ************************************************************************************* * Copyright (C) 2008 EsperTech, Inc. All rights reserved. * * http://esper.codehaus.org * * http://www.espertech.com * * ---------------------------------------------------------------------------------- * * The software in this package is published under the terms of the GPL license * * a copy of which has been included with this distribution in the license.txt file. * * ************************************************************************************* */ package com.espertech.esper.epl.spec; import com.espertech.esper.epl.expression.ExprNode; import com.espertech.esper.filter.FilterSpecCompiled; import java.util.ArrayList; import java.util.List; public class ContextDetailPartitioned implements ContextDetail { private static final long serialVersionUID = -7754347180148095977L; private final List<ContextDetailPartitionItem> items; public ContextDetailPartitioned(List<ContextDetailPartitionItem> items) { this.items = items; } public List<ContextDetailPartitionItem> getItems() { return items; } public List<FilterSpecCompiled> getFilterSpecsIfAny() { List<FilterSpecCompiled> filters = new ArrayList<FilterSpecCompiled>(items.size()); for (ContextDetailPartitionItem item : items) { filters.add(item.getFilterSpecCompiled()); } return filters; } }