public class PlatformCache extends PlatformAbstractTarget
ERROR, FALSE, log, platformCtx, TRUE| Constructor and Description |
|---|
PlatformCache(PlatformContext platformCtx,
IgniteCache cache,
boolean keepBinary)
Constructor.
|
PlatformCache(PlatformContext platformCtx,
IgniteCache cache,
boolean keepBinary,
PlatformCacheExtension[] exts)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Exception |
convertException(Exception e)
Convert caught exception.
|
long |
processInLongOutLong(int type,
long val)
Process IN operation.
|
long |
processInStreamOutLong(int type,
BinaryRawReaderEx reader,
PlatformMemory mem)
Process IN operation.
|
PlatformTarget |
processInStreamOutObject(int type,
BinaryRawReaderEx reader)
Process IN-OUT operation.
|
PlatformTarget |
processOutObject(int type)
Process OUT operation.
|
void |
processOutStream(int type,
BinaryRawWriterEx writer)
Process OUT operation.
|
IgniteCache |
rawCache() |
static @Nullable Object[] |
readQueryArgs(BinaryRawReaderEx reader)
Read arguments for SQL query.
|
static void |
writeCacheMetrics(BinaryRawWriter writer,
CacheMetrics metrics)
Writes cache metrics.
|
static void |
writeQueryMetrics(BinaryRawWriter writer,
QueryMetrics metrics)
Writes query metrics.
|
long |
writeResult(PlatformMemory mem,
Object obj)
Writes the result to reused stream, if any.
|
long |
writeResult(PlatformMemory mem,
Object obj,
PlatformWriterClosure clo)
Writes the result to reused stream, if any.
|
platformContext, processInObjectStreamOutObjectStream, processInStreamAsync, processInStreamOutLong, processInStreamOutStream, readAndListenFuture, readAndListenFuture, readAndListenFuture, throwUnsupported, wrapListenablepublic static final int OP_CLEAR
public static final int OP_CLEAR_ALL
public static final int OP_CONTAINS_KEY
public static final int OP_CONTAINS_KEYS
public static final int OP_GET
public static final int OP_GET_ALL
public static final int OP_GET_AND_PUT
public static final int OP_GET_AND_PUT_IF_ABSENT
public static final int OP_GET_AND_REMOVE
public static final int OP_GET_AND_REPLACE
public static final int OP_GET_NAME
public static final int OP_INVOKE
public static final int OP_INVOKE_ALL
public static final int OP_IS_LOCAL_LOCKED
public static final int OP_LOAD_CACHE
public static final int OP_LOC_EVICT
public static final int OP_LOC_LOAD_CACHE
public static final int OP_LOCAL_CLEAR
public static final int OP_LOCAL_CLEAR_ALL
public static final int OP_LOCK
public static final int OP_LOCK_ALL
public static final int OP_LOCAL_METRICS
public static final int OP_PUT_IF_ABSENT
public static final int OP_QRY_CONTINUOUS
public static final int OP_QRY_SCAN
public static final int OP_QRY_SQL
public static final int OP_QRY_SQL_FIELDS
public static final int OP_QRY_TXT
public static final int OP_REMOVE_ALL
public static final int OP_REMOVE_BOOL
public static final int OP_REMOVE_OBJ
public static final int OP_REPLACE_2
public static final int OP_REPLACE_3
public static final int OP_GET_CONFIG
public static final int OP_LOAD_ALL
public static final int OP_CLEAR_CACHE
public static final int OP_WITH_PARTITION_RECOVER
public static final int OP_REMOVE_ALL2
public static final int OP_WITH_KEEP_BINARY
public static final int OP_WITH_EXPIRY_POLICY
public static final int OP_WITH_NO_RETRIES
public static final int OP_WITH_SKIP_STORE
public static final int OP_SIZE
public static final int OP_ITERATOR
public static final int OP_LOC_ITERATOR
public static final int OP_ENTER_LOCK
public static final int OP_EXIT_LOCK
public static final int OP_TRY_ENTER_LOCK
public static final int OP_CLOSE_LOCK
public static final int OP_REBALANCE
public static final int OP_SIZE_LOC
public static final int OP_PUT_ASYNC
public static final int OP_CLEAR_CACHE_ASYNC
public static final int OP_CLEAR_ALL_ASYNC
public static final int OP_REMOVE_ALL2_ASYNC
public static final int OP_SIZE_ASYNC
public static final int OP_CLEAR_ASYNC
public static final int OP_LOAD_CACHE_ASYNC
public static final int OP_LOC_LOAD_CACHE_ASYNC
public static final int OP_PUT_ALL_ASYNC
public static final int OP_REMOVE_ALL_ASYNC
public static final int OP_GET_ASYNC
public static final int OP_CONTAINS_KEY_ASYNC
public static final int OP_CONTAINS_KEYS_ASYNC
public static final int OP_REMOVE_BOOL_ASYNC
public static final int OP_REMOVE_OBJ_ASYNC
public static final int OP_GET_ALL_ASYNC
public static final int OP_GET_AND_PUT_ASYNC
public static final int OP_GET_AND_PUT_IF_ABSENT_ASYNC
public static final int OP_GET_AND_REMOVE_ASYNC
public static final int OP_GET_AND_REPLACE_ASYNC
public static final int OP_REPLACE_2_ASYNC
public static final int OP_REPLACE_3_ASYNC
public static final int OP_INVOKE_ASYNC
public static final int OP_INVOKE_ALL_ASYNC
public static final int OP_PUT_IF_ABSENT_ASYNC
public static final int OP_EXTENSION
public static final int OP_GLOBAL_METRICS
public static final int OP_GET_LOST_PARTITIONS
public static final int OP_QUERY_METRICS
public static final int OP_RESET_QUERY_METRICS
public static final int OP_PRELOAD_PARTITION
public static final int OP_PRELOAD_PARTITION_ASYNC
public static final int OP_LOCAL_PRELOAD_PARTITION
public static final int OP_SIZE_LONG
public static final int OP_SIZE_LONG_ASYNC
public static final int OP_SIZE_LONG_LOC
public static final int OP_ENABLE_STATISTICS
public static final int OP_CLEAR_STATISTICS
public PlatformCache(PlatformContext platformCtx, IgniteCache cache, boolean keepBinary)
platformCtx - Context.cache - Underlying cache.keepBinary - Keep binary flag.public PlatformCache(PlatformContext platformCtx, IgniteCache cache, boolean keepBinary, PlatformCacheExtension[] exts)
platformCtx - Context.cache - Underlying cache.keepBinary - Keep binary flag.exts - Extensions.public IgniteCache rawCache()
public long processInStreamOutLong(int type,
BinaryRawReaderEx reader,
PlatformMemory mem)
throws IgniteCheckedException
processInStreamOutLong in interface PlatformTargetprocessInStreamOutLong in class PlatformAbstractTargettype - Type.reader - Binary reader.IgniteCheckedException - In case of exception.public long writeResult(PlatformMemory mem, Object obj)
public long writeResult(PlatformMemory mem, Object obj, PlatformWriterClosure clo)
public PlatformTarget processInStreamOutObject(int type, BinaryRawReaderEx reader) throws IgniteCheckedException
processInStreamOutObject in interface PlatformTargetprocessInStreamOutObject in class PlatformAbstractTargettype - Type.reader - Binary reader.IgniteCheckedException - In case of exception.@Nullable public static @Nullable Object[] readQueryArgs(BinaryRawReaderEx reader)
reader - Reader.public void processOutStream(int type,
BinaryRawWriterEx writer)
throws IgniteCheckedException
processOutStream in interface PlatformTargetprocessOutStream in class PlatformAbstractTargettype - Type.writer - Binary writer.IgniteCheckedException - In case of exception.public PlatformTarget processOutObject(int type) throws IgniteCheckedException
processOutObject in interface PlatformTargetprocessOutObject in class PlatformAbstractTargettype - Type.IgniteCheckedException - In case of exception.public long processInLongOutLong(int type,
long val)
throws IgniteCheckedException
processInLongOutLong in interface PlatformTargetprocessInLongOutLong in class PlatformAbstractTargettype - Type.val - Value.IgniteCheckedException - In case of exception.public Exception convertException(Exception e)
convertException in interface PlatformTargetconvertException in class PlatformAbstractTargete - Exception to convert.public static void writeCacheMetrics(BinaryRawWriter writer, CacheMetrics metrics)
writer - Writer.metrics - Metrics.public static void writeQueryMetrics(BinaryRawWriter writer, QueryMetrics metrics)
writer - Writer.metrics - Metrics.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.9.0 Release Date : October 15 2020