public class CacheQueryReadEvent<K,V> extends EventAdapter
Grid events are used for notification about what happens within the grid. Note that by design Ignite keeps all events generated on the local node locally and it provides APIs for performing a distributed queries across multiple nodes:
IgniteEvents.remoteQuery(org.apache.ignite.lang.IgnitePredicate, long, int...)
-
asynchronously querying events occurred on the nodes specified, including remote nodes.
IgniteEvents.localQuery(org.apache.ignite.lang.IgnitePredicate, int...)
-
querying only local events stored on this local node.
IgniteEvents.localListen(org.apache.ignite.lang.IgnitePredicate, int...)
-
listening to local grid events (events from remote nodes not included).
IgniteEvents.waitForLocal(org.apache.ignite.lang.IgnitePredicate, int...)
.
It is highly recommended to enable only those events that your application logic requires
by using IgniteConfiguration.getIncludeEventTypes()
method in Ignite configuration. Note that certain
events are required for Ignite's internal operations and such events will still be generated but not stored by
event storage SPI if they are disabled in Ignite configuration.
Constructor and Description |
---|
CacheQueryReadEvent(ClusterNode node,
String msg,
int type,
String qryType,
@Nullable String cacheName,
@Nullable String clsName,
@Nullable String clause,
@Nullable IgniteBiPredicate<K,V> scanQryFilter,
@Nullable CacheEntryEventSerializableFilter<K,V> contQryFilter,
@Nullable Object[] args,
@Nullable UUID subjId,
@Nullable String taskName,
K key,
V val,
V oldVal,
@Nullable Object row) |
Modifier and Type | Method and Description |
---|---|
@Nullable Object[] |
arguments()
Gets query arguments.
|
@Nullable String |
cacheName()
Gets cache name on which query was executed.
|
@Nullable String |
className()
Gets queried class name.
|
@Nullable String |
clause()
Gets query clause.
|
@Nullable CacheEntryEventSerializableFilter<K,V> |
continuousQueryFilter()
Gets continuous query filter.
|
K |
key()
Gets read entry key.
|
V |
oldValue()
Gets read entry old value (applicable for continuous queries).
|
String |
queryType()
Gets query type.
|
@Nullable Object |
row()
Gets read results set row.
|
@Nullable IgniteBiPredicate<K,V> |
scanQueryFilter()
Gets scan query filter.
|
@Nullable UUID |
subjectId()
Gets security subject ID.
|
@Nullable String |
taskName()
Gets the name of the task that executed the query (if any).
|
String |
toString() |
V |
value()
Gets read entry value.
|
compareTo, equals, hashCode, id, localOrder, message, message, name, node, node, shortDisplay, timestamp, type, type
public CacheQueryReadEvent(ClusterNode node, String msg, int type, String qryType, @Nullable @Nullable String cacheName, @Nullable @Nullable String clsName, @Nullable @Nullable String clause, @Nullable @Nullable IgniteBiPredicate<K,V> scanQryFilter, @Nullable @Nullable CacheEntryEventSerializableFilter<K,V> contQryFilter, @Nullable @Nullable Object[] args, @Nullable @Nullable UUID subjId, @Nullable @Nullable String taskName, @Nullable K key, @Nullable V val, @Nullable V oldVal, @Nullable @Nullable Object row)
node
- Node where event was fired.msg
- Event message.type
- Event type.cacheName
- Cache name.clsName
- Class name.clause
- Clause.scanQryFilter
- Scan query filter.args
- Query arguments.subjId
- Security subject ID.key
- Key.val
- Value.oldVal
- Old value.public String queryType()
"SQL"
, "SQL_FIELDS"
, "FULL_TEXT"
, "SCAN"
,
"CONTINUOUS"
or "SPI"
.@Nullable public @Nullable String cacheName()
@Nullable public @Nullable String className()
Applicable for SQL
and @{code full text} queries.
@Nullable public @Nullable String clause()
Applicable for SQL
, SQL fields
and @{code full text} queries.
@Nullable public @Nullable IgniteBiPredicate<K,V> scanQueryFilter()
Applicable for scan
queries.
@Nullable public @Nullable CacheEntryEventSerializableFilter<K,V> continuousQueryFilter()
Applicable for continuous
queries.
@Nullable public @Nullable Object[] arguments()
Applicable for SQL
and SQL fields
queries.
@Nullable public @Nullable UUID subjectId()
@Nullable public @Nullable String taskName()
@Nullable public K key()
@Nullable public V value()
@Nullable public V oldValue()
@Nullable public @Nullable Object row()
public String toString()
toString
in class EventAdapter
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024