public class EventTableCollection extends TableCollection implements FabricEventListener, com.streamscape.ds.utils.WindowCollection
Title: Dataspace Framework
Description: Event Table collection implementation.
Copyright: Copyright (c) 2011
Company: StreamScape Technologies
SchemaObject.ConstraintTypes, SchemaObject.Deferable, SchemaObject.Nullability, SchemaObject.ParameterModes, SchemaObject.ReferentialAction, SchemaObject.ViewCheckModes
ACTOR, ASPECTS, ASSERTION, CATALOG, CHARSET, COLLATION, COLLECTION, COLUMN, CONNECTION_FACTORY, CONSTRAINT, CURSOR, DOMAIN, emptyArray, EVENT_PROTOTYPE, FACETS, FILE_DESCRIPTOR, FULL_TEXT_INDEX, FUNCTION, GRANTEE, INDEX, JOB, LABEL, PARAMETER, PROCEDURE, REFERENCE_LINK, REPLICA, REPLICATION_SOURCE, ROUTINE, SCHEMA, SEMANTIC_TYPE, SEQUENCE, SERVER, SPECIFIC_ROUTINE, SUBQUERY, TABLE, TIMER, TRANSIENT_VAR, TRANSITION, TRIGGER, TYPE, VARIABLE, VIEW, WRAPPER
Constructor and Description |
---|
EventTableCollection(DataspaceStore database,
NameManager.ObjectName name,
com.streamscape.ds.core.MemoryModel memoryModel,
java.lang.String eventId,
java.lang.String selector,
java.util.List includeProps,
java.util.List excludeProps,
boolean withSourceEvent,
boolean isSourceEventBlob,
boolean isConsumer,
boolean isConsumerAsync,
int consumerMaxDepth,
java.util.List primaryKeyColumns) |
Modifier and Type | Method and Description |
---|---|
void |
activateWindow(com.streamscape.ds.session.Session session,
NameManager.ObjectName internalTableName) |
void |
close() |
void |
compile(com.streamscape.ds.session.Session session,
SchemaObject parentObject) |
void |
compileInternalStatements(com.streamscape.ds.session.Session session) |
void |
delete(com.streamscape.ds.session.Session session,
ImmutableEventDatagram event) |
void |
destroy(com.streamscape.ds.session.Session session) |
com.streamscape.ds.result.Result |
getCollectionProperties(com.streamscape.ds.session.Session session) |
java.lang.String |
getCollectionSQL(boolean forReplication) |
ImmutableEventDatagram |
getEventForTrigger(com.streamscape.ds.session.Session session,
java.lang.Object[] oldData,
java.lang.Object[] newData,
int when,
int triggerType) |
java.util.List |
getEvents() |
EventScope |
getEventScope() |
com.streamscape.sef.dii.AccessibleObjectProxy |
getProxy() |
com.streamscape.ds.lib.OrderedHashSet |
getReferences() |
java.lang.String |
getSQL() |
java.lang.String |
getSQL(java.lang.String name,
boolean forReplication) |
java.lang.String |
getSQLForReplication(java.lang.String replicaName) |
java.util.concurrent.TimeUnit |
getTimeWindowUnit() |
java.lang.String |
getTriggerEventId(int whenType,
int operationType) |
long |
getWindowCheckInterval() |
java.util.concurrent.TimeUnit |
getWindowCheckIntervalUnit() |
long |
getWindowSize() |
com.streamscape.ds.core.CollectionWindowType |
getWindowType() |
void |
insert(com.streamscape.ds.session.Session session,
ImmutableEventDatagram event) |
boolean |
isStarted() |
boolean |
isTriggerEventAutogenerated() |
void |
onEvent(ImmutableEventDatagram event)
Processes the specified event.
|
void |
open(com.streamscape.ds.session.Session session) |
boolean |
removeWindow() |
void |
setEventScope(EventScope eventScope) |
void |
setLastSlidingTimeWindowCheckerTime(long lastSlidingTimeWindowCheckerTime) |
void |
setLastSlidingTimeWindowDeletedRows(int lastSlidingTimeWindowDeletedRows) |
void |
setNextSlidingTimeWindowCheckerTime(long nextSlidingTimeWindowCheckerTime) |
void |
setTimeWindowUnit(java.util.concurrent.TimeUnit timeWindowUnit) |
void |
setWindowCheckInterval(long interval) |
void |
setWindowCheckIntervalUnit(java.util.concurrent.TimeUnit unit) |
void |
setWindowSize(long windowSize) |
void |
setWindowType(com.streamscape.ds.core.CollectionWindowType windowType) |
void |
start(com.streamscape.ds.session.Session session) |
void |
startWindow() |
void |
stop(com.streamscape.ds.session.Session session) |
ImmutableEventDatagram |
unwrapEvent(com.streamscape.ds.session.Session session,
java.lang.Object data) |
void |
upsert(com.streamscape.ds.session.Session session,
ImmutableEventDatagram event) |
ImmutableEventDatagram |
waitToRead(com.streamscape.ds.session.Session session,
java.lang.String selector,
long timeout,
java.util.concurrent.TimeUnit unit) |
ImmutableEventDatagram |
waitToRead(com.streamscape.ds.session.Session session,
java.lang.String selector,
long timeout,
java.util.concurrent.TimeUnit unit,
boolean isLast) |
ImmutableEventDatagram |
waitToReadLast(com.streamscape.ds.session.Session session,
java.lang.String selector,
long timeout,
java.util.concurrent.TimeUnit unit) |
ImmutableEventDatagram |
waitToTake(com.streamscape.ds.session.Session session,
java.lang.String selector,
long timeout,
java.util.concurrent.TimeUnit unit) |
ImmutableEventDatagram |
waitToTake(com.streamscape.ds.session.Session session,
java.lang.String selector,
long timeout,
java.util.concurrent.TimeUnit unit,
boolean isLast) |
ImmutableEventDatagram |
waitToTakeLast(com.streamscape.ds.session.Session session,
java.lang.String selector,
long timeout,
java.util.concurrent.TimeUnit unit) |
java.lang.Object |
wrapEvent(com.streamscape.ds.session.Session session,
ImmutableEventDatagram event) |
clear, clear, compileColumnNames, containsPrimarykey, delete, delete, deleteAll, drainFromQueue, fromMap, fromQueue, fromRowSet, fromTable, getRow, hasForeignKey, hasPrimaryKey, insert, insert, insert, insert, insertAll, insertAll, isEmpty, primaryKeySet, rowSet, select, size, toMap, toMapCollection, toQueue, toQueueCollection, toRowSet, toTableCollection, update, update, update, upsert, upsert
aggregateStateHolder, checkResultIsData, checkResultNotError, checkUpdateCountIs, count, dropReplicationSource, exposeCollectionState, getBaseTable, getCatalogName, getChangeTimestamp, getCollectionComponents, getCollectionName, getCollectionName, getCollectionType, getCollectionType, getCollectionTypeName, getCollectionTypeNameCamelCase, getComponents, getDataspace, getMemoryModel, getMemoryModel, getObjectName, getObjectType, getOwner, getReplicationSource, getSchemaName, getSQL, getSQL, getStateHolder, getWindowTriggers, isReplicated, listTriggers, listTriggers, resetBaseTable, setReplicationSource, updateBaseTable, validate, validateTypes
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
aggregateObjectStateHolder, getSQLInSchema, recompileObject
public EventTableCollection(DataspaceStore database, NameManager.ObjectName name, com.streamscape.ds.core.MemoryModel memoryModel, java.lang.String eventId, java.lang.String selector, java.util.List includeProps, java.util.List excludeProps, boolean withSourceEvent, boolean isSourceEventBlob, boolean isConsumer, boolean isConsumerAsync, int consumerMaxDepth, java.util.List primaryKeyColumns)
public boolean isStarted()
public void setEventScope(EventScope eventScope)
public EventScope getEventScope()
public com.streamscape.ds.core.CollectionWindowType getWindowType()
getWindowType
in interface com.streamscape.ds.utils.WindowCollection
public void setWindowType(com.streamscape.ds.core.CollectionWindowType windowType)
public long getWindowSize()
getWindowSize
in interface com.streamscape.ds.utils.WindowCollection
public void setWindowSize(long windowSize)
public java.util.concurrent.TimeUnit getTimeWindowUnit()
getTimeWindowUnit
in interface com.streamscape.ds.utils.WindowCollection
public void setTimeWindowUnit(java.util.concurrent.TimeUnit timeWindowUnit)
public long getWindowCheckInterval()
public void setWindowCheckInterval(long interval)
public java.util.concurrent.TimeUnit getWindowCheckIntervalUnit()
public void setWindowCheckIntervalUnit(java.util.concurrent.TimeUnit unit)
public void compile(com.streamscape.ds.session.Session session, SchemaObject parentObject)
compile
in interface SchemaObject
compile
in class TableCollection
public void compileInternalStatements(com.streamscape.ds.session.Session session)
compileInternalStatements
in interface Collection
compileInternalStatements
in class TableCollection
public void open(com.streamscape.ds.session.Session session)
open
in interface Collection
open
in class AbstractCollection
public void start(com.streamscape.ds.session.Session session)
public void stop(com.streamscape.ds.session.Session session)
public void activateWindow(com.streamscape.ds.session.Session session, NameManager.ObjectName internalTableName)
public void startWindow()
public boolean removeWindow()
public void onEvent(ImmutableEventDatagram event) throws FabricEventException
FabricEventListener
onEvent
in interface FabricEventListener
event
- the event to be processed.FabricEventException
- if some error occurs during processing.public com.streamscape.sef.dii.AccessibleObjectProxy getProxy()
getProxy
in interface com.streamscape.sef.dii.AccessibleObject
getProxy
in class TableCollection
public void destroy(com.streamscape.ds.session.Session session)
destroy
in interface Collection
destroy
in class AbstractCollection
public void close()
close
in interface Collection
close
in class AbstractCollection
public java.lang.String getSQLForReplication(java.lang.String replicaName)
getSQLForReplication
in interface Collection
getSQLForReplication
in class TableCollection
public java.lang.String getSQL()
getSQL
in interface SchemaObject
getSQL
in class TableCollection
public java.lang.String getSQL(java.lang.String name, boolean forReplication)
getSQL
in class TableCollection
public java.lang.String getCollectionSQL(boolean forReplication)
public ImmutableEventDatagram getEventForTrigger(com.streamscape.ds.session.Session session, java.lang.Object[] oldData, java.lang.Object[] newData, int when, int triggerType)
getEventForTrigger
in interface Collection
getEventForTrigger
in class AbstractCollection
public void delete(com.streamscape.ds.session.Session session, ImmutableEventDatagram event)
public void insert(com.streamscape.ds.session.Session session, ImmutableEventDatagram event)
public void upsert(com.streamscape.ds.session.Session session, ImmutableEventDatagram event)
public com.streamscape.ds.result.Result getCollectionProperties(com.streamscape.ds.session.Session session)
getCollectionProperties
in interface Collection
getCollectionProperties
in class AbstractCollection
public java.lang.String getTriggerEventId(int whenType, int operationType)
getTriggerEventId
in interface Collection
getTriggerEventId
in class AbstractCollection
public boolean isTriggerEventAutogenerated()
isTriggerEventAutogenerated
in interface Collection
isTriggerEventAutogenerated
in class AbstractCollection
public java.lang.Object wrapEvent(com.streamscape.ds.session.Session session, ImmutableEventDatagram event)
wrapEvent
in interface Collection
wrapEvent
in class AbstractCollection
public ImmutableEventDatagram unwrapEvent(com.streamscape.ds.session.Session session, java.lang.Object data)
unwrapEvent
in interface Collection
unwrapEvent
in class AbstractCollection
public ImmutableEventDatagram waitToTake(com.streamscape.ds.session.Session session, java.lang.String selector, long timeout, java.util.concurrent.TimeUnit unit)
public ImmutableEventDatagram waitToTakeLast(com.streamscape.ds.session.Session session, java.lang.String selector, long timeout, java.util.concurrent.TimeUnit unit)
public ImmutableEventDatagram waitToTake(com.streamscape.ds.session.Session session, java.lang.String selector, long timeout, java.util.concurrent.TimeUnit unit, boolean isLast)
public ImmutableEventDatagram waitToRead(com.streamscape.ds.session.Session session, java.lang.String selector, long timeout, java.util.concurrent.TimeUnit unit)
public ImmutableEventDatagram waitToReadLast(com.streamscape.ds.session.Session session, java.lang.String selector, long timeout, java.util.concurrent.TimeUnit unit)
public ImmutableEventDatagram waitToRead(com.streamscape.ds.session.Session session, java.lang.String selector, long timeout, java.util.concurrent.TimeUnit unit, boolean isLast)
public java.util.List getEvents()
getEvents
in interface Collection
getEvents
in class TableCollection
public com.streamscape.ds.lib.OrderedHashSet getReferences()
getReferences
in interface SchemaObject
getReferences
in class AbstractCollection
public void setNextSlidingTimeWindowCheckerTime(long nextSlidingTimeWindowCheckerTime)
setNextSlidingTimeWindowCheckerTime
in interface com.streamscape.ds.utils.WindowCollection
public void setLastSlidingTimeWindowDeletedRows(int lastSlidingTimeWindowDeletedRows)
setLastSlidingTimeWindowDeletedRows
in interface com.streamscape.ds.utils.WindowCollection
public void setLastSlidingTimeWindowCheckerTime(long lastSlidingTimeWindowCheckerTime)
setLastSlidingTimeWindowCheckerTime
in interface com.streamscape.ds.utils.WindowCollection
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.