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


Java EventBeanUtility.getMultiKey方法代码示例

本文整理汇总了Java中com.espertech.esper.event.EventBeanUtility.getMultiKey方法的典型用法代码示例。如果您正苦于以下问题:Java EventBeanUtility.getMultiKey方法的具体用法?Java EventBeanUtility.getMultiKey怎么用?Java EventBeanUtility.getMultiKey使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.espertech.esper.event.EventBeanUtility的用法示例。


在下文中一共展示了EventBeanUtility.getMultiKey方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: get

import com.espertech.esper.event.EventBeanUtility; //导入方法依赖的package包/类
public Collection<EventBean> get(EventBean[] eventsPerStream, Map parent, ExprEvaluatorContext context, CompositeIndexQueryResultPostProcessor postProcessor) {

        EventBean[] eventsToUse;
        if (isNWOnTrigger) {
            eventsToUse = eventsPerStream;
        } else {
            System.arraycopy(eventsPerStream, 0, events, 1, eventsPerStream.length);
            eventsToUse = events;
        }

        MultiKeyUntyped mk = EventBeanUtility.getMultiKey(eventsToUse, evaluators, context, keyCoercionTypes);
        Map innerIndex = (Map) parent.get(mk);
        if (innerIndex == null) {
            return null;
        }
        return next.get(eventsPerStream, innerIndex, context, postProcessor);
    }
 
开发者ID:espertechinc,项目名称:esper,代码行数:18,代码来源:CompositeIndexQueryKeyed.java

示例2: getCollectKeys

import com.espertech.esper.event.EventBeanUtility; //导入方法依赖的package包/类
public Collection<EventBean> getCollectKeys(EventBean[] eventsPerStream, Map parent, ExprEvaluatorContext context, ArrayList<Object> keys, CompositeIndexQueryResultPostProcessor postProcessor) {

        EventBean[] eventsToUse;
        if (isNWOnTrigger) {
            eventsToUse = eventsPerStream;
        } else {
            System.arraycopy(eventsPerStream, 0, events, 1, eventsPerStream.length);
            eventsToUse = events;
        }

        MultiKeyUntyped mk = EventBeanUtility.getMultiKey(eventsToUse, evaluators, context, keyCoercionTypes);
        Collections.addAll(keys, mk.getKeys());
        Map innerIndex = (Map) parent.get(mk);
        if (innerIndex == null) {
            return null;
        }
        return next.getCollectKeys(eventsPerStream, innerIndex, context, keys, postProcessor);
    }
 
开发者ID:espertechinc,项目名称:esper,代码行数:19,代码来源:CompositeIndexQueryKeyed.java

示例3: get

import com.espertech.esper.event.EventBeanUtility; //导入方法依赖的package包/类
public Collection<EventBean> get(EventBean[] eventsPerStream, Map parent, ExprEvaluatorContext context) {

        EventBean[] eventsToUse;
        if (isNWOnTrigger) {
            eventsToUse = eventsPerStream;
        }
        else {
            System.arraycopy(eventsPerStream, 0, events, 1, eventsPerStream.length);
            eventsToUse = events;
        }

        MultiKeyUntyped mk = EventBeanUtility.getMultiKey(eventsToUse, evaluators, context, keyCoercionTypes);
        Map innerIndex = (Map) parent.get(mk);
        if (innerIndex == null) {
            return null;
        }
        return next.get(eventsPerStream, innerIndex, context);
    }
 
开发者ID:mobile-event-processing,项目名称:Asper,代码行数:19,代码来源:CompositeIndexQueryKeyed.java

示例4: enter

import com.espertech.esper.event.EventBeanUtility; //导入方法依赖的package包/类
public void enter(EventBean theEvent, Map parent) {
    MultiKeyUntyped mk = EventBeanUtility.getMultiKey(theEvent, propertyGetters, keyCoercionTypes);
    Map innerIndex = (Map) parent.get(mk);
    if (innerIndex == null) {
        innerIndex = new TreeMap<Object, Object>();
        parent.put(mk, innerIndex);
    }
    next.enter(theEvent, innerIndex);
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:10,代码来源:CompositeIndexEnterRemoveKeyed.java

示例5: remove

import com.espertech.esper.event.EventBeanUtility; //导入方法依赖的package包/类
public void remove(EventBean theEvent, Map parent) {
    MultiKeyUntyped mk = EventBeanUtility.getMultiKey(theEvent, propertyGetters, keyCoercionTypes);
    Map innerIndex = (Map) parent.get(mk);
    if (innerIndex == null) {
        return;
    }
    next.remove(theEvent, innerIndex);
    if (innerIndex.isEmpty()) {
        parent.remove(mk);
    }
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:12,代码来源:CompositeIndexEnterRemoveKeyed.java

示例6: getMultiKey

import com.espertech.esper.event.EventBeanUtility; //导入方法依赖的package包/类
/**
 * Determine multikey for index access.
 *
 * @param theEvent to get properties from for key
 * @return multi key
 */
protected MultiKeyUntyped getMultiKey(EventBean theEvent) {
    return EventBeanUtility.getMultiKey(theEvent, propertyGetters);
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:10,代码来源:PropertyIndexedEventTable.java

示例7: getMultiKey

import com.espertech.esper.event.EventBeanUtility; //导入方法依赖的package包/类
/**
 * Determine multikey for index access.
 * @param theEvent to get properties from for key
 * @return multi key
 */
protected MultiKeyUntyped getMultiKey(EventBean theEvent)
{
    return EventBeanUtility.getMultiKey(theEvent, propertyGetters);
}
 
开发者ID:mobile-event-processing,项目名称:Asper,代码行数:10,代码来源:PropertyIndexedEventTable.java


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