public class QueryListenerWrapper extends Object implements QueryListener, Query
| Constructor and Description |
|---|
QueryListenerWrapper(LiveViewMultiConnectionImpl liveViewMultiConnectionImpl,
QueryConfig config,
QueryListener qListener) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the client and server resources associated with this Query.
|
void |
deleteBegin(BeginDeleteEvent event)
Event to indicate the start of delete query.
|
void |
deleteEnd(EndDeleteEvent event)
Event to indicate the delete query is complete.
|
void |
exceptionRaised(QueryExceptionEvent event)
Event when an exception occurs during the query.
|
QueryConfig |
getConfig()
Returns a QueryConfig object that contains fully parsed pieces like table, predicate, groupByExprs, etc.
|
List<Schema.Field> |
getFields()
Returns a list describing the fields of the tuples that will be returned by this Query.
|
List<Schema.Field> |
getKeyFields()
Returns a list of fields describing the primary key for this table.
|
short |
getQueryId()
This will match the queryId on the events.
|
Query |
getRealQuery() |
Schema |
getSchema() |
boolean |
isOpen()
If this is false, either you've already gotten a QueryClosed event or you're about to get one.
|
void |
queryClosed(QueryClosedEvent event)
Event when a query being listened to is closed.
|
void |
setRealQuery(Query realQuery) |
void |
setSchema(Schema schema) |
void |
snapshotBegin(BeginSnapshotEvent event)
Event to indicate the start of the result snapshot.
|
void |
snapshotEnd(EndSnapshotEvent event)
Event to indicate the query snapshot is complete.
|
void |
tupleAdded(TupleAddedEvent event)
Event when a new tuple is added to the result.
|
void |
tupleRemoved(TupleRemovedEvent event)
Event when an existing tuple is removed from the result.
|
void |
tupleUpdated(TupleUpdatedEvent event)
Event when an existing tuple in the result is updated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaggMarkBegin, aggMarkEndpublic QueryListenerWrapper(LiveViewMultiConnectionImpl liveViewMultiConnectionImpl, QueryConfig config, QueryListener qListener)
config - qListener - liveViewMultiConnectionImpl - public QueryConfig getConfig()
Querypublic void tupleAdded(TupleAddedEvent event)
QueryListenertupleAdded in interface QueryListenerevent - add eventpublic void tupleUpdated(TupleUpdatedEvent event)
QueryListenertupleUpdated in interface QueryListenerevent - update eventpublic void tupleRemoved(TupleRemovedEvent event)
QueryListenertupleRemoved in interface QueryListenerevent - remove eventpublic void snapshotBegin(BeginSnapshotEvent event)
QueryListenersnapshotBegin in interface QueryListenerevent - snapshot beginpublic void snapshotEnd(EndSnapshotEvent event)
QueryListenersnapshotEnd in interface QueryListenerevent - snapshot endpublic void deleteBegin(BeginDeleteEvent event)
QueryListenerdeleteBegin in interface QueryListenerevent - delete beginpublic void deleteEnd(EndDeleteEvent event)
QueryListenerdeleteEnd in interface QueryListenerevent - delete endpublic void exceptionRaised(QueryExceptionEvent event)
QueryListenerexceptionRaised in interface QueryListenerevent - exception eventpublic void queryClosed(QueryClosedEvent event)
QueryListenerqueryClosed in interface QueryListenerevent - query closed eventpublic List<Schema.Field> getFields()
Querypublic List<Schema.Field> getKeyFields()
QuerygetKeyFields in interface Querypublic void close()
Querypublic boolean isOpen()
Querypublic short getQueryId()
QuerygetQueryId in interface Querypublic Query getRealQuery()
public void setRealQuery(Query realQuery)
realQuery - the realQuery to setpublic Schema getSchema()
public void setSchema(Schema schema)
schema - the schema to setCopyright © 2015–2018 Cloud Software Group, Inc.. All rights reserved.