本文整理汇总了Java中com.espertech.esper.epl.join.exec.base.RangeIndexLookupValue类的典型用法代码示例。如果您正苦于以下问题:Java RangeIndexLookupValue类的具体用法?Java RangeIndexLookupValue怎么用?Java RangeIndexLookupValue使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
RangeIndexLookupValue类属于com.espertech.esper.epl.join.exec.base包,在下文中一共展示了RangeIndexLookupValue类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: make
import com.espertech.esper.epl.join.exec.base.RangeIndexLookupValue; //导入依赖的package包/类
public static CompositeIndexLookup make(Object[] keyValues, RangeIndexLookupValue[] rangeValues, Class[] rangeCoercion) {
// construct chain
List<CompositeIndexLookup> queries = new ArrayList<CompositeIndexLookup>();
if (keyValues != null && keyValues.length > 0) {
queries.add(new CompositeIndexLookupKeyed(keyValues));
}
for (int i = 0; i < rangeValues.length; i++) {
queries.add(new CompositeIndexLookupRange(rangeValues[i], rangeCoercion[i]));
}
// Hook up as chain for remove
CompositeIndexLookup last = null;
for (CompositeIndexLookup action : queries) {
if (last != null) {
last.setNext(action);
}
last = action;
}
return queries.get(0);
}
示例2: CompositeIndexLookupRange
import com.espertech.esper.epl.join.exec.base.RangeIndexLookupValue; //导入依赖的package包/类
public CompositeIndexLookupRange(RangeIndexLookupValue lookupValue, Class coercionType) {
this.lookupValue = lookupValue;
this.coercionType = coercionType;
}
示例3: snapshot
import com.espertech.esper.epl.join.exec.base.RangeIndexLookupValue; //导入依赖的package包/类
public static Collection<EventBean> snapshot(QueryGraph queryGraph,
Annotation[] annotations,
VirtualDWView virtualDataWindow,
EventTableIndexRepository indexRepository,
boolean queryPlanLogging,
Logger queryPlanLogDestination,
String objectName,
AgentInstanceContext agentInstanceContext) {
QueryGraphValue queryGraphValue = queryGraph == null ? null : queryGraph.getGraphValue(QueryGraph.SELF_STREAM, 0);
if (queryGraphValue == null || queryGraphValue.getItems().isEmpty()) {
if (virtualDataWindow != null) {
Pair<IndexMultiKey, EventTable> pair = virtualDataWindow.getFireAndForgetDesc(Collections.<String>emptySet(), Collections.<String>emptySet());
return virtualDataWindow.getFireAndForgetData(pair.getSecond(), CollectionUtil.OBJECTARRAY_EMPTY, new RangeIndexLookupValue[0], annotations);
}
return null;
}
// determine custom index
NullableObject<Collection<EventBean>> customResult = snapshotCustomIndex(queryGraphValue, indexRepository, annotations, agentInstanceContext, queryPlanLogging, queryPlanLogDestination, objectName);
if (customResult != null) {
return customResult.getObject();
}
// determine lookup based on hash-keys and ranges
QueryGraphValuePairHashKeyIndex keysAvailable = queryGraphValue.getHashKeyProps();
Set<String> keyNamesAvailable = keysAvailable.getIndexed().length == 0 ? Collections.<String>emptySet() : new HashSet<>(Arrays.asList(keysAvailable.getIndexed()));
QueryGraphValuePairRangeIndex rangesAvailable = queryGraphValue.getRangeProps();
Set<String> rangeNamesAvailable = rangesAvailable.getIndexed().length == 0 ? Collections.<String>emptySet() : new HashSet<>(Arrays.asList(rangesAvailable.getIndexed()));
Pair<IndexMultiKey, EventTableAndNamePair> tablePair;
// find index that matches the needs
tablePair = findIndex(keyNamesAvailable, rangeNamesAvailable, indexRepository, virtualDataWindow, annotations);
// regular index lookup
if (tablePair != null) {
return snapshotIndex(keysAvailable, rangesAvailable, tablePair, virtualDataWindow, annotations, agentInstanceContext, queryPlanLogging, queryPlanLogDestination, objectName);
}
// in-keyword lookup
NullableObject<Collection<EventBean>> inkwResult = snapshotInKeyword(queryGraphValue, indexRepository, virtualDataWindow, annotations, agentInstanceContext, queryPlanLogging, queryPlanLogDestination, objectName);
if (inkwResult != null) {
return inkwResult.getObject();
}
queryPlanReportTableScan(annotations, agentInstanceContext, queryPlanLogging, queryPlanLogDestination, objectName);
return null;
}
示例4: getFireAndForgetData
import com.espertech.esper.epl.join.exec.base.RangeIndexLookupValue; //导入依赖的package包/类
public Collection<EventBean> getFireAndForgetData(EventTable eventTable, Object[] keyValues, RangeIndexLookupValue[] rangeValues, Annotation[] accessedByStmtAnnotations);
示例5: lookupConstants
import com.espertech.esper.epl.join.exec.base.RangeIndexLookupValue; //导入依赖的package包/类
public abstract Set<EventBean> lookupConstants(RangeIndexLookupValue lookupValueBase);