public class GridCacheQueryRequest extends GridCacheMessage implements GridCacheDeployable
CACHE_MSG_INDEX_FIELD_NAME, cacheId, MAX_CACHE_MSG_LOOKUP_INDEX| Constructor and Description |
|---|
GridCacheQueryRequest()
Required by
Externalizable |
GridCacheQueryRequest(int cacheId,
long id,
boolean fields) |
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<Object,Object> trans,
int pageSize,
boolean incBackups,
Object[] args,
boolean incMeta,
boolean keepPortable,
UUID subjId,
int taskHash) |
GridCacheQueryRequest(int cacheId,
long id,
String cacheName,
int pageSize,
boolean incBackups,
boolean fields,
boolean all,
boolean keepPortable,
UUID subjId,
int taskHash)
Request to load page.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
allPages() |
Object[] |
arguments() |
String |
cacheName() |
boolean |
cancel() |
String |
className() |
String |
clause() |
byte |
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 |
keepPortable() |
IgniteBiPredicate<Object,Object> |
keyValueFilter() |
int |
pageSize() |
Integer |
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() |
String |
toString() |
IgniteClosure<Object,Object> |
transformer() |
GridCacheQueryType |
type() |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
allowForStartup, cacheId, cacheId, classError, deployInfo, finishUnmarshalCacheObjects, finishUnmarshalCacheObjects, ignoreClassErrors, lookupIndex, marshalCollection, marshalInfo, marshalInfos, marshalInvokeArguments, marshalTx, messageId, nextIndexId, onClassError, partitionExchangeMessage, prepare, prepareMarshalCacheObjects, prepareMarshalCacheObjects, prepareObject, topologyVersion, 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)
id - Request to cancel.fields - Fields query flag.public GridCacheQueryRequest(int cacheId,
long id,
String cacheName,
int pageSize,
boolean incBackups,
boolean fields,
boolean all,
boolean keepPortable,
UUID subjId,
int taskHash)
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.keepPortable - Whether to keep portables.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<Object,Object> trans,
int pageSize,
boolean incBackups,
Object[] args,
boolean incMeta,
boolean keepPortable,
UUID subjId,
int taskHash)
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.public void prepareMarshal(GridCacheSharedContext ctx) throws IgniteCheckedException
prepareMarshal in class GridCacheMessagectx - 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 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<Object,Object> transformer()
public int pageSize()
public Object[] arguments()
public boolean includeMetaData()
public boolean allPages()
public boolean keepPortable()
public UUID subjectId()
public int taskHash()
public 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 byte directType()
directType in interface Messagepublic byte fieldsCount()
fieldsCount in interface Messagepublic String toString()
toString in class GridCacheMessage
Follow @ApacheIgnite
Ignite Fabric : ver. 1.2.0-incubating Release Date : June 16 2015