public abstract class HistoricalEventViewableBase extends Object implements Viewable, HistoricalEventViewable
Modifier and Type | Field and Description |
---|---|
protected View |
child |
protected HistoricalDataCache |
dataCache |
protected ExprEvaluatorContext |
exprEvaluatorContext |
protected HistoricalEventViewableFactoryBase |
factory |
protected static EventBean[][] |
NULL_ROWS |
protected PollExecStrategy |
pollExecStrategy |
INSTANCE_NO_ACTION
Constructor and Description |
---|
HistoricalEventViewableBase(HistoricalEventViewableFactoryBase factory,
PollExecStrategy pollExecStrategy,
ExprEvaluatorContext exprEvaluatorContext) |
Modifier and Type | Method and Description |
---|---|
View |
getChild() |
ThreadLocal<HistoricalDataCache> |
getDataCacheThreadLocal() |
EventType |
getEventType()
Provides metadata information about the type of object the event collection contains.
|
HistoricalDataCache |
getOptionalDataCache() |
boolean |
hasRequiredStreams()
Returns true if the parameters expressions to the historical require other stream's data,
or false if there are no parameters or all parameter expressions are only contants and variables without
properties of other stream events.
|
Iterator<EventBean> |
iterator()
Allows iteration through all elements in this viewable.
|
EventTable[][] |
poll(EventBean[][] lookupEventsPerStream,
PollResultIndexingStrategy indexingStrategy,
ExprEvaluatorContext exprEvaluatorContext)
Poll for stored historical or reference data using events per stream and
returing for each event-per-stream row a separate list with events
representing the poll result.
|
void |
setChild(View view) |
void |
stop(AgentInstanceStopServices services) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
transfer
protected final HistoricalEventViewableFactoryBase factory
protected final PollExecStrategy pollExecStrategy
protected final ExprEvaluatorContext exprEvaluatorContext
protected HistoricalDataCache dataCache
protected View child
protected static final EventBean[][] NULL_ROWS
public HistoricalEventViewableBase(HistoricalEventViewableFactoryBase factory, PollExecStrategy pollExecStrategy, ExprEvaluatorContext exprEvaluatorContext)
public void stop(AgentInstanceStopServices services)
stop
in interface AgentInstanceMgmtCallback
public EventTable[][] poll(EventBean[][] lookupEventsPerStream, PollResultIndexingStrategy indexingStrategy, ExprEvaluatorContext exprEvaluatorContext)
HistoricalEventViewable
poll
in interface HistoricalEventViewable
lookupEventsPerStream
- is the events per stream where the
first dimension is a number of rows (often 1 depending on windows used) and
the second dimension is the number of streams participating in a join.indexingStrategy
- the strategy to use for converting poll results into a indexed table for fast lookupexprEvaluatorContext
- context for expression evalauationpublic EventType getEventType()
Viewable
getEventType
in interface HistoricalEventViewable
getEventType
in interface Viewable
public Iterator<EventBean> iterator()
Viewable
public ThreadLocal<HistoricalDataCache> getDataCacheThreadLocal()
getDataCacheThreadLocal
in interface HistoricalEventViewable
public boolean hasRequiredStreams()
HistoricalEventViewable
hasRequiredStreams
in interface HistoricalEventViewable
public HistoricalDataCache getOptionalDataCache()
getOptionalDataCache
in interface HistoricalEventViewable
Copyright © 2005–2022. All rights reserved.