public class ResultSetProcessorRowPerGroupRollupImpl extends java.lang.Object implements ResultSetProcessorRowPerGroupRollup
Modifier and Type | Field and Description |
---|---|
protected AgentInstanceContext |
agentInstanceContext |
protected AggregationService |
aggregationService |
protected OrderByProcessor |
orderByProcessor |
protected ResultSetProcessorRowPerGroupRollupFactory |
prototype |
Modifier and Type | Method and Description |
---|---|
void |
acceptHelperVisitor(ResultSetProcessorOutputHelperVisitor visitor) |
void |
applyJoinResult(java.util.Set<MultiKey<EventBean>> newEvents,
java.util.Set<MultiKey<EventBean>> oldEvents) |
static void |
applyJoinResultCodegen(ResultSetProcessorRowPerGroupRollupForge forge,
CodegenClassScope classScope,
CodegenMethodNode method,
CodegenInstanceAux instance) |
void |
applyViewResult(EventBean[] newData,
EventBean[] oldData) |
void |
clear()
Clear out current state.
|
UniformPair<EventBean[]> |
continueOutputLimitedLastAllNonBufferedJoin(boolean isSynthesize) |
static void |
continueOutputLimitedLastAllNonBufferedJoinCodegen(ResultSetProcessorRowPerGroupRollupForge forge,
CodegenMethodNode method) |
UniformPair<EventBean[]> |
continueOutputLimitedLastAllNonBufferedView(boolean isSynthesize) |
java.lang.Object |
generateGroupKeySingle(EventBean[] eventsPerStream,
boolean isNewData) |
void |
generateOutputBatched(java.lang.Object mk,
AggregationGroupByRollupLevel level,
EventBean[] eventsPerStream,
boolean isNewData,
boolean isSynthesize,
java.util.List<EventBean> resultEvents,
java.util.List<java.lang.Object> optSortKeys) |
void |
generateOutputBatchedMapUnsorted(boolean join,
java.lang.Object mk,
AggregationGroupByRollupLevel level,
EventBean[] eventsPerStream,
boolean isNewData,
boolean isSynthesize,
java.util.Map<java.lang.Object,EventBean> resultEvents) |
ExprEvaluatorContext |
getAgentInstanceContext() |
AggregationService |
getAggregationService() |
AggregationGroupByRollupDesc |
getGroupByRollupDesc() |
java.util.Iterator<EventBean> |
getIterator(java.util.Set<MultiKey<EventBean>> joinSet)
Returns the iterator for iterating over a join-result.
|
java.util.Iterator<EventBean> |
getIterator(Viewable parent)
Returns the iterator implementing the group-by and aggregation and order-by logic
specific to each case of use of these construct.
|
EventType |
getResultEventType()
Returns the event type of processed results.
|
boolean |
isSelectRStream() |
UniformPair<EventBean[]> |
processJoinResult(java.util.Set<MultiKey<EventBean>> newEvents,
java.util.Set<MultiKey<EventBean>> oldEvents,
boolean isSynthesize)
For use by joins posting their result, process the event rows that are entered and removed (new and old events).
|
UniformPair<EventBean[]> |
processOutputLimitedJoin(java.util.List<UniformPair<java.util.Set<MultiKey<EventBean>>>> joinEventsSet,
boolean generateSynthetic)
Processes batched events in case of output-rate limiting.
|
static void |
processOutputLimitedJoinCodegen(ResultSetProcessorRowPerGroupRollupForge forge,
CodegenClassScope classScope,
CodegenMethodNode method,
CodegenInstanceAux instance) |
void |
processOutputLimitedLastAllNonBufferedJoin(java.util.Set<MultiKey<EventBean>> newEvents,
java.util.Set<MultiKey<EventBean>> oldEvents,
boolean isGenerateSynthetic) |
static void |
processOutputLimitedLastAllNonBufferedJoinCodegen(ResultSetProcessorRowPerGroupRollupForge forge,
CodegenClassScope classScope,
CodegenMethodNode method,
CodegenInstanceAux instance) |
void |
processOutputLimitedLastAllNonBufferedView(EventBean[] newData,
EventBean[] oldData,
boolean isGenerateSynthetic) |
UniformPair<EventBean[]> |
processOutputLimitedView(java.util.List<UniformPair<EventBean[]>> viewEventsList,
boolean generateSynthetic)
Processes batched events in case of output-rate limiting.
|
UniformPair<EventBean[]> |
processViewResult(EventBean[] newData,
EventBean[] oldData,
boolean isSynthesize)
For use by views posting their result, process the event rows that are entered and removed (new and old events).
|
void |
removedAggregationGroupKey(java.lang.Object key) |
void |
setAgentInstanceContext(AgentInstanceContext agentInstanceContext) |
void |
stop()
Stops the underlying resources.
|
protected final ResultSetProcessorRowPerGroupRollupFactory prototype
protected final OrderByProcessor orderByProcessor
protected final AggregationService aggregationService
protected AgentInstanceContext agentInstanceContext
public void setAgentInstanceContext(AgentInstanceContext agentInstanceContext)
setAgentInstanceContext
in interface ResultSetProcessor
public AggregationService getAggregationService()
getAggregationService
in interface ResultSetProcessorRowPerGroupRollup
public EventType getResultEventType()
ResultSetProcessor
getResultEventType
in interface ResultSetProcessor
public UniformPair<EventBean[]> processJoinResult(java.util.Set<MultiKey<EventBean>> newEvents, java.util.Set<MultiKey<EventBean>> oldEvents, boolean isSynthesize)
ResultSetProcessor
processJoinResult
in interface ResultSetProcessor
newEvents
- - new events posted by joinoldEvents
- - old events posted by joinisSynthesize
- - set to true to indicate that synthetic events are required for an iterator result setpublic UniformPair<EventBean[]> processViewResult(EventBean[] newData, EventBean[] oldData, boolean isSynthesize)
ResultSetProcessor
processViewResult
in interface ResultSetProcessor
newData
- - new events posted by viewoldData
- - old events posted by viewisSynthesize
- - set to true to indicate that synthetic events are required for an iterator result setpublic java.util.Iterator<EventBean> getIterator(Viewable parent)
ResultSetProcessor
getIterator
in interface ResultSetProcessor
parent
- is the parent view iteratorpublic java.util.Iterator<EventBean> getIterator(java.util.Set<MultiKey<EventBean>> joinSet)
ResultSetProcessor
getIterator
in interface ResultSetProcessor
joinSet
- is the join result setpublic void clear()
ResultSetProcessor
clear
in interface ResultSetProcessor
public UniformPair<EventBean[]> processOutputLimitedJoin(java.util.List<UniformPair<java.util.Set<MultiKey<EventBean>>>> joinEventsSet, boolean generateSynthetic)
ResultSetProcessor
processOutputLimitedJoin
in interface ResultSetProcessor
joinEventsSet
- the join resultsgenerateSynthetic
- flag to indicate whether synthetic events must be generatedpublic static void processOutputLimitedJoinCodegen(ResultSetProcessorRowPerGroupRollupForge forge, CodegenClassScope classScope, CodegenMethodNode method, CodegenInstanceAux instance)
public UniformPair<EventBean[]> processOutputLimitedView(java.util.List<UniformPair<EventBean[]>> viewEventsList, boolean generateSynthetic)
ResultSetProcessor
processOutputLimitedView
in interface ResultSetProcessor
viewEventsList
- the view resultsgenerateSynthetic
- flag to indicate whether synthetic events must be generatedpublic void acceptHelperVisitor(ResultSetProcessorOutputHelperVisitor visitor)
acceptHelperVisitor
in interface ResultSetProcessor
public void removedAggregationGroupKey(java.lang.Object key)
removedAggregationGroupKey
in interface AggregationRowRemovedCallback
public java.lang.Object generateGroupKeySingle(EventBean[] eventsPerStream, boolean isNewData)
generateGroupKeySingle
in interface ResultSetProcessorRowPerGroupRollup
public void generateOutputBatched(java.lang.Object mk, AggregationGroupByRollupLevel level, EventBean[] eventsPerStream, boolean isNewData, boolean isSynthesize, java.util.List<EventBean> resultEvents, java.util.List<java.lang.Object> optSortKeys)
generateOutputBatched
in interface ResultSetProcessorRowPerGroupRollup
public void generateOutputBatchedMapUnsorted(boolean join, java.lang.Object mk, AggregationGroupByRollupLevel level, EventBean[] eventsPerStream, boolean isNewData, boolean isSynthesize, java.util.Map<java.lang.Object,EventBean> resultEvents)
generateOutputBatchedMapUnsorted
in interface ResultSetProcessorRowPerGroupRollup
public void applyViewResult(EventBean[] newData, EventBean[] oldData)
applyViewResult
in interface ResultSetProcessor
public void applyJoinResult(java.util.Set<MultiKey<EventBean>> newEvents, java.util.Set<MultiKey<EventBean>> oldEvents)
applyJoinResult
in interface ResultSetProcessor
public static void applyJoinResultCodegen(ResultSetProcessorRowPerGroupRollupForge forge, CodegenClassScope classScope, CodegenMethodNode method, CodegenInstanceAux instance)
public void processOutputLimitedLastAllNonBufferedView(EventBean[] newData, EventBean[] oldData, boolean isGenerateSynthetic)
processOutputLimitedLastAllNonBufferedView
in interface ResultSetProcessor
public void processOutputLimitedLastAllNonBufferedJoin(java.util.Set<MultiKey<EventBean>> newEvents, java.util.Set<MultiKey<EventBean>> oldEvents, boolean isGenerateSynthetic)
processOutputLimitedLastAllNonBufferedJoin
in interface ResultSetProcessor
public static void processOutputLimitedLastAllNonBufferedJoinCodegen(ResultSetProcessorRowPerGroupRollupForge forge, CodegenClassScope classScope, CodegenMethodNode method, CodegenInstanceAux instance)
public UniformPair<EventBean[]> continueOutputLimitedLastAllNonBufferedView(boolean isSynthesize)
continueOutputLimitedLastAllNonBufferedView
in interface ResultSetProcessor
public UniformPair<EventBean[]> continueOutputLimitedLastAllNonBufferedJoin(boolean isSynthesize)
continueOutputLimitedLastAllNonBufferedJoin
in interface ResultSetProcessor
public static void continueOutputLimitedLastAllNonBufferedJoinCodegen(ResultSetProcessorRowPerGroupRollupForge forge, CodegenMethodNode method)
public void stop()
StopCallback
stop
in interface StopCallback
public ExprEvaluatorContext getAgentInstanceContext()
getAgentInstanceContext
in interface ResultSetProcessorRowPerGroupRollup
public boolean isSelectRStream()
isSelectRStream
in interface ResultSetProcessorRowPerGroupRollup
public AggregationGroupByRollupDesc getGroupByRollupDesc()
getGroupByRollupDesc
in interface ResultSetProcessorRowPerGroupRollup