com.espertech.esper.epl.table.mgmt
Class TableStateInstanceGroupedImpl

java.lang.Object
  extended by com.espertech.esper.epl.table.mgmt.TableStateInstance
      extended by com.espertech.esper.epl.table.mgmt.TableStateInstanceGroupedImpl
All Implemented Interfaces:
TableStateInstanceGrouped

public class TableStateInstanceGroupedImpl
extends TableStateInstance
implements TableStateInstanceGrouped


Field Summary
 
Fields inherited from class com.espertech.esper.epl.table.mgmt.TableStateInstance
agentInstanceContext, indexRepository, tableMetadata
 
Constructor Summary
TableStateInstanceGroupedImpl(TableMetadata tableMetadata, AgentInstanceContext agentInstanceContext)
           
 
Method Summary
 void addEvent(EventBean theEvent)
           
 void addExplicitIndex(CreateIndexDesc spec, boolean isRecoveringResilient, boolean allowIndexExists)
           
 void clear()
           
 void clearInstance()
           
 void deleteEvent(EventBean matchingEvent)
           
 void destroyInstance()
           
 AggregationServicePassThru getAggregationServicePassThru()
           
 ObjectArrayBackedEventBean getCreateRowIntoTable(java.lang.Object groupByKey, ExprEvaluatorContext exprEvaluatorContext)
           
 java.util.Collection<EventBean> getEventCollection()
           
 java.util.Set<java.lang.Object> getGroupKeys()
           
 EventTable getIndex(java.lang.String indexName)
           
 EventTableIndexRepository getIndexRepository()
           
 java.lang.Iterable<EventBean> getIterableTableScan()
           
 int getRowCount()
           
 ObjectArrayBackedEventBean getRowForGroupKey(java.lang.Object groupKey)
           
 java.util.Map<java.lang.Object,ObjectArrayBackedEventBean> getRows()
           
 java.lang.String[] getSecondaryIndexes()
           
 
Methods inherited from class com.espertech.esper.epl.table.mgmt.TableStateInstance
addEventUnadorned, getAgentInstanceContext, getTableLevelRWLock, getTableMetadata, handleRowUpdated, handleRowUpdateKeyAfterUpdate, handleRowUpdateKeyBeforeUpdate, removeExplicitIndex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.espertech.esper.epl.table.mgmt.TableStateInstanceGrouped
getTableLevelRWLock, handleRowUpdated
 

Constructor Detail

TableStateInstanceGroupedImpl

public TableStateInstanceGroupedImpl(TableMetadata tableMetadata,
                                     AgentInstanceContext agentInstanceContext)
Method Detail

getIndex

public EventTable getIndex(java.lang.String indexName)
Specified by:
getIndex in class TableStateInstance

getRows

public java.util.Map<java.lang.Object,ObjectArrayBackedEventBean> getRows()

addEvent

public void addEvent(EventBean theEvent)
Specified by:
addEvent in class TableStateInstance

deleteEvent

public void deleteEvent(EventBean matchingEvent)
Specified by:
deleteEvent in class TableStateInstance

getIterableTableScan

public java.lang.Iterable<EventBean> getIterableTableScan()
Specified by:
getIterableTableScan in class TableStateInstance

addExplicitIndex

public void addExplicitIndex(CreateIndexDesc spec,
                             boolean isRecoveringResilient,
                             boolean allowIndexExists)
                      throws ExprValidationException
Specified by:
addExplicitIndex in class TableStateInstance
Throws:
ExprValidationException

getSecondaryIndexes

public java.lang.String[] getSecondaryIndexes()
Specified by:
getSecondaryIndexes in class TableStateInstance

getIndexRepository

public EventTableIndexRepository getIndexRepository()
Specified by:
getIndexRepository in interface TableStateInstanceGrouped
Overrides:
getIndexRepository in class TableStateInstance

getEventCollection

public java.util.Collection<EventBean> getEventCollection()
Specified by:
getEventCollection in class TableStateInstance

getRowForGroupKey

public ObjectArrayBackedEventBean getRowForGroupKey(java.lang.Object groupKey)
Specified by:
getRowForGroupKey in interface TableStateInstanceGrouped

getGroupKeys

public java.util.Set<java.lang.Object> getGroupKeys()
Specified by:
getGroupKeys in interface TableStateInstanceGrouped

clear

public void clear()
Specified by:
clear in interface TableStateInstanceGrouped

clearInstance

public void clearInstance()
Specified by:
clearInstance in class TableStateInstance

destroyInstance

public void destroyInstance()
Specified by:
destroyInstance in class TableStateInstance

getCreateRowIntoTable

public ObjectArrayBackedEventBean getCreateRowIntoTable(java.lang.Object groupByKey,
                                                        ExprEvaluatorContext exprEvaluatorContext)
Specified by:
getCreateRowIntoTable in interface TableStateInstanceGrouped
Specified by:
getCreateRowIntoTable in class TableStateInstance

getRowCount

public int getRowCount()
Specified by:
getRowCount in class TableStateInstance

getAggregationServicePassThru

public AggregationServicePassThru getAggregationServicePassThru()
Specified by:
getAggregationServicePassThru in class TableStateInstance

© 2006-2016 EsperTech Inc.
All rights reserved.
Visit us at espertech.com