public class GridCacheQueryRequest extends GridCacheMessage implements GridCacheDeployable
addDepInfo, CACHE_MSG_INDEX_FIELD_NAME, cacheId, forceAddDepInfo, MAX_CACHE_MSG_LOOKUP_INDEXDIRECT_TYPE_SIZE| Constructor and Description |
|---|
GridCacheQueryRequest()
Required by
Externalizable |
GridCacheQueryRequest(int cacheId,
long id,
boolean fields,
AffinityTopologyVersion topVer,
boolean addDepInfo)
Creates cancel query request.
|
GridCacheQueryRequest(int cacheId,
long id,
String cacheName,
GridCacheQueryType type,
boolean fields,
String clause,
String clsName,
IgniteBiPredicate<Object,Object> keyValFilter,
Integer part,
IgniteReducer<Object,Object> rdc,
IgniteClosure<?,?> trans,
int pageSize,
boolean incBackups,
Object[] args,
boolean incMeta,
boolean keepBinary,
UUID subjId,
int taskHash,
AffinityTopologyVersion topVer,
boolean addDepInfo) |
GridCacheQueryRequest(int cacheId,
long id,
String cacheName,
int pageSize,
boolean incBackups,
boolean fields,
boolean all,
boolean keepBinary,
UUID subjId,
int taskHash,
AffinityTopologyVersion topVer,
boolean addDepInfo)
Request to load page.
|
| 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() |
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() |
boolean |
includeBackups() |
boolean |
includeMetaData() |
boolean |
keepBinary() |
IgniteBiPredicate<Object,Object> |
keyValueFilter() |
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() |
UUID |
subjectId() |
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.
|
appendFlag, cacheId, cacheId, classError, deployInfo, error, finishUnmarshalCacheObjects, finishUnmarshalCacheObjects, ignoreClassErrors, lookupIndex, marshalCollection, marshalInfo, marshalInfos, marshalInvokeArguments, marshalTx, messageId, messageLogger, nextIndexId, onAckReceived, onClassError, partitionExchangeMessage, prepare, prepareMarshalCacheObject, prepareMarshalCacheObjects, prepareMarshalCacheObjects, prepareObject, transferExpiryPolicy, unmarshalCollection, unmarshalInfo, unmarshalInfos, unmarshalInvokeArguments, unmarshalTxclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdeployInfo, preparepublic GridCacheQueryRequest()
Externalizablepublic GridCacheQueryRequest(int cacheId,
long id,
boolean fields,
AffinityTopologyVersion topVer,
boolean addDepInfo)
cacheId - Cache ID.id - Request to cancel.fields - Fields query flag.topVer - Topology version.addDepInfo - Deployment info flag.public GridCacheQueryRequest(int cacheId,
long id,
String cacheName,
int pageSize,
boolean incBackups,
boolean fields,
boolean all,
boolean keepBinary,
UUID subjId,
int taskHash,
AffinityTopologyVersion topVer,
boolean addDepInfo)
cacheId - Cache ID.id - Request ID.cacheName - Cache name.pageSize - Page size.incBackups - true if need to include backups.fields - Fields query flag.all - Whether to load all pages.keepBinary - Whether to keep binary.subjId - Subject ID.taskHash - Task name hash code.topVer - Topology version.addDepInfo - Deployment info flag.public GridCacheQueryRequest(int cacheId,
long id,
String cacheName,
GridCacheQueryType type,
boolean fields,
String clause,
String clsName,
IgniteBiPredicate<Object,Object> keyValFilter,
@Nullable
Integer part,
IgniteReducer<Object,Object> rdc,
IgniteClosure<?,?> trans,
int pageSize,
boolean incBackups,
Object[] args,
boolean incMeta,
boolean keepBinary,
UUID subjId,
int taskHash,
AffinityTopologyVersion topVer,
boolean addDepInfo)
cacheId - Cache ID.id - Request id.cacheName - Cache name.type - Query type.fields - true if query returns fields.clause - Query clause.clsName - Query class name.keyValFilter - Key-value filter.part - Partition.rdc - Reducer.trans - Transformer.pageSize - Page size.incBackups - true if need to include backups.args - Query arguments.incMeta - Include meta data or not.keepBinary - Keep binary flag.subjId - Subject ID.taskHash - Task name hash code.topVer - Topology version.addDepInfo - Deployment info flag.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 String clause()
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 UUID subjectId()
public int taskHash()
public int partition()
partition in class GridCacheMessagepublic boolean writeTo(ByteBuffer buf, MessageWriter writer)
writeTo in interface MessagewriteTo in class GridCacheMessagebuf - Byte buffer.writer - Writer.public boolean readFrom(ByteBuffer buf, MessageReader reader)
readFrom in interface MessagereadFrom in class GridCacheMessagebuf - Byte buffer.reader - Reader.public short directType()
directType in interface Messagepublic byte fieldsCount()
fieldsCount in interface Messagepublic String toString()
toString in class GridCacheMessage
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017