Package org.apache.ignite.events
Class SqlQueryExecutionEvent
- java.lang.Object
- 
- org.apache.ignite.events.EventAdapter
- 
- org.apache.ignite.events.SqlQueryExecutionEvent
 
 
- 
- All Implemented Interfaces:
- Serializable,- Comparable<Event>,- Event
 
 public class SqlQueryExecutionEvent extends EventAdapter Query execution event. This event is triggered after a corresponding SQL query validated and before it is executed. UnlikeEventType.EVT_CACHE_QUERY_EXECUTED,EventType.EVT_SQL_QUERY_EXECUTIONis fired only once for a request and does not relate to a specific cache.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...).Events and PerformanceNote that by default all events in Ignite are enabled and therefore generated and stored by whatever event storage SPI is configured. Ignite can and often does generate thousands events per seconds under the load and therefore it creates a significant additional load on the system. If these events are not needed by the application this load is unnecessary and leads to significant performance degradation.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.- See Also:
- EventType.EVT_SQL_QUERY_EXECUTION, Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description SqlQueryExecutionEvent(ClusterNode node, String msg, @Nullable String text, @Nullable Object[] args, @Nullable UUID subjId)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable Object[]arguments()Gets query arguments.@Nullable UUIDsubjectId()Gets security subject ID.@Nullable Stringtext()Gets query text.StringtoString()- 
Methods inherited from class org.apache.ignite.events.EventAdaptercompareTo, equals, hashCode, id, localOrder, message, message, name, node, node, shortDisplay, timestamp, type, type
 
- 
 
- 
- 
- 
Constructor Detail- 
SqlQueryExecutionEventpublic SqlQueryExecutionEvent(ClusterNode node, String msg, @Nullable @Nullable String text, @Nullable @Nullable Object[] args, @Nullable @Nullable UUID subjId) - Parameters:
- node- Node where event was fired.
- msg- Event message.
- text- Query text.
- args- Query arguments.
- subjId- Security subject ID.
 
 
- 
 - 
Method Detail- 
text@Nullable public @Nullable String text() Gets query text.Applicable for SQL,SQL fieldsqueries.- Returns:
- Query text.
 
 - 
arguments@Nullable public @Nullable Object[] arguments() Gets query arguments.Applicable for SQLandSQL fieldsqueries.- Returns:
- Query arguments.
 
 - 
subjectId@Nullable public @Nullable UUID subjectId() Gets security subject ID.- Returns:
- Security subject ID.
 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- EventAdapter
 
 
- 
 
-