public class PlatformContinuousQueryImpl extends Object implements PlatformContinuousQuery
| Modifier and Type | Field and Description |
|---|---|
protected Object |
filter
Native filter in serialized form.
|
protected javax.cache.event.CacheEntryEventFilter |
javaFilter
Java filter.
|
protected PlatformContext |
platformCtx
Context.
|
| Constructor and Description |
|---|
PlatformContinuousQueryImpl(PlatformContext platformCtx,
long ptr,
boolean hasFilter,
Object filter)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close continuous query.
|
boolean |
evaluate(javax.cache.event.CacheEntryEvent evt) |
PlatformTarget |
getInitialQueryCursor()
Gets initial query cursor (if any).
|
void |
onQueryUnregister()
Callback for query unregister event.
|
void |
onUpdated(Iterable evts) |
void |
start(IgniteCacheProxy cache,
boolean loc,
int bufSize,
long timeInterval,
boolean autoUnsubscribe,
Query initialQry)
Start query execution.
|
protected final PlatformContext platformCtx
protected final Object filter
protected final javax.cache.event.CacheEntryEventFilter javaFilter
public PlatformContinuousQueryImpl(PlatformContext platformCtx, long ptr, boolean hasFilter, Object filter)
platformCtx - Context.ptr - Pointer to native counterpart.hasFilter - Whether filter exists.filter - Filter.public void start(IgniteCacheProxy cache, boolean loc, int bufSize, long timeInterval, boolean autoUnsubscribe, Query initialQry) throws IgniteCheckedException
start in interface PlatformContinuousQuerycache - Cache.loc - Local flag.bufSize - Buffer size.timeInterval - Time interval.autoUnsubscribe - Auto-unsubscribe flag.initialQry - Initial query.IgniteCheckedException - If failed.public void onUpdated(Iterable evts) throws javax.cache.event.CacheEntryListenerException
onUpdated in interface javax.cache.event.CacheEntryUpdatedListenerjavax.cache.event.CacheEntryListenerExceptionpublic boolean evaluate(javax.cache.event.CacheEntryEvent evt)
throws javax.cache.event.CacheEntryListenerException
evaluate in interface javax.cache.event.CacheEntryEventFilterjavax.cache.event.CacheEntryListenerExceptionpublic void onQueryUnregister()
onQueryUnregister in interface PlatformContinuousQueryFilterpublic void close()
close in interface PlatformContinuousQuerypublic PlatformTarget getInitialQueryCursor()
getInitialQueryCursor in interface PlatformContinuousQuery
Follow @ApacheIgnite
Ignite Fabric : ver. 2.1.0 Release Date : July 20 2017