本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
}
示例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);
}
示例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);
}