本文整理汇总了Java中com.espertech.esper.epl.join.table.PropertyCompositeEventTable类的典型用法代码示例。如果您正苦于以下问题:Java PropertyCompositeEventTable类的具体用法?Java PropertyCompositeEventTable怎么用?Java PropertyCompositeEventTable使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
PropertyCompositeEventTable类属于com.espertech.esper.epl.join.table包,在下文中一共展示了PropertyCompositeEventTable类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: lookup
import com.espertech.esper.epl.join.table.PropertyCompositeEventTable; //导入依赖的package包/类
public Iterator<EventBean> lookup(EventBean lookupEvent, EventTable indexTable, ExprEvaluatorContext context)
{
// The table may not be indexed as the cache may not actively cache, in which case indexing doesn't makes sense
if (indexTable instanceof PropertyCompositeEventTable)
{
PropertyCompositeEventTable table = (PropertyCompositeEventTable) indexTable;
Map<Object, Object> index = table.getIndex();
Set<EventBean> events = chain.get(lookupEvent, index, context);
if (events != null)
{
return events.iterator();
}
return null;
}
return indexTable.iterator();
}
示例2: lookup
import com.espertech.esper.epl.join.table.PropertyCompositeEventTable; //导入依赖的package包/类
public Iterator<EventBean> lookup(EventBean lookupEvent, EventTable[] indexTable, ExprEvaluatorContext context) {
// The table may not be indexed as the cache may not actively cache, in which case indexing doesn't makes sense
if (indexTable[0] instanceof PropertyCompositeEventTable) {
PropertyCompositeEventTable table = (PropertyCompositeEventTable) indexTable[0];
Map<Object, Object> index = table.getIndex();
Set<EventBean> events = chain.get(lookupEvent, index, context, table.getPostProcessor());
if (events != null) {
return events.iterator();
}
return null;
}
return indexTable[0].iterator();
}
示例3: CompositeTableLookupStrategy
import com.espertech.esper.epl.join.table.PropertyCompositeEventTable; //导入依赖的package包/类
public CompositeTableLookupStrategy(EventType eventType, int lookupStream, List<QueryGraphValueEntryHashKeyed> hashKeys, List<QueryGraphValueEntryRange> rangeKeyPairs, PropertyCompositeEventTable index) {
this.eventType = eventType;
this.index = index;
this.rangeKeyPairs = rangeKeyPairs;
chain = CompositeIndexQueryFactory.makeJoinSingleLookupStream(false, lookupStream, hashKeys, index.getOptKeyCoercedTypes(), rangeKeyPairs, index.getOptRangeCoercedTypes());
Deque<String> expressionTexts = new ArrayDeque<String>();
for (QueryGraphValueEntryRange pair : rangeKeyPairs) {
ExprNode[] expressions = pair.getExpressions();
for (ExprNode node : expressions) {
expressionTexts.add(ExprNodeUtilityCore.toExpressionStringMinPrecedenceSafe(node));
}
}
lookupStrategyDesc = new LookupStrategyDesc(LookupStrategyType.COMPOSITE, expressionTexts.toArray(new String[expressionTexts.size()]));
}
示例4: CompositeTableLookupStrategy
import com.espertech.esper.epl.join.table.PropertyCompositeEventTable; //导入依赖的package包/类
/**
* Ctor.
* @param eventType - event type to expect for lookup
* @param index - index to look up in
*/
public CompositeTableLookupStrategy(EventType eventType, int lookupStream, List<QueryGraphValueEntryHashKeyed> hashKeys, List<QueryGraphValueEntryRange> rangeKeyPairs, PropertyCompositeEventTable index)
{
this.eventType = eventType;
this.index = index;
this.rangeKeyPairs = rangeKeyPairs;
chain = CompositeIndexQueryFactory.makeJoinSingleLookupStream(false, lookupStream, hashKeys, index.getOptKeyCoercedTypes(), rangeKeyPairs, index.getOptRangeCoercedTypes());
}
示例5: makeStrategyInternal
import com.espertech.esper.epl.join.table.PropertyCompositeEventTable; //导入依赖的package包/类
public JoinExecTableLookupStrategy makeStrategyInternal(EventTable[] eventTable, EventType[] eventTypes) {
PropertyCompositeEventTable index = (PropertyCompositeEventTable) eventTable[0];
return new CompositeTableLookupStrategy(eventTypes[this.getLookupStream()], this.getLookupStream(), hashKeys, rangeKeyPairs, index);
}
示例6: makeStrategy
import com.espertech.esper.epl.join.table.PropertyCompositeEventTable; //导入依赖的package包/类
public SubordTableLookupStrategy makeStrategy(EventTable[] eventTable, VirtualDWView vdw) {
return new SubordCompositeTableLookupStrategy(innerIndexQuery, (PropertyCompositeEventTable) eventTable[0], strategyDesc);
}
示例7: SubordCompositeTableLookupStrategy
import com.espertech.esper.epl.join.table.PropertyCompositeEventTable; //导入依赖的package包/类
public SubordCompositeTableLookupStrategy(CompositeIndexQuery innerIndexQuery, PropertyCompositeEventTable index, LookupStrategyDesc strategyDesc) {
this.innerIndexQuery = innerIndexQuery;
this.index = index;
this.strategyDesc = strategyDesc;
}
示例8: getIndex
import com.espertech.esper.epl.join.table.PropertyCompositeEventTable; //导入依赖的package包/类
/**
* Returns index to look up in.
* @return index to use
*/
public PropertyCompositeEventTable getIndex()
{
return index;
}
示例9: makeStrategyInternal
import com.espertech.esper.epl.join.table.PropertyCompositeEventTable; //导入依赖的package包/类
public JoinExecTableLookupStrategy makeStrategyInternal(EventTable eventTable, EventType[] eventTypes)
{
PropertyCompositeEventTable index = (PropertyCompositeEventTable) eventTable;
return new CompositeTableLookupStrategy(eventTypes[this.getLookupStream()], this.getLookupStream(), hashKeys, rangeKeyPairs, index);
}
示例10: makeStrategy
import com.espertech.esper.epl.join.table.PropertyCompositeEventTable; //导入依赖的package包/类
public SubordTableLookupStrategy makeStrategy(EventTable eventTable) {
return new SubordCompositeTableLookupStrategy(innerIndexQuery, (PropertyCompositeEventTable) eventTable);
}
示例11: SubordCompositeTableLookupStrategy
import com.espertech.esper.epl.join.table.PropertyCompositeEventTable; //导入依赖的package包/类
public SubordCompositeTableLookupStrategy(CompositeIndexQuery innerIndexQuery, PropertyCompositeEventTable index) {
this.innerIndexQuery = innerIndexQuery;
this.index = index;
}
示例12: getIndex
import com.espertech.esper.epl.join.table.PropertyCompositeEventTable; //导入依赖的package包/类
/**
* Returns index to look up in.
*
* @return index to use
*/
public PropertyCompositeEventTable getIndex() {
return index;
}