Class NoOpQueryEngine
- java.lang.Object
-
- org.apache.ignite.internal.processors.GridProcessorAdapter
-
- org.apache.ignite.internal.processors.query.NoOpQueryEngine
-
- All Implemented Interfaces:
GridComponent,GridProcessor,QueryEngine
public class NoOpQueryEngine extends GridProcessorAdapter implements QueryEngine
No op implementation.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.ignite.internal.GridComponent
GridComponent.DiscoveryDataExchangeType
-
-
Field Summary
-
Fields inherited from class org.apache.ignite.internal.processors.GridProcessorAdapter
ctx, diagnosticLog, log
-
-
Constructor Summary
Constructors Constructor Description NoOpQueryEngine(GridKernalContext ctx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<List<GridQueryFieldMetadata>>parameterMetaData(@Nullable QueryContext ctx, String schemaName, String qry)List<FieldsQueryCursor<List<?>>>query(@Nullable QueryContext ctx, String schemaName, String query, Object... params)List<FieldsQueryCursor<List<?>>>queryBatched(@Nullable QueryContext ctx, String schemaName, String qry, List<Object[]> batchedParams)List<List<GridQueryFieldMetadata>>resultSetMetaData(@Nullable QueryContext ctx, String schemaName, String qry)-
Methods inherited from class org.apache.ignite.internal.processors.GridProcessorAdapter
assertParameter, collectGridNodeData, collectJoiningNodeData, discoveryDataType, onDisconnected, onGridDataReceived, onJoiningNodeDataReceived, onKernalStart, onKernalStop, onReconnected, printMemoryStats, start, stop, toString, validateNode, validateNode
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.ignite.internal.GridComponent
collectGridNodeData, collectJoiningNodeData, discoveryDataType, onDisconnected, onGridDataReceived, onJoiningNodeDataReceived, onKernalStart, onKernalStop, onReconnected, printMemoryStats, start, stop, validateNode, validateNode
-
-
-
-
Constructor Detail
-
NoOpQueryEngine
public NoOpQueryEngine(GridKernalContext ctx)
- Parameters:
ctx- Kernal context.
-
-
Method Detail
-
query
public List<FieldsQueryCursor<List<?>>> query(@Nullable @Nullable QueryContext ctx, String schemaName, String query, Object... params) throws IgniteSQLException
- Specified by:
queryin interfaceQueryEngine- Parameters:
ctx- Query context, may be null.schemaName- Schema name.query- Query.params- Optional query parameters.- Returns:
- List of query cursors. Size of list depends on number of distinct queries in
qry. - Throws:
IgniteSQLException- If failed.
-
parameterMetaData
public List<List<GridQueryFieldMetadata>> parameterMetaData(@Nullable @Nullable QueryContext ctx, String schemaName, String qry) throws IgniteSQLException
- Specified by:
parameterMetaDatain interfaceQueryEngine- Parameters:
ctx- Query context, may be null.schemaName- Schema name.qry- Query.- Returns:
- List of queries' parameters metadata. Size of list depends on number of distinct queries in
qry. - Throws:
IgniteSQLException- If failed.
-
resultSetMetaData
public List<List<GridQueryFieldMetadata>> resultSetMetaData(@Nullable @Nullable QueryContext ctx, String schemaName, String qry) throws IgniteSQLException
- Specified by:
resultSetMetaDatain interfaceQueryEngine- Parameters:
ctx- Query context, may be null.schemaName- Schema name.qry- Query.- Returns:
- List of queries' result sets metadata. Size of list depends on number of distinct queries in
qry. - Throws:
IgniteSQLException- If failed.
-
queryBatched
public List<FieldsQueryCursor<List<?>>> queryBatched(@Nullable @Nullable QueryContext ctx, String schemaName, String qry, List<Object[]> batchedParams) throws IgniteSQLException
- Specified by:
queryBatchedin interfaceQueryEngine- Parameters:
ctx- Query context, may be null.schemaName- Schema name.qry- Query.batchedParams- Optional query parameters.- Returns:
- List of query cursors. Size of list equals to size of
batchedParams. - Throws:
IgniteSQLException- If failed.
-
-