public final class SqlQuery<K,V> extends Query<javax.cache.Cache.Entry<K,V>>
IgniteCache.query(Query)
,
Serialized FormDFLT_PAGE_SIZE
Constructor and Description |
---|
SqlQuery(Class<?> type,
String sql)
Constructs query for the given type and SQL query.
|
SqlQuery(String type,
String sql)
Constructs query for the given type name and SQL query.
|
Modifier and Type | Method and Description |
---|---|
Object[] |
getArgs()
Gets SQL arguments.
|
String |
getSql()
Gets SQL clause.
|
String |
getType()
Gets type for query.
|
SqlQuery<K,V> |
setArgs(Object... args)
Sets SQL arguments.
|
SqlQuery<K,V> |
setLocal(boolean loc)
Sets whether this query should be executed on local node only.
|
SqlQuery<K,V> |
setPageSize(int pageSize)
Sets optional page size, if
0 , then default is used. |
SqlQuery<K,V> |
setSql(String sql)
Sets SQL clause.
|
SqlQuery |
setType(Class<?> type) |
SqlQuery<K,V> |
setType(String type)
Sets type for query.
|
String |
toString() |
getPageSize, isLocal
public SqlQuery(String type, String sql)
type
- Type.sql
- SQL Query.public String getSql()
public SqlQuery<K,V> setSql(String sql)
sql
- SQL clause.this
For chaining.public Object[] getArgs()
public SqlQuery<K,V> setArgs(Object... args)
args
- SQL arguments.this
For chaining.public String getType()
public SqlQuery<K,V> setType(String type)
type
- Type.this
For chaining.public SqlQuery<K,V> setPageSize(int pageSize)
0
, then default is used.setPageSize
in class Query<javax.cache.Cache.Entry<K,V>>
pageSize
- Optional page size.this
for chaining.public SqlQuery<K,V> setLocal(boolean loc)
Follow @ApacheIgnite
Apache Ignite Fabric : ver. 1.0.0 Release Date : March 31 2015