public class GridQueryRequest extends Object implements Message
| Constructor and Description |
|---|
GridQueryRequest()
Default constructor.
|
GridQueryRequest(GridQueryRequest cp) |
GridQueryRequest(long reqId,
int pageSize,
String space,
Collection<GridCacheSqlQuery> qrys,
AffinityTopologyVersion topVer,
List<String> extraSpaces,
int[] parts) |
| Modifier and Type | Method and Description |
|---|---|
byte |
directType()
Gets message type.
|
List<String> |
extraSpaces() |
byte |
fieldsCount()
Gets fields count.
|
int |
pageSize() |
int[] |
partitions() |
void |
partitions(int[] parts) |
Collection<GridCacheSqlQuery> |
queries() |
boolean |
readFrom(ByteBuffer buf,
MessageReader reader)
Reads this message from provided byte buffer.
|
long |
requestId() |
String |
space() |
AffinityTopologyVersion |
topologyVersion() |
String |
toString() |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
public GridQueryRequest()
public GridQueryRequest(long reqId,
int pageSize,
String space,
Collection<GridCacheSqlQuery> qrys,
AffinityTopologyVersion topVer,
List<String> extraSpaces,
int[] parts)
reqId - Request ID.pageSize - Page size.space - Space.qrys - Queries.topVer - Topology version.extraSpaces - All space names participating in query other than space.parts - Optional partitions for unstable topology.public GridQueryRequest(GridQueryRequest cp)
cp - Copy from.public int[] partitions()
space() and extraSpaces().public void partitions(int[] parts)
parts - All the needed partitions for space() and extraSpaces().public List<String> extraSpaces()
space().public AffinityTopologyVersion topologyVersion()
public long requestId()
public int pageSize()
public String space()
public Collection<GridCacheSqlQuery> queries() throws IgniteCheckedException
IgniteCheckedExceptionpublic boolean writeTo(ByteBuffer buf, MessageWriter writer)
public boolean readFrom(ByteBuffer buf, MessageReader reader)
public byte directType()
directType in interface Messagepublic byte fieldsCount()
fieldsCount in interface Message
Follow @ApacheIgnite
Ignite Fabric : ver. 1.4.0 Release Date : September 24 2015