public class GridSqlQueryParser extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
GridSqlQueryParser.Getter<T,R>
Field getter.
|
static class |
GridSqlQueryParser.PreparedWithRemaining |
| Modifier and Type | Field and Description |
|---|---|
static String |
ORG_H2_COMMAND_COMMAND_LIST |
static String |
PARAM_DATA_REGION
Data region name.
|
static String |
PARAM_WRAP_VALUE |
static GridSqlQueryParser.Getter<org.h2.table.TableView,org.h2.command.dml.Query> |
VIEW_QUERY |
| Constructor and Description |
|---|
GridSqlQueryParser(boolean useOptimizedSubqry) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
checkMultipleStatements(PreparedStatement stmt) |
GridCacheContext |
getFirstPartitionedCache()
Get first (i.e. random, as we need any one) partitioned cache from parsed query
to determine expected query parallelism.
|
boolean |
isLocalQuery(boolean replicatedOnlyQry)
Check if query may be run locally on all caches mentioned in the query.
|
static boolean |
isStreamableInsertStatement(PreparedStatement nativeStmt)
Check if passed statement is insert statement eligible for streaming.
|
GridSqlStatement |
parse(org.h2.command.Prepared stmt) |
static org.h2.command.Prepared |
prepared(PreparedStatement stmt) |
static GridSqlQueryParser.PreparedWithRemaining |
preparedWithRemaining(PreparedStatement stmt) |
static org.h2.command.dml.Query |
query(org.h2.command.Prepared qry) |
public static final GridSqlQueryParser.Getter<org.h2.table.TableView,org.h2.command.dml.Query> VIEW_QUERY
public static final String ORG_H2_COMMAND_COMMAND_LIST
public static final String PARAM_WRAP_VALUE
public static final String PARAM_DATA_REGION
public GridSqlQueryParser(boolean useOptimizedSubqry)
useOptimizedSubqry - If we have to find correct order for table filters in FROM clause.
Relies on uniqueness of table filter aliases.public static boolean checkMultipleStatements(PreparedStatement stmt)
stmt - Prepared statement to check.true in case of multiple statements.public static org.h2.command.Prepared prepared(PreparedStatement stmt)
stmt - Prepared statement.public static GridSqlQueryParser.PreparedWithRemaining preparedWithRemaining(PreparedStatement stmt)
stmt - Prepared statement.public static org.h2.command.dml.Query query(org.h2.command.Prepared qry)
qry - Prepared.public boolean isLocalQuery(boolean replicatedOnlyQry)
replicatedOnlyQry - replicated-only query flag from original SqlFieldsQuery.true if query may be run locally on all caches mentioned in the query, i.e. there's no need
to run distributed query.SqlFieldsQuery.isReplicatedOnly()public GridCacheContext getFirstPartitionedCache()
null if it does not involve partitioned caches.public final GridSqlStatement parse(org.h2.command.Prepared stmt)
stmt - Prepared statement.public static boolean isStreamableInsertStatement(PreparedStatement nativeStmt)
nativeStmt - Native statement.True if streamable insert.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.6.0 Release Date : July 10 2018