public class GridCacheQueryRequest extends GridCacheIdMessage implements GridCacheDeployable
cacheIdaddDepInfo, CACHE_MSG_INDEX_FIELD_NAME, forceAddDepInfo, MAX_CACHE_MSG_LOOKUP_INDEXDIRECT_TYPE_SIZE| Constructor and Description |
|---|
GridCacheQueryRequest()
Required by
Externalizable |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addDeploymentInfo()
Deployment enabled flag indicates whether deployment info has to be added to this message.
|
boolean |
allPages() |
Object[] |
arguments() |
String |
cacheName() |
boolean |
cancel() |
static GridCacheQueryRequest |
cancelRequest(GridCacheContext<?,?> cctx,
long reqId,
boolean fieldsQry)
Send cancel query request, so no new pages will be sent.
|
String |
className() |
String |
clause() |
short |
directType()
Gets message type.
|
boolean |
fields() |
byte |
fieldsCount()
Gets fields count.
|
void |
finishUnmarshal(GridCacheSharedContext ctx,
ClassLoader ldr)
This method is called after the message is deserialized and is responsible for
unmarshalling state marshalled in
GridCacheMessage.prepareMarshal(GridCacheSharedContext) method. |
long |
id() |
IndexQueryDesc |
idxQryDesc() |
boolean |
includeBackups() |
boolean |
includeMetaData() |
Boolean |
isDataPageScanEnabled() |
boolean |
keepBinary() |
IgniteBiPredicate<Object,Object> |
keyValueFilter() |
int |
limit() |
static GridCacheQueryRequest |
pageRequest(GridCacheContext<?,?> cctx,
long reqId,
GridCacheQueryAdapter<?> qry,
boolean fields)
Send request for fetching query result pages to specified nodes.
|
int |
pageSize() |
int |
partition() |
void |
prepareMarshal(GridCacheSharedContext ctx)
This method is called before the whole message is serialized
and is responsible for pre-marshalling state.
|
boolean |
readFrom(ByteBuffer buf,
MessageReader reader)
Reads this message from provided byte buffer.
|
IgniteReducer<Object,Object> |
reducer() |
static GridCacheQueryRequest |
startQueryRequest(GridCacheContext<?,?> cctx,
long reqId,
GridCacheDistributedQueryFuture<?,?,?> fut)
Send initial query request to specified nodes.
|
int |
taskHash() |
AffinityTopologyVersion |
topologyVersion()
Gets topology version or -1 in case of topology version is not required for this message.
|
String |
toString() |
IgniteClosure<?,?> |
transformer() |
GridCacheQueryType |
type() |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
cacheGroupMessage, cacheId, cacheId, handlerIdappendFlag, classError, deployInfo, error, finishUnmarshalCacheObjects, finishUnmarshalCacheObjects, ignoreClassErrors, lastAffinityChangedTopologyVersion, lastAffinityChangedTopologyVersion, lookupIndex, marshalCollection, marshalInfo, marshalInfos, marshalInvokeArguments, marshalTx, messageId, messageLogger, nextIndexId, onAckReceived, onClassError, partitionExchangeMessage, prepare, prepareMarshalCacheObject, prepareMarshalCacheObjects, prepareMarshalCacheObjects, prepareObject, prepareObject, transferExpiryPolicy, unmarshalCollection, unmarshalInfo, unmarshalInfos, unmarshalInvokeArguments, unmarshalTxclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdeployInfo, preparepublic GridCacheQueryRequest()
Externalizablepublic static GridCacheQueryRequest startQueryRequest(GridCacheContext<?,?> cctx, long reqId, GridCacheDistributedQueryFuture<?,?,?> fut)
reqId - Request (cache query) ID.fut - Cache query future, contains query info.public static GridCacheQueryRequest pageRequest(GridCacheContext<?,?> cctx, long reqId, GridCacheQueryAdapter<?> qry, boolean fields)
reqId - Request (cache query) ID.public static GridCacheQueryRequest cancelRequest(GridCacheContext<?,?> cctx, long reqId, boolean fieldsQry)
reqId - Query request ID.fieldsQry - Whether query is a fields query.public AffinityTopologyVersion topologyVersion()
topologyVersion in class GridCacheMessagepublic void prepareMarshal(GridCacheSharedContext ctx) throws IgniteCheckedException
prepareMarshal in class GridCacheMessagectx - Cache context.IgniteCheckedException - If failed.public void finishUnmarshal(GridCacheSharedContext ctx, ClassLoader ldr) throws IgniteCheckedException
GridCacheMessage.prepareMarshal(GridCacheSharedContext) method.finishUnmarshal in class GridCacheMessagectx - Context.ldr - Class loader.IgniteCheckedException - If failed.public boolean addDeploymentInfo()
addDeploymentInfo in class GridCacheMessagetrue or if deployment info must be added to the the message, false otherwise.public long id()
public String cacheName()
public GridCacheQueryType type()
public boolean fields()
true if query returns fields.public int limit()
public String clause()
public IndexQueryDesc idxQryDesc()
public String className()
public boolean includeBackups()
public boolean cancel()
public IgniteBiPredicate<Object,Object> keyValueFilter()
public IgniteReducer<Object,Object> reducer()
public IgniteClosure<?,?> transformer()
public int pageSize()
public Object[] arguments()
public boolean includeMetaData()
public boolean allPages()
public boolean keepBinary()
public int taskHash()
public Boolean isDataPageScanEnabled()
public int partition()
partition in class GridCacheMessagepublic boolean writeTo(ByteBuffer buf, MessageWriter writer)
writeTo in interface MessagewriteTo in class GridCacheIdMessagebuf - Byte buffer.writer - Writer.public boolean readFrom(ByteBuffer buf, MessageReader reader)
readFrom in interface MessagereadFrom in class GridCacheIdMessagebuf - Byte buffer.reader - Reader.public short directType()
directType in interface Messagepublic byte fieldsCount()
fieldsCount in interface MessagefieldsCount in class GridCacheIdMessagepublic String toString()
toString in class GridCacheIdMessage
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023