當前位置: 首頁>>代碼示例>>Java>>正文


Java QueryGraphValueEntryHashKeyed類代碼示例

本文整理匯總了Java中com.espertech.esper.epl.join.plan.QueryGraphValueEntryHashKeyed的典型用法代碼示例。如果您正苦於以下問題:Java QueryGraphValueEntryHashKeyed類的具體用法?Java QueryGraphValueEntryHashKeyed怎麽用?Java QueryGraphValueEntryHashKeyed使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


QueryGraphValueEntryHashKeyed類屬於com.espertech.esper.epl.join.plan包,在下文中一共展示了QueryGraphValueEntryHashKeyed類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: makeJoinSingleLookupStream

import com.espertech.esper.epl.join.plan.QueryGraphValueEntryHashKeyed; //導入依賴的package包/類
public static CompositeIndexQuery makeJoinSingleLookupStream(boolean isNWOnTrigger, int lookupStream, List<QueryGraphValueEntryHashKeyed> hashKeys, Class[] keyCoercionTypes, List<QueryGraphValueEntryRange> rangeProps, Class[] rangeCoercionTypes) {
    // construct chain
    List<CompositeIndexQuery> queries = new ArrayList<CompositeIndexQuery>();
    if (hashKeys.size() > 0) {
        queries.add(new CompositeIndexQueryKeyed(false, lookupStream, -1, hashKeys, keyCoercionTypes));
    }
    int count = 0;
    for (QueryGraphValueEntryRange rangeProp : rangeProps) {
        Class coercionType = rangeCoercionTypes == null ? null : rangeCoercionTypes[count];
        SubordPropRangeKey rkey = new SubordPropRangeKey(rangeProp, coercionType);
        queries.add(new CompositeIndexQueryRange(isNWOnTrigger, lookupStream, -1, rkey, coercionType, new ArrayList<String>()));
        count++;
    }

    // Hook up as chain for remove
    CompositeIndexQuery last = null;
    for (CompositeIndexQuery action : queries) {
        if (last != null) {
            last.setNext(action);
        }
        last = action;
    }
    return queries.get(0);
}
 
開發者ID:espertechinc,項目名稱:esper,代碼行數:25,代碼來源:CompositeIndexQueryFactory.java

示例2: CompositeIndexQueryKeyed

import com.espertech.esper.epl.join.plan.QueryGraphValueEntryHashKeyed; //導入依賴的package包/類
public CompositeIndexQueryKeyed(boolean isNWOnTrigger, int lookupStream, int numStreams, List<QueryGraphValueEntryHashKeyed> hashKeys, Class[] keyCoercionTypes) {
    this.keyCoercionTypes  = keyCoercionTypes;
    this.evaluators = new ExprEvaluator[hashKeys.size()];
    this.isNWOnTrigger = isNWOnTrigger;
    this.lookupStream = lookupStream;

    for (int i = 0; i < evaluators.length; i++) {
        evaluators[i] = hashKeys.get(i).getKeyExpr().getExprEvaluator();
    }
    if (lookupStream != -1) {
        events = new EventBean[lookupStream + 1];
    }
    else {
        events = new EventBean[numStreams + 1];
    }
}
 
開發者ID:mobile-event-processing,項目名稱:Asper,代碼行數:17,代碼來源:CompositeIndexQueryKeyed.java

示例3: makeJoinSingleLookupStream

import com.espertech.esper.epl.join.plan.QueryGraphValueEntryHashKeyed; //導入依賴的package包/類
public static CompositeIndexQuery makeJoinSingleLookupStream(boolean isNWOnTrigger, int lookupStream, List<QueryGraphValueEntryHashKeyed> hashKeys, Class[] keyCoercionTypes, List<QueryGraphValueEntryRange> rangeProps, Class[] rangeCoercionTypes) {
    // construct chain
    List<CompositeIndexQuery> queries = new ArrayList<CompositeIndexQuery>();
    if (hashKeys.size() > 0) {
        queries.add(new CompositeIndexQueryKeyed(false, lookupStream, -1, hashKeys, keyCoercionTypes));
    }
    int count = 0;
    for (QueryGraphValueEntryRange rangeProp : rangeProps) {
        Class coercionType = rangeCoercionTypes == null ? null : rangeCoercionTypes[count];
        SubordPropRangeKey rkey = new SubordPropRangeKey(rangeProp, coercionType);
        queries.add(new CompositeIndexQueryRange(isNWOnTrigger, lookupStream, -1, rkey, coercionType));
        count++;
    }

    // Hook up as chain for remove
    CompositeIndexQuery last = null;
    for (CompositeIndexQuery action : queries) {
        if (last != null) {
            last.setNext(action);
        }
        last = action;
    }
    return queries.get(0);
}
 
開發者ID:mobile-event-processing,項目名稱:Asper,代碼行數:25,代碼來源:CompositeIndexQueryFactory.java

示例4: HistoricalIndexLookupStrategyIndex

import com.espertech.esper.epl.join.plan.QueryGraphValueEntryHashKeyed; //導入依賴的package包/類
public HistoricalIndexLookupStrategyIndex(EventType eventType, int lookupStream, List<QueryGraphValueEntryHashKeyed> hashKeys) {
    this.evaluators = new ExprEvaluator[hashKeys.size()];
    for (int i = 0; i < hashKeys.size(); i++) {
        evaluators[i] = hashKeys.get(i).getKeyExpr().getForge().getExprEvaluator();
    }
    this.eventsPerStream = new EventBean[lookupStream + 1];
    this.lookupStream = lookupStream;
}
 
開發者ID:espertechinc,項目名稱:esper,代碼行數:9,代碼來源:HistoricalIndexLookupStrategyIndex.java

示例5: CompositeTableLookupStrategy

import com.espertech.esper.epl.join.plan.QueryGraphValueEntryHashKeyed; //導入依賴的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()]));
}
 
開發者ID:espertechinc,項目名稱:esper,代碼行數:16,代碼來源:CompositeTableLookupStrategy.java

示例6: CompositeIndexQueryKeyed

import com.espertech.esper.epl.join.plan.QueryGraphValueEntryHashKeyed; //導入依賴的package包/類
public CompositeIndexQueryKeyed(boolean isNWOnTrigger, int lookupStream, int numStreams, List<QueryGraphValueEntryHashKeyed> hashKeys, Class[] keyCoercionTypes) {
    this.keyCoercionTypes = keyCoercionTypes;
    this.evaluators = new ExprEvaluator[hashKeys.size()];
    this.isNWOnTrigger = isNWOnTrigger;
    this.lookupStream = lookupStream;

    for (int i = 0; i < evaluators.length; i++) {
        evaluators[i] = hashKeys.get(i).getKeyExpr().getForge().getExprEvaluator();
    }
    if (lookupStream != -1) {
        events = new EventBean[lookupStream + 1];
    } else {
        events = new EventBean[numStreams + 1];
    }
}
 
開發者ID:espertechinc,項目名稱:esper,代碼行數:16,代碼來源:CompositeIndexQueryKeyed.java

示例7: makeSubordinate

import com.espertech.esper.epl.join.plan.QueryGraphValueEntryHashKeyed; //導入依賴的package包/類
public static CompositeIndexQuery makeSubordinate(boolean isNWOnTrigger, int numOuterStreams, Collection<SubordPropHashKey> keyExpr, Class[] coercionKeyTypes, Collection<SubordPropRangeKey> rangeProps, Class[] rangeCoercionTypes, List<String> expressionTexts) {
    // construct chain
    List<CompositeIndexQuery> queries = new ArrayList<CompositeIndexQuery>();
    if (keyExpr.size() > 0) {
        List<QueryGraphValueEntryHashKeyed> hashKeys = new ArrayList<QueryGraphValueEntryHashKeyed>();
        for (SubordPropHashKey keyExp : keyExpr) {
            expressionTexts.add(ExprNodeUtilityCore.toExpressionStringMinPrecedenceSafe(keyExp.getHashKey().getKeyExpr()));
            hashKeys.add(keyExp.getHashKey());
        }
        queries.add(new CompositeIndexQueryKeyed(isNWOnTrigger, -1, numOuterStreams, hashKeys, coercionKeyTypes));
    }
    int count = 0;
    for (SubordPropRangeKey rangeProp : rangeProps) {
        Class coercionType = rangeCoercionTypes == null ? null : rangeCoercionTypes[count];
        queries.add(new CompositeIndexQueryRange(isNWOnTrigger, -1, numOuterStreams, rangeProp, coercionType, expressionTexts));
        count++;
    }

    // Hook up as chain for remove
    CompositeIndexQuery last = null;
    for (CompositeIndexQuery action : queries) {
        if (last != null) {
            last.setNext(action);
        }
        last = action;
    }
    return queries.get(0);
}
 
開發者ID:espertechinc,項目名稱:esper,代碼行數:29,代碼來源:CompositeIndexQueryFactory.java

示例8: getPropertyTypes

import com.espertech.esper.epl.join.plan.QueryGraphValueEntryHashKeyed; //導入依賴的package包/類
private Class[] getPropertyTypes(List<QueryGraphValueEntryHashKeyed> hashKeys) {
    Class[] types = new Class[hashKeys.size()];
    for (int i = 0; i < hashKeys.size(); i++) {
        types[i] = JavaClassHelper.getBoxedType(hashKeys.get(i).getKeyExpr().getForge().getEvaluationType());
    }
    return types;
}
 
開發者ID:espertechinc,項目名稱:esper,代碼行數:8,代碼來源:HistoricalStreamIndexList.java

示例9: HistoricalIndexLookupStrategyIndexSingle

import com.espertech.esper.epl.join.plan.QueryGraphValueEntryHashKeyed; //導入依賴的package包/類
/**
 * Ctor.
 */
public HistoricalIndexLookupStrategyIndexSingle(int lookupStream, QueryGraphValueEntryHashKeyed hashKey)
{
    this.eventsPerStream = new EventBean[lookupStream + 1];
    this.evaluator = hashKey.getKeyExpr().getExprEvaluator();
    this.lookupStream = lookupStream;
}
 
開發者ID:mobile-event-processing,項目名稱:Asper,代碼行數:10,代碼來源:HistoricalIndexLookupStrategyIndexSingle.java

示例10: HistoricalIndexLookupStrategyIndex

import com.espertech.esper.epl.join.plan.QueryGraphValueEntryHashKeyed; //導入依賴的package包/類
/**
 * Ctor.
 * @param eventType - event type to expect for lookup
 */
public HistoricalIndexLookupStrategyIndex(EventType eventType, int lookupStream, List<QueryGraphValueEntryHashKeyed> hashKeys)
{
    this.evaluators = new ExprEvaluator[hashKeys.size()];
    for (int i = 0; i < hashKeys.size(); i++) {
        evaluators[i] = hashKeys.get(i).getKeyExpr().getExprEvaluator();
    }
    this.eventsPerStream = new EventBean[lookupStream + 1];
    this.lookupStream = lookupStream;
}
 
開發者ID:mobile-event-processing,項目名稱:Asper,代碼行數:14,代碼來源:HistoricalIndexLookupStrategyIndex.java

示例11: CompositeTableLookupStrategy

import com.espertech.esper.epl.join.plan.QueryGraphValueEntryHashKeyed; //導入依賴的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());
}
 
開發者ID:mobile-event-processing,項目名稱:Asper,代碼行數:13,代碼來源:CompositeTableLookupStrategy.java

示例12: makeSubordinate

import com.espertech.esper.epl.join.plan.QueryGraphValueEntryHashKeyed; //導入依賴的package包/類
public static CompositeIndexQuery makeSubordinate(boolean isNWOnTrigger, int numOuterStreams, Collection<SubordPropHashKey> keyExpr, Class[] coercionKeyTypes, Collection<SubordPropRangeKey> rangeProps, Class[] rangeCoercionTypes) {
    // construct chain
    List<CompositeIndexQuery> queries = new ArrayList<CompositeIndexQuery>();
    if (keyExpr.size() > 0) {
        List<QueryGraphValueEntryHashKeyed> hashKeys = new ArrayList<QueryGraphValueEntryHashKeyed>();
        for (SubordPropHashKey keyExp : keyExpr) {
            hashKeys.add(keyExp.getHashKey());
        }
        queries.add(new CompositeIndexQueryKeyed(isNWOnTrigger, -1, numOuterStreams, hashKeys, coercionKeyTypes));
    }
    int count = 0;
    for (SubordPropRangeKey rangeProp : rangeProps) {
        Class coercionType = rangeCoercionTypes == null ? null : rangeCoercionTypes[count];
        queries.add(new CompositeIndexQueryRange(isNWOnTrigger, -1, numOuterStreams, rangeProp, coercionType));
        count++;
    }

    // Hook up as chain for remove
    CompositeIndexQuery last = null;
    for (CompositeIndexQuery action : queries) {
        if (last != null) {
            last.setNext(action);
        }
        last = action;
    }
    return queries.get(0);
}
 
開發者ID:mobile-event-processing,項目名稱:Asper,代碼行數:28,代碼來源:CompositeIndexQueryFactory.java

示例13: getPropertyTypes

import com.espertech.esper.epl.join.plan.QueryGraphValueEntryHashKeyed; //導入依賴的package包/類
private Class[] getPropertyTypes(List<QueryGraphValueEntryHashKeyed> hashKeys)
{
    Class[] types = new Class[hashKeys.size()];
    for (int i = 0; i < hashKeys.size(); i++)
    {
        types[i] = JavaClassHelper.getBoxedType(hashKeys.get(i).getKeyExpr().getExprEvaluator().getType());
    }
    return types;
}
 
開發者ID:mobile-event-processing,項目名稱:Asper,代碼行數:10,代碼來源:HistoricalStreamIndexList.java

示例14: HistoricalIndexLookupStrategyComposite

import com.espertech.esper.epl.join.plan.QueryGraphValueEntryHashKeyed; //導入依賴的package包/類
public HistoricalIndexLookupStrategyComposite(int lookupStream, List<QueryGraphValueEntryHashKeyed> hashKeys, Class[] keyCoercionTypes, List<QueryGraphValueEntryRange> rangeKeyPairs, Class[] rangeCoercionTypes) {
    chain = CompositeIndexQueryFactory.makeJoinSingleLookupStream(false, lookupStream, hashKeys, keyCoercionTypes, rangeKeyPairs, rangeCoercionTypes);
}
 
開發者ID:espertechinc,項目名稱:esper,代碼行數:4,代碼來源:HistoricalIndexLookupStrategyComposite.java

示例15: HistoricalIndexLookupStrategyIndexSingle

import com.espertech.esper.epl.join.plan.QueryGraphValueEntryHashKeyed; //導入依賴的package包/類
public HistoricalIndexLookupStrategyIndexSingle(int lookupStream, QueryGraphValueEntryHashKeyed hashKey) {
    this.eventsPerStream = new EventBean[lookupStream + 1];
    this.evaluator = hashKey.getKeyExpr().getForge().getExprEvaluator();
    this.lookupStream = lookupStream;
}
 
開發者ID:espertechinc,項目名稱:esper,代碼行數:6,代碼來源:HistoricalIndexLookupStrategyIndexSingle.java


注:本文中的com.espertech.esper.epl.join.plan.QueryGraphValueEntryHashKeyed類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。