本文整理汇总了Java中com.espertech.esper.epl.spec.OutputLimitSpec类的典型用法代码示例。如果您正苦于以下问题:Java OutputLimitSpec类的具体用法?Java OutputLimitSpec怎么用?Java OutputLimitSpec使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
OutputLimitSpec类属于com.espertech.esper.epl.spec包,在下文中一共展示了OutputLimitSpec类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: ResultSetProcessorRowPerEventForge
import com.espertech.esper.epl.spec.OutputLimitSpec; //导入依赖的package包/类
public ResultSetProcessorRowPerEventForge(EventType resultEventType,
SelectExprProcessorForge selectExprProcessorForge,
ExprForge optionalHavingNode,
boolean isSelectRStream,
boolean isUnidirectional,
boolean isHistoricalOnly,
OutputLimitSpec outputLimitSpec,
ResultSetProcessorOutputConditionType outputConditionType,
ResultSetProcessorHelperFactory resultSetProcessorHelperFactory,
boolean hasOrderBy) {
this.resultEventType = resultEventType;
this.selectExprProcessorForge = selectExprProcessorForge;
this.optionalHavingNode = optionalHavingNode;
this.isSelectRStream = isSelectRStream;
this.isUnidirectional = isUnidirectional;
this.isHistoricalOnly = isHistoricalOnly;
this.outputLimitSpec = outputLimitSpec;
this.outputConditionType = outputConditionType;
this.resultSetProcessorHelperFactory = resultSetProcessorHelperFactory;
this.hasOrderBy = hasOrderBy;
}
示例2: ResultSetProcessorRowPerEventFactory
import com.espertech.esper.epl.spec.OutputLimitSpec; //导入依赖的package包/类
public ResultSetProcessorRowPerEventFactory(EventType resultEventType,
SelectExprProcessor selectExprProcessor,
ExprEvaluator optionalHavingNode,
boolean isSelectRStream,
boolean isUnidirectional,
boolean isHistoricalOnly,
OutputLimitSpec outputLimitSpec,
ResultSetProcessorOutputConditionType outputConditionType,
ResultSetProcessorHelperFactory resultSetProcessorHelperFactory) {
this.resultEventType = resultEventType;
this.selectExprProcessor = selectExprProcessor;
this.optionalHavingNode = optionalHavingNode;
this.isSelectRStream = isSelectRStream;
this.isUnidirectional = isUnidirectional;
this.isHistoricalOnly = isHistoricalOnly;
this.outputLimitSpec = outputLimitSpec;
this.outputConditionType = outputConditionType;
this.resultSetProcessorHelperFactory = resultSetProcessorHelperFactory;
}
示例3: ResultSetProcessorSimpleForge
import com.espertech.esper.epl.spec.OutputLimitSpec; //导入依赖的package包/类
public ResultSetProcessorSimpleForge(EventType resultEventType,
SelectExprProcessorForge selectExprProcessorForge,
ExprForge optionalHavingNode,
boolean isSelectRStream,
OutputLimitSpec outputLimitSpec,
ResultSetProcessorOutputConditionType outputConditionType,
ResultSetProcessorHelperFactory resultSetProcessorHelperFactory,
boolean isSorting,
int numStreams) {
this.resultEventType = resultEventType;
this.selectExprProcessorForge = selectExprProcessorForge;
this.optionalHavingNode = optionalHavingNode;
this.isSelectRStream = isSelectRStream;
this.outputLimitSpec = outputLimitSpec;
this.outputConditionType = outputConditionType;
this.resultSetProcessorHelperFactory = resultSetProcessorHelperFactory;
this.isSorting = isSorting;
this.numStreams = numStreams;
}
示例4: ResultSetProcessorSimpleFactory
import com.espertech.esper.epl.spec.OutputLimitSpec; //导入依赖的package包/类
public ResultSetProcessorSimpleFactory(EventType resultEventType,
SelectExprProcessor selectExprProcessor,
ExprEvaluator optionalHavingNode,
boolean isSelectRStream,
OutputLimitSpec outputLimitSpec,
ResultSetProcessorOutputConditionType outputConditionType,
ResultSetProcessorHelperFactory resultSetProcessorHelperFactory,
int numStreams) {
this.resultEventType = resultEventType;
this.selectExprProcessor = selectExprProcessor;
this.optionalHavingExpr = optionalHavingNode;
this.isSelectRStream = isSelectRStream;
this.outputLimitSpec = outputLimitSpec;
this.outputConditionType = outputConditionType;
this.resultSetProcessorHelperFactory = resultSetProcessorHelperFactory;
this.numStreams = numStreams;
}
示例5: ResultSetProcessorRowForAllForge
import com.espertech.esper.epl.spec.OutputLimitSpec; //导入依赖的package包/类
public ResultSetProcessorRowForAllForge(EventType resultEventType,
SelectExprProcessorForge selectExprProcessorForge,
ExprForge optionalHavingNode,
boolean isSelectRStream,
boolean isUnidirectional,
boolean isHistoricalOnly,
OutputLimitSpec outputLimitSpec,
ResultSetProcessorHelperFactory resultSetProcessorHelperFactory,
boolean hasOrderBy,
ResultSetProcessorOutputConditionType outputConditionType) {
this.resultEventType = resultEventType;
this.selectExprProcessorForge = selectExprProcessorForge;
this.optionalHavingNode = optionalHavingNode;
this.isSelectRStream = isSelectRStream;
this.isUnidirectional = isUnidirectional;
this.isHistoricalOnly = isHistoricalOnly;
this.outputLimitSpec = outputLimitSpec;
this.resultSetProcessorHelperFactory = resultSetProcessorHelperFactory;
this.hasOrderBy = hasOrderBy;
this.outputConditionType = outputConditionType;
}
示例6: ResultSetProcessorRowForAllFactory
import com.espertech.esper.epl.spec.OutputLimitSpec; //导入依赖的package包/类
public ResultSetProcessorRowForAllFactory(EventType resultEventType,
SelectExprProcessor selectExprProcessor,
ExprEvaluator optionalHavingNode,
boolean isSelectRStream,
boolean isUnidirectional,
boolean isHistoricalOnly,
OutputLimitSpec outputLimitSpec,
ResultSetProcessorHelperFactory resultSetProcessorHelperFactory,
ResultSetProcessorOutputConditionType outputConditionType) {
this.resultEventType = resultEventType;
this.selectExprProcessor = selectExprProcessor;
this.optionalHavingNode = optionalHavingNode;
this.isSelectRStream = isSelectRStream;
this.isUnidirectional = isUnidirectional;
this.isHistoricalOnly = isHistoricalOnly;
this.outputLimitSpec = outputLimitSpec;
this.resultSetProcessorHelperFactory = resultSetProcessorHelperFactory;
this.outputConditionType = outputConditionType;
}
示例7: ResultSetProcessorRowPerGroupFactory
import com.espertech.esper.epl.spec.OutputLimitSpec; //导入依赖的package包/类
/**
* Ctor.
* @param selectExprProcessor - for processing the select expression and generting the final output rows
* @param groupKeyNodes - list of group-by expression nodes needed for building the group-by keys
* @param optionalHavingNode - expression node representing validated HAVING clause, or null if none given.
* Aggregation functions in the having node must have been pointed to the AggregationService for evaluation.
* @param isSelectRStream - true if remove stream events should be generated
* @param isUnidirectional - true if unidirectional join
*/
public ResultSetProcessorRowPerGroupFactory(SelectExprProcessor selectExprProcessor,
ExprEvaluator[] groupKeyNodes,
ExprEvaluator optionalHavingNode,
boolean isSelectRStream,
boolean isUnidirectional,
OutputLimitSpec outputLimitSpec,
boolean isSorting,
boolean noDataWindowSingleStream)
{
this.selectExprProcessor = selectExprProcessor;
this.groupKeyNodes = groupKeyNodes;
if (groupKeyNodes.length == 1) {
this.groupKeyNode = groupKeyNodes[0];
}
else {
this.groupKeyNode = null;
}
this.optionalHavingNode = optionalHavingNode;
this.isSorting = isSorting;
this.isSelectRStream = isSelectRStream;
this.isUnidirectional = isUnidirectional;
this.outputLimitSpec = outputLimitSpec;
this.noDataWindowSingleSnapshot = (outputLimitSpec != null && outputLimitSpec.getDisplayLimit() == OutputLimitLimitType.SNAPSHOT && noDataWindowSingleStream);
}
示例8: ResultSetProcessorAggregateGroupedFactory
import com.espertech.esper.epl.spec.OutputLimitSpec; //导入依赖的package包/类
/**
* Ctor.
* @param selectExprProcessor - for processing the select expression and generting the final output rows
* @param groupKeyNodes - list of group-by expression nodes needed for building the group-by keys
* @param optionalHavingNode - expression node representing validated HAVING clause, or null if none given.
* Aggregation functions in the having node must have been pointed to the AggregationService for evaluation.
* @param isSelectRStream - true if remove stream events should be generated
* @param isUnidirectional - true if unidirectional join
*/
public ResultSetProcessorAggregateGroupedFactory(SelectExprProcessor selectExprProcessor,
ExprEvaluator[] groupKeyNodes,
ExprEvaluator optionalHavingNode,
boolean isSelectRStream,
boolean isUnidirectional,
OutputLimitSpec outputLimitSpec,
boolean isSorting)
{
this.selectExprProcessor = selectExprProcessor;
if (groupKeyNodes.length == 1) {
groupKeyNode = groupKeyNodes[0];
}
else {
groupKeyNode = null;
}
this.groupKeyNodes = groupKeyNodes;
this.optionalHavingNode = optionalHavingNode;
this.isSorting = isSorting;
this.isSelectRStream = isSelectRStream;
this.isUnidirectional = isUnidirectional;
this.outputLimitSpec = outputLimitSpec;
}
开发者ID:mobile-event-processing,项目名称:Asper,代码行数:33,代码来源:ResultSetProcessorAggregateGroupedFactory.java
示例9: createConditionFactory
import com.espertech.esper.epl.spec.OutputLimitSpec; //导入依赖的package包/类
public static OutputConditionPolledFactory createConditionFactory(OutputLimitSpec outputLimitSpec,
StatementContext statementContext)
throws ExprValidationException {
if (outputLimitSpec == null) {
throw new NullPointerException("Output condition by count requires a non-null callback");
}
// check variable use
VariableMetaData variableMetaData = null;
if (outputLimitSpec.getVariableName() != null) {
variableMetaData = statementContext.getVariableService().getVariableMetaData(outputLimitSpec.getVariableName());
if (variableMetaData == null) {
throw new IllegalArgumentException("Variable named '" + outputLimitSpec.getVariableName() + "' has not been declared");
}
}
if (outputLimitSpec.getRateType() == OutputLimitRateType.CRONTAB) {
return new OutputConditionPolledCrontabFactory(outputLimitSpec.getCrontabAtSchedule(), statementContext);
} else if (outputLimitSpec.getRateType() == OutputLimitRateType.WHEN_EXPRESSION) {
return new OutputConditionPolledExpressionFactory(outputLimitSpec.getWhenExpressionNode(), outputLimitSpec.getThenExpressions(), statementContext);
} else if (outputLimitSpec.getRateType() == OutputLimitRateType.EVENTS) {
int rate = -1;
if (outputLimitSpec.getRate() != null) {
rate = outputLimitSpec.getRate().intValue();
}
return new OutputConditionPolledCountFactory(rate, statementContext, outputLimitSpec.getVariableName());
} else {
if (variableMetaData != null && (!JavaClassHelper.isNumeric(variableMetaData.getType()))) {
throw new IllegalArgumentException("Variable named '" + outputLimitSpec.getVariableName() + "' must be of numeric type");
}
return new OutputConditionPolledTimeFactory(outputLimitSpec.getTimePeriodExpr(), statementContext);
}
}
示例10: ResultSetProcessorRowPerGroupFactory
import com.espertech.esper.epl.spec.OutputLimitSpec; //导入依赖的package包/类
ResultSetProcessorRowPerGroupFactory(EventType resultEventType,
SelectExprProcessor selectExprProcessor,
ExprNode[] groupKeyNodeExpressions,
ExprEvaluator groupKeyNode,
ExprEvaluator[] groupKeyNodes,
ExprEvaluator optionalHavingNode,
boolean isSelectRStream,
boolean isUnidirectional,
OutputLimitSpec outputLimitSpec,
boolean isSorting,
boolean isHistoricalOnly,
ResultSetProcessorHelperFactory resultSetProcessorHelperFactory,
ResultSetProcessorOutputConditionType outputConditionType,
int numStreams,
OutputConditionPolledFactory optionalOutputFirstConditionFactory,
boolean unboundedProcessor,
Class[] groupKeyTypes) {
this.resultEventType = resultEventType;
this.groupKeyNodeExpressions = groupKeyNodeExpressions;
this.selectExprProcessor = selectExprProcessor;
this.groupKeyNodes = groupKeyNodes;
this.groupKeyNode = groupKeyNode;
this.optionalHavingNode = optionalHavingNode;
this.isSorting = isSorting;
this.isSelectRStream = isSelectRStream;
this.isUnidirectional = isUnidirectional;
this.outputLimitSpec = outputLimitSpec;
this.isHistoricalOnly = isHistoricalOnly;
this.resultSetProcessorHelperFactory = resultSetProcessorHelperFactory;
this.outputConditionType = outputConditionType;
this.numStreams = numStreams;
this.optionalOutputFirstConditionFactory = optionalOutputFirstConditionFactory;
this.unboundedProcessor = unboundedProcessor;
this.groupKeyTypes = groupKeyTypes;
}
示例11: ResultSetProcessorRowPerGroupForge
import com.espertech.esper.epl.spec.OutputLimitSpec; //导入依赖的package包/类
public ResultSetProcessorRowPerGroupForge(EventType resultEventType,
SelectExprProcessorForge selectExprProcessorForge,
ExprNode[] groupKeyNodeExpressions,
ExprForge optionalHavingNode,
boolean isSelectRStream,
boolean isUnidirectional,
OutputLimitSpec outputLimitSpec,
boolean isSorting,
boolean noDataWindowSingleStream,
boolean isHistoricalOnly,
boolean iterateUnbounded,
ResultSetProcessorHelperFactory resultSetProcessorHelperFactory,
ResultSetProcessorOutputConditionType outputConditionType,
int numStreams,
OutputConditionPolledFactory optionalOutputFirstConditionFactory) {
this.resultEventType = resultEventType;
this.groupKeyNodeExpressions = groupKeyNodeExpressions;
this.selectExprProcessorForge = selectExprProcessorForge;
this.optionalHavingNode = optionalHavingNode;
this.isSorting = isSorting;
this.isSelectRStream = isSelectRStream;
this.isUnidirectional = isUnidirectional;
this.outputLimitSpec = outputLimitSpec;
boolean noDataWindowSingleSnapshot = iterateUnbounded || (outputLimitSpec != null && outputLimitSpec.getDisplayLimit() == OutputLimitLimitType.SNAPSHOT && noDataWindowSingleStream);
this.unboundedProcessor = noDataWindowSingleSnapshot && !isHistoricalOnly;
this.isHistoricalOnly = isHistoricalOnly;
this.resultSetProcessorHelperFactory = resultSetProcessorHelperFactory;
this.outputConditionType = outputConditionType;
this.numStreams = numStreams;
this.optionalOutputFirstConditionFactory = optionalOutputFirstConditionFactory;
this.groupKeyTypes = ExprNodeUtilityCore.getExprResultTypes(groupKeyNodeExpressions);
}
示例12: ResultSetProcessorRowPerGroupRollupFactory
import com.espertech.esper.epl.spec.OutputLimitSpec; //导入依赖的package包/类
public ResultSetProcessorRowPerGroupRollupFactory(EventType resultEventType,
GroupByRollupPerLevelExpression perLevelExpression,
ExprNode[] groupKeyNodeExpressions,
ExprEvaluator[] groupKeyNodes,
boolean isSelectRStream,
boolean isUnidirectional,
OutputLimitSpec outputLimitSpec,
boolean isSorting,
AggregationGroupByRollupDesc groupByRollupDesc,
boolean isJoin,
boolean isHistoricalOnly,
OutputConditionPolledFactory optionalOutputFirstConditionFactory,
ResultSetProcessorHelperFactory resultSetProcessorHelperFactory,
ResultSetProcessorOutputConditionType outputConditionType,
int numStreams,
boolean unbounded) {
this.resultEventType = resultEventType;
this.groupKeyNodeExpressions = groupKeyNodeExpressions;
this.perLevelExpression = perLevelExpression;
this.groupKeyNodes = groupKeyNodes;
if (groupKeyNodes.length == 1) {
this.groupKeyNode = groupKeyNodes[0];
} else {
this.groupKeyNode = null;
}
this.isSorting = isSorting;
this.isSelectRStream = isSelectRStream;
this.isUnidirectional = isUnidirectional;
this.outputLimitSpec = outputLimitSpec;
this.groupByRollupDesc = groupByRollupDesc;
this.isJoin = isJoin;
this.isHistoricalOnly = isHistoricalOnly;
this.optionalOutputFirstConditionFactory = optionalOutputFirstConditionFactory;
this.resultSetProcessorHelperFactory = resultSetProcessorHelperFactory;
this.outputConditionType = outputConditionType;
this.numStreams = numStreams;
this.groupKeyTypes = ExprNodeUtilityCore.getExprResultTypes(groupKeyNodeExpressions);
this.unbounded = unbounded;
}
示例13: ResultSetProcessorRowPerGroupRollupForge
import com.espertech.esper.epl.spec.OutputLimitSpec; //导入依赖的package包/类
public ResultSetProcessorRowPerGroupRollupForge(EventType resultEventType,
GroupByRollupPerLevelForge perLevelForges,
ExprNode[] groupKeyNodeExpressions,
boolean isSelectRStream,
boolean isUnidirectional,
OutputLimitSpec outputLimitSpec,
boolean isSorting,
boolean noDataWindowSingleStream,
AggregationGroupByRollupDesc groupByRollupDesc,
boolean isJoin,
boolean isHistoricalOnly,
boolean iterateUnbounded,
OutputConditionPolledFactory optionalOutputFirstConditionFactory,
ResultSetProcessorHelperFactory resultSetProcessorHelperFactory,
ResultSetProcessorOutputConditionType outputConditionType,
int numStreams) {
this.resultEventType = resultEventType;
this.groupKeyNodeExpressions = groupKeyNodeExpressions;
this.perLevelForges = perLevelForges;
this.isSorting = isSorting;
this.isSelectRStream = isSelectRStream;
this.isUnidirectional = isUnidirectional;
this.outputLimitSpec = outputLimitSpec;
boolean noDataWindowSingleSnapshot = iterateUnbounded || (outputLimitSpec != null && outputLimitSpec.getDisplayLimit() == OutputLimitLimitType.SNAPSHOT && noDataWindowSingleStream);
this.unbounded = noDataWindowSingleSnapshot && !isHistoricalOnly;
this.groupByRollupDesc = groupByRollupDesc;
this.isJoin = isJoin;
this.isHistoricalOnly = isHistoricalOnly;
this.optionalOutputFirstConditionFactory = optionalOutputFirstConditionFactory;
this.resultSetProcessorHelperFactory = resultSetProcessorHelperFactory;
this.outputConditionType = outputConditionType;
this.numStreams = numStreams;
this.groupKeyTypes = ExprNodeUtilityCore.getExprResultTypes(groupKeyNodeExpressions);
}
示例14: ResultSetProcessorAggregateGroupedFactory
import com.espertech.esper.epl.spec.OutputLimitSpec; //导入依赖的package包/类
ResultSetProcessorAggregateGroupedFactory(EventType resultEventType,
SelectExprProcessor selectExprProcessor,
ExprNode[] groupKeyNodeExpressions,
ExprEvaluator groupKeyNode,
ExprEvaluator[] groupKeyNodes,
ExprEvaluator optionalHavingNode,
boolean isSelectRStream,
boolean isUnidirectional,
OutputLimitSpec outputLimitSpec,
boolean isSorting,
boolean isHistoricalOnly,
ResultSetProcessorHelperFactory resultSetProcessorHelperFactory,
OutputConditionPolledFactory optionalOutputFirstConditionFactory,
ResultSetProcessorOutputConditionType outputConditionType,
int numStreams) {
this.selectExprProcessor = selectExprProcessor;
this.resultEventType = resultEventType;
this.groupKeyNodeExpressions = groupKeyNodeExpressions;
this.groupKeyNode = groupKeyNode;
this.groupKeyNodes = groupKeyNodes;
this.optionalHavingNode = optionalHavingNode;
this.isSorting = isSorting;
this.isSelectRStream = isSelectRStream;
this.isUnidirectional = isUnidirectional;
this.outputLimitSpec = outputLimitSpec;
this.isHistoricalOnly = isHistoricalOnly;
this.resultSetProcessorHelperFactory = resultSetProcessorHelperFactory;
this.optionalOutputFirstConditionFactory = optionalOutputFirstConditionFactory;
this.outputConditionType = outputConditionType;
this.numStreams = numStreams;
this.groupKeyTypes = ExprNodeUtilityCore.getExprResultTypes(groupKeyNodeExpressions);
}
示例15: ResultSetProcessorAggregateGroupedForge
import com.espertech.esper.epl.spec.OutputLimitSpec; //导入依赖的package包/类
public ResultSetProcessorAggregateGroupedForge(EventType resultEventType,
SelectExprProcessorForge selectExprProcessorForge,
ExprNode[] groupKeyNodeExpressions,
ExprForge optionalHavingNode,
boolean isSelectRStream,
boolean isUnidirectional,
OutputLimitSpec outputLimitSpec,
boolean isSorting,
boolean isHistoricalOnly,
ResultSetProcessorHelperFactory resultSetProcessorHelperFactory,
OutputConditionPolledFactory optionalOutputFirstConditionFactory,
ResultSetProcessorOutputConditionType outputConditionType,
int numStreams) {
this.resultEventType = resultEventType;
this.selectExprProcessorForge = selectExprProcessorForge;
this.groupKeyNodeExpressions = groupKeyNodeExpressions;
this.optionalHavingNode = optionalHavingNode;
this.isSorting = isSorting;
this.isSelectRStream = isSelectRStream;
this.isUnidirectional = isUnidirectional;
this.outputLimitSpec = outputLimitSpec;
this.isHistoricalOnly = isHistoricalOnly;
this.resultSetProcessorHelperFactory = resultSetProcessorHelperFactory;
this.optionalOutputFirstConditionFactory = optionalOutputFirstConditionFactory;
this.outputConditionType = outputConditionType;
this.numStreams = numStreams;
this.groupKeyTypes = ExprNodeUtilityCore.getExprResultTypes(groupKeyNodeExpressions);
}