public class GridCacheSqlQuery extends Object implements Message
| Modifier and Type | Field and Description |
|---|---|
static Object[] |
EMPTY_PARAMS |
DIRECT_TYPE_SIZE| Constructor and Description |
|---|
GridCacheSqlQuery()
For
Message. |
GridCacheSqlQuery(String qry) |
| Modifier and Type | Method and Description |
|---|---|
LinkedHashMap<String,?> |
columns() |
GridCacheSqlQuery |
columns(LinkedHashMap<String,?> columns) |
GridCacheSqlQuery |
copy() |
Object |
derivedPartitions() |
void |
derivedPartitions(Object derivedPartitions) |
short |
directType()
Gets message type.
|
byte |
fieldsCount()
Gets fields count.
|
boolean |
hasSubQueries() |
GridCacheSqlQuery |
hasSubQueries(boolean hasSubQries) |
boolean |
isPartitioned() |
UUID |
node() |
GridCacheSqlQuery |
node(UUID node) |
void |
onAckReceived()
Method called when ack message received.
|
int[] |
parameterIndexes() |
GridCacheSqlQuery |
parameterIndexes(int[] paramIdxs) |
Object[] |
parameters(Object[] allParams) |
void |
partitioned(boolean partitioned) |
String |
query() |
GridCacheSqlQuery |
query(String qry) |
boolean |
readFrom(ByteBuffer buf,
MessageReader reader)
Reads this message from provided byte buffer.
|
List<?> |
sortColumns() |
void |
sortColumns(List<?> sort) |
String |
toString() |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
public static final Object[] EMPTY_PARAMS
public GridCacheSqlQuery()
Message.public GridCacheSqlQuery(String qry)
qry - Query.public LinkedHashMap<String,?> columns()
public GridCacheSqlQuery columns(LinkedHashMap<String,?> columns)
columns - Columns.this.public String query()
public GridCacheSqlQuery query(String qry)
qry - Query.this.public int[] parameterIndexes()
public GridCacheSqlQuery parameterIndexes(int[] paramIdxs)
paramIdxs - Parameter indexes.this.public void onAckReceived()
onAckReceived in interface Messagepublic boolean writeTo(ByteBuffer buf, MessageWriter writer)
public boolean readFrom(ByteBuffer buf, MessageReader reader)
public short directType()
directType in interface Messagepublic byte fieldsCount()
fieldsCount in interface Messagepublic GridCacheSqlQuery copy()
public void sortColumns(List<?> sort)
sort - Sort columns.public List<?> sortColumns()
public void partitioned(boolean partitioned)
partitioned - If the query contains partitioned tables.public boolean isPartitioned()
true If the query contains partitioned tables.public UUID node()
null if need to execute on all the nodes.public GridCacheSqlQuery node(UUID node)
node - Single node to execute the query on or null if need to execute on all the nodes.this.public Object[] parameters(Object[] allParams)
allParams - All parameters.public Object derivedPartitions()
public void derivedPartitions(Object derivedPartitions)
derivedPartitions - Derived partitions.public boolean hasSubQueries()
true if query contains sub-queries.public GridCacheSqlQuery hasSubQueries(boolean hasSubQries)
hasSubQries - Flag indicating that query contains sub-queries.this.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.8.0 Release Date : February 27 2020