Package org.apache.cassandra.cql3
Class CustomPayloadMirroringQueryHandler
java.lang.Object
org.apache.cassandra.cql3.CustomPayloadMirroringQueryHandler
- All Implemented Interfaces:
QueryHandler
Custom QueryHandler that sends custom request payloads back with the result.
Used to facilitate testing.
Enabled with system property
CassandraRelevantProperties.CUSTOM_QUERY_HANDLER_CLASS.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.cassandra.cql3.QueryHandler
QueryHandler.Prepared -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPrepared(MD5Digest id) parse(String query, QueryState state, QueryOptions options) prepare(String query, ClientState clientState, Map<String, ByteBuffer> customPayload) process(CQLStatement statement, QueryState state, QueryOptions options, Map<String, ByteBuffer> customPayload, Dispatcher.RequestTime requestTime) processBatch(BatchStatement statement, QueryState state, BatchQueryOptions options, Map<String, ByteBuffer> customPayload, Dispatcher.RequestTime requestTime) processPrepared(CQLStatement statement, QueryState state, QueryOptions options, Map<String, ByteBuffer> customPayload, Dispatcher.RequestTime requestTime)
-
Constructor Details
-
CustomPayloadMirroringQueryHandler
public CustomPayloadMirroringQueryHandler()
-
-
Method Details
-
parse
- Specified by:
parsein interfaceQueryHandler
-
process
public ResultMessage process(CQLStatement statement, QueryState state, QueryOptions options, Map<String, ByteBuffer> customPayload, Dispatcher.RequestTime requestTime) - Specified by:
processin interfaceQueryHandler
-
prepare
public ResultMessage.Prepared prepare(String query, ClientState clientState, Map<String, ByteBuffer> customPayload) - Specified by:
preparein interfaceQueryHandler
-
getPrepared
- Specified by:
getPreparedin interfaceQueryHandler
-
processPrepared
public ResultMessage processPrepared(CQLStatement statement, QueryState state, QueryOptions options, Map<String, ByteBuffer> customPayload, Dispatcher.RequestTime requestTime) - Specified by:
processPreparedin interfaceQueryHandler
-
processBatch
public ResultMessage processBatch(BatchStatement statement, QueryState state, BatchQueryOptions options, Map<String, ByteBuffer> customPayload, Dispatcher.RequestTime requestTime) - Specified by:
processBatchin interfaceQueryHandler
-