public class SqlCommandProcessor extends Object
| Modifier and Type | Field and Description |
|---|---|
protected GridKernalContext |
ctx
Kernal context.
|
protected IgniteLogger |
log
Logger.
|
protected GridQuerySchemaManager |
schemaMgr
Schema manager.
|
| Constructor and Description |
|---|
SqlCommandProcessor(GridKernalContext ctx,
GridQuerySchemaManager schemaMgr)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected static void |
ensureDdlSupported(GridCacheContextInfo<?,?> cctxInfo)
Check if cache supports DDL statement.
|
protected void |
finishActiveTxIfNecessary()
Commits active transaction if exists.
|
boolean |
isCommandSupported(SqlCommand cmd) |
@Nullable FieldsQueryCursor<List<?>> |
runCommand(SqlCommand cmdNative)
Execute command.
|
protected final GridKernalContext ctx
protected final IgniteLogger log
protected final GridQuerySchemaManager schemaMgr
public SqlCommandProcessor(GridKernalContext ctx, GridQuerySchemaManager schemaMgr)
ctx - Kernal context.schemaMgr - Schema manager.@Nullable public @Nullable FieldsQueryCursor<List<?>> runCommand(SqlCommand cmdNative)
cmdNative - Native command.public boolean isCommandSupported(SqlCommand cmd)
True if command is supported by this command processor.protected void finishActiveTxIfNecessary()
throws IgniteCheckedException
IgniteCheckedException - If failed.protected static void ensureDdlSupported(GridCacheContextInfo<?,?> cctxInfo) throws IgniteSQLException
cctxInfo - Cache context info.IgniteSQLException - If failed.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.13.0 Release Date : April 20 2022