public final class JdbcSqlFieldsQuery extends SqlFieldsQuery
SqlFieldsQuery with JDBC flavor - it has additional flag indicating whether JDBC driver expects
this query to return a result set or an update counter. This class is not intended for use outside JDBC driver.DFLT_PAGE_SIZE| Modifier and Type | Method and Description |
|---|---|
boolean |
isQuery() |
JdbcSqlFieldsQuery |
setArgs(Object... args)
Sets SQL arguments.
|
JdbcSqlFieldsQuery |
setCollocated(boolean collocated)
Sets flag defining if this query is collocated.
|
JdbcSqlFieldsQuery |
setDistributedJoins(boolean distributedJoins)
Specify if distributed joins are enabled for this query.
|
JdbcSqlFieldsQuery |
setEnforceJoinOrder(boolean enforceJoinOrder)
Sets flag to enforce join order of tables in the query.
|
JdbcSqlFieldsQuery |
setLocal(boolean loc)
Sets whether this query should be executed on local node only.
|
JdbcSqlFieldsQuery |
setPageSize(int pageSize)
Sets optional page size, if
0, then default is used. |
JdbcSqlFieldsQuery |
setSql(String sql)
Sets SQL clause.
|
JdbcSqlFieldsQuery |
setTimeout(int timeout,
TimeUnit timeUnit)
Sets the query execution timeout.
|
getArgs, getPartitions, getSchema, getSql, getTimeout, isCollocated, isDistributedJoins, isEnforceJoinOrder, isReplicatedOnly, setPartitions, setReplicatedOnly, setSchema, toStringgetPageSize, isLocal, preparepublic boolean isQuery()
public JdbcSqlFieldsQuery setSql(String sql)
setSql in class SqlFieldsQuerysql - SQL clause.this For chaining.public JdbcSqlFieldsQuery setArgs(Object... args)
setArgs in class SqlFieldsQueryargs - SQL arguments.this For chaining.public JdbcSqlFieldsQuery setTimeout(int timeout, TimeUnit timeUnit)
setTimeout in class SqlFieldsQuerytimeout - Timeout value. Zero value disables timeout.timeUnit - Time unit.this For chaining.public JdbcSqlFieldsQuery setCollocated(boolean collocated)
setCollocated in class SqlFieldsQuerycollocated - Flag value.this For chaining.public JdbcSqlFieldsQuery setEnforceJoinOrder(boolean enforceJoinOrder)
true
query optimizer will not reorder tables in join. By default is false.
It is not recommended to enable this property until you are sure that your indexes and the query itself are correct and tuned as much as possible but query optimizer still produces wrong join order.
setEnforceJoinOrder in class SqlFieldsQueryenforceJoinOrder - Flag value.this For chaining.public JdbcSqlFieldsQuery setDistributedJoins(boolean distributedJoins)
setDistributedJoins in class SqlFieldsQuerydistributedJoins - Distributed joins enabled.this For chaining.public JdbcSqlFieldsQuery setPageSize(int pageSize)
0, then default is used.setPageSize in class SqlFieldsQuerypageSize - Optional page size.this for chaining.public JdbcSqlFieldsQuery setLocal(boolean loc)
setLocal in class SqlFieldsQueryloc - Local flag.this for chaining.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.2.0 Release Date : September 15 2017