本文整理汇总了Java中com.espertech.esper.view.ViewServiceHelper类的典型用法代码示例。如果您正苦于以下问题:Java ViewServiceHelper类的具体用法?Java ViewServiceHelper怎么用?Java ViewServiceHelper使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ViewServiceHelper类属于com.espertech.esper.view包,在下文中一共展示了ViewServiceHelper类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: addUniquenessInfo
import com.espertech.esper.view.ViewServiceHelper; //导入依赖的package包/类
public void addUniquenessInfo(ViewFactoryChain[] unmaterializedViewChain, Annotation[] annotations) {
for (int i = 0; i < unmaterializedViewChain.length; i++) {
if (unmaterializedViewChain[i].getDataWindowViewFactoryCount() > 0) {
Set<String> uniquenessProps = ViewServiceHelper.getUniqueCandidateProperties(unmaterializedViewChain[i].getViewFactoryChain(), annotations);
if (uniquenessProps != null) {
uniqueKeys[i] = new String[1][];
uniqueKeys[i][0] = uniquenessProps.toArray(new String[uniquenessProps.size()]);
}
}
}
}
示例2: addUniquenessInfo
import com.espertech.esper.view.ViewServiceHelper; //导入依赖的package包/类
public void addUniquenessInfo(ViewFactoryChain[] unmaterializedViewChain) {
for (int i = 0; i < unmaterializedViewChain.length; i++) {
if (unmaterializedViewChain[i].getDataWindowViewFactoryCount() > 0) {
Set<String> uniquenessProps = ViewServiceHelper.getUniqueCandidateProperties(unmaterializedViewChain[i].getViewFactoryChain());
if (uniquenessProps != null) {
uniqueKeys[i] = new String[1][];
uniqueKeys[i][0] = uniquenessProps.toArray(new String[uniquenessProps.size()]);
}
}
}
}
示例3: makeView
import com.espertech.esper.view.ViewServiceHelper; //导入依赖的package包/类
public View makeView(final AgentInstanceViewFactoryChainContext agentInstanceViewFactoryContext)
{
IStreamRelativeAccess relativeAccessByEvent = ViewServiceHelper.getOptPreviousExprRelativeAccess(agentInstanceViewFactoryContext);
return new ExpressionBatchView(this, relativeAccessByEvent, expiryExpression.getExprEvaluator(), aggregationServiceFactoryDesc, builtinMapBean, variableNames, agentInstanceViewFactoryContext);
}
示例4: makeView
import com.espertech.esper.view.ViewServiceHelper; //导入依赖的package包/类
public View makeView(final AgentInstanceViewFactoryChainContext agentInstanceViewFactoryContext)
{
IStreamRandomAccess randomAccess = ViewServiceHelper.getOptPreviousExprRandomAccess(agentInstanceViewFactoryContext);
return new ExpressionWindowView(this, randomAccess, expiryExpression.getExprEvaluator(), aggregationServiceFactoryDesc, builtinMapBean, variableNames, agentInstanceViewFactoryContext);
}