当前位置: 首页>>代码示例>>Java>>正文


Java RangeIndexLookupValue类代码示例

本文整理汇总了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);
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:21,代码来源:CompositeIndexLookupFactory.java

示例2: CompositeIndexLookupRange

import com.espertech.esper.epl.join.exec.base.RangeIndexLookupValue; //导入依赖的package包/类
public CompositeIndexLookupRange(RangeIndexLookupValue lookupValue, Class coercionType) {
    this.lookupValue = lookupValue;
    this.coercionType = coercionType;
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:5,代码来源:CompositeIndexLookupRange.java

示例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;
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:49,代码来源:FireAndForgetQueryExec.java

示例4: getFireAndForgetData

import com.espertech.esper.epl.join.exec.base.RangeIndexLookupValue; //导入依赖的package包/类
public Collection<EventBean> getFireAndForgetData(EventTable eventTable, Object[] keyValues, RangeIndexLookupValue[] rangeValues, Annotation[] accessedByStmtAnnotations); 
开发者ID:espertechinc,项目名称:esper,代码行数:2,代码来源:VirtualDWView.java

示例5: lookupConstants

import com.espertech.esper.epl.join.exec.base.RangeIndexLookupValue; //导入依赖的package包/类
public abstract Set<EventBean> lookupConstants(RangeIndexLookupValue lookupValueBase); 
开发者ID:espertechinc,项目名称:esper,代码行数:2,代码来源:PropertySortedEventTable.java


注:本文中的com.espertech.esper.epl.join.exec.base.RangeIndexLookupValue类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。