public class GridCacheQueryRequest<K,V> extends GridCacheMessage<K,V> implements GridCacheDeployable
MessageAdapter.TypeCACHE_MSG_INDEX_FIELD_NAME, cacheId, MAX_CACHE_MSG_LOOKUP_INDEXreader, readState| 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,
IgnitePredicate<javax.cache.Cache.Entry<Object,Object>> prjFilter,
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() |
void |
finishUnmarshal(GridCacheSharedContext<K,V> 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() |
void |
prepareMarshal(GridCacheSharedContext<K,V> ctx)
This method is called before the whole message is serialized
and is responsible for pre-marshalling state.
|
IgnitePredicate<javax.cache.Cache.Entry<Object,Object>> |
projectionFilter() |
boolean |
readFrom(ByteBuffer buf)
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, ignoreClassErrors, lookupIndex, marshalBooleanLinkedMap, marshalCollection, marshalFilter, marshalInfo, marshalInfos, marshalInvokeArguments, marshalTx, marshalValuesCollection, messageId, nextIndexId, onClassError, prepare, prepareFilter, prepareObject, prepareObjects, topologyVersion, transactional, transferExpiryPolicy, unmarshalBooleanLinkedMap, unmarshalCollection, unmarshalFilter, unmarshalInfo, unmarshalInfos, unmarshalInvokeArguments, unmarshalTx, unmarshalValueBytesCollectionsetReader, skipRecoveryclone, 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,
IgnitePredicate<javax.cache.Cache.Entry<Object,Object>> prjFilter,
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.prjFilter - Projection filter.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<K,V> ctx) throws IgniteCheckedException
prepareMarshal in class GridCacheMessage<K,V>ctx - IgniteCheckedException - If failed.public void finishUnmarshal(GridCacheSharedContext<K,V> ctx, ClassLoader ldr) throws IgniteCheckedException
GridCacheMessage.prepareMarshal(GridCacheSharedContext) method.finishUnmarshal in class GridCacheMessage<K,V>ctx - 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 IgnitePredicate<javax.cache.Cache.Entry<Object,Object>> projectionFilter()
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 class GridCacheMessage<K,V>buf - Byte buffer.writer - Writer.public boolean readFrom(ByteBuffer buf)
readFrom in class GridCacheMessage<K,V>buf - Byte buffer.public byte directType()
directType in class MessageAdapterpublic String toString()
toString in class GridCacheMessage<K,V>
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC1 Release Date : February 17 2015