public class SourceStreamCollection extends AbstractCollection implements com.streamscape.sef.dii.AccessibleObject, com.streamscape.ds.utils.SourceEventFlowData
Title: Dataspace Framework
Description: Source Stream collection implementation
Copyright: Copyright (c) 2012
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 |
---|
SourceStreamCollection(DataspaceStore database,
NameManager.ObjectName name,
java.lang.String eventId,
long interval,
boolean isEvent,
java.lang.String streamStateEventId,
boolean withIndex,
int parallelDegree,
boolean fromFileDescriptor) |
Modifier and Type | Method and Description |
---|---|
void |
compile(com.streamscape.ds.session.Session session,
SchemaObject parentObject) |
void |
compileInternalStatements(com.streamscape.ds.session.Session session) |
static java.lang.String |
convertMillisToIntervals(long millis) |
void |
destroy(com.streamscape.ds.session.Session session) |
com.streamscape.ds.result.Result |
getCollectionProperties(com.streamscape.ds.session.Session session) |
long |
getElapsedTime() |
EventFlowEntity |
getEntity() |
java.lang.String |
getEntityName() |
java.util.HashMap |
getEntityParameters() |
EventScope |
getEntityScope() |
java.lang.String |
getEventId() |
java.util.List |
getEvents() |
long |
getInterval() |
java.lang.String |
getLastError() |
long |
getNumberOfProcessedEvents() |
com.streamscape.sef.dii.AccessibleObjectProxy |
getProxy() |
com.streamscape.ds.lib.OrderedHashSet |
getReferences() |
java.lang.String |
getSQL() |
java.lang.String |
getState() |
View |
getView() |
void |
resume(com.streamscape.ds.session.Session s) |
void |
setSql(java.lang.String sql) |
com.streamscape.ds.result.Result |
start(com.streamscape.ds.session.Session s) |
void |
stop(com.streamscape.ds.session.Session s) |
void |
suspend(com.streamscape.ds.session.Session s) |
aggregateStateHolder, checkResultIsData, checkResultNotError, checkUpdateCountIs, close, count, dropReplicationSource, exposeCollectionState, getBaseTable, getCatalogName, getChangeTimestamp, getCollectionComponents, getCollectionName, getCollectionName, getCollectionType, getCollectionType, getCollectionTypeName, getCollectionTypeNameCamelCase, getComponents, getDataspace, getEventForTrigger, getMemoryModel, getMemoryModel, getObjectName, getObjectType, getOwner, getReplicationSource, getSchemaName, getSQL, getSQL, getSQL, getSQLForReplication, getStateHolder, getTriggerEventId, getWindowTriggers, isReplicated, isTriggerEventAutogenerated, listTriggers, listTriggers, open, resetBaseTable, setReplicationSource, unwrapEvent, updateBaseTable, validate, validateTypes, wrapEvent
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
aggregateObjectStateHolder, getSQLInSchema, recompileObject
public SourceStreamCollection(DataspaceStore database, NameManager.ObjectName name, java.lang.String eventId, long interval, boolean isEvent, java.lang.String streamStateEventId, boolean withIndex, int parallelDegree, boolean fromFileDescriptor)
public void compile(com.streamscape.ds.session.Session session, SchemaObject parentObject)
compile
in interface SchemaObject
compile
in class AbstractCollection
public void compileInternalStatements(com.streamscape.ds.session.Session session)
compileInternalStatements
in interface Collection
compileInternalStatements
in class AbstractCollection
public void setSql(java.lang.String sql)
public View getView()
public void destroy(com.streamscape.ds.session.Session session)
destroy
in interface Collection
destroy
in class AbstractCollection
public com.streamscape.ds.result.Result start(com.streamscape.ds.session.Session s) throws DataspaceException
DataspaceException
public void stop(com.streamscape.ds.session.Session s)
public void suspend(com.streamscape.ds.session.Session s)
public void resume(com.streamscape.ds.session.Session s)
public long getNumberOfProcessedEvents()
public long getElapsedTime()
public com.streamscape.ds.result.Result getCollectionProperties(com.streamscape.ds.session.Session session)
getCollectionProperties
in interface Collection
getCollectionProperties
in class AbstractCollection
public com.streamscape.ds.lib.OrderedHashSet getReferences()
getReferences
in interface SchemaObject
getReferences
in class AbstractCollection
public java.lang.String getState()
public long getInterval()
public java.lang.String getEventId()
public java.lang.String getLastError()
public static java.lang.String convertMillisToIntervals(long millis)
public java.lang.String getSQL()
getSQL
in interface SchemaObject
getSQL
in class AbstractCollection
public com.streamscape.sef.dii.AccessibleObjectProxy getProxy()
getProxy
in interface com.streamscape.sef.dii.AccessibleObject
public java.util.List getEvents()
getEvents
in interface Collection
getEvents
in class AbstractCollection
public EventFlowEntity getEntity()
getEntity
in interface com.streamscape.ds.utils.SourceEventFlowData
public java.lang.String getEntityName()
getEntityName
in interface com.streamscape.ds.utils.SourceEventFlowData
public EventScope getEntityScope()
getEntityScope
in interface com.streamscape.ds.utils.SourceEventFlowData
public java.util.HashMap getEntityParameters()
getEntityParameters
in interface com.streamscape.ds.utils.SourceEventFlowData
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.