public class DataEntry extends Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
cacheId
Cache ID.
|
static byte |
EMPTY_FLAGS
Empty flags.
|
protected long |
expireTime
Expire time.
|
protected byte |
flags
Bit flags.
|
static byte |
FROM_STORE_FLAG |
protected KeyCacheObject |
key
Cache object key.
|
protected GridCacheVersion |
nearXidVer
Near transaction version.
|
protected GridCacheOperation |
op
Entry operation performed.
|
protected long |
partCnt |
protected int |
partId
Partition ID.
|
static byte |
PRELOAD_FLAG |
static byte |
PRIMARY_FLAG |
protected @Nullable CacheObject |
val
Cache object value.
|
protected GridCacheVersion |
writeVer
Write version.
|
| Constructor and Description |
|---|
DataEntry(int cacheId,
KeyCacheObject key,
@Nullable CacheObject val,
GridCacheOperation op,
GridCacheVersion nearXidVer,
GridCacheVersion writeVer,
long expireTime,
int partId,
long partCnt,
byte flags) |
| Modifier and Type | Method and Description |
|---|---|
int |
cacheId() |
long |
expireTime() |
byte |
flags()
Entry flags.
|
static byte |
flags(boolean primary) |
static byte |
flags(boolean primary,
boolean preload,
boolean fromStore) |
KeyCacheObject |
key() |
GridCacheVersion |
nearXidVersion() |
GridCacheOperation |
op() |
long |
partitionCounter() |
DataEntry |
partitionCounter(long partCnt)
Sets partition update counter to entry.
|
int |
partitionId() |
String |
toString() |
CacheObject |
value() |
GridCacheVersion |
writeVersion() |
public static final byte EMPTY_FLAGS
public static final byte PRIMARY_FLAG
public static final byte PRELOAD_FLAG
public static final byte FROM_STORE_FLAG
@GridToStringInclude protected int cacheId
protected KeyCacheObject key
@Nullable protected @Nullable CacheObject val
GridCacheOperation.DELETE@GridToStringInclude protected GridCacheOperation op
@GridToStringInclude protected GridCacheVersion nearXidVer
@GridToStringInclude protected GridCacheVersion writeVer
protected long expireTime
@GridToStringInclude protected int partId
@GridToStringInclude protected long partCnt
@GridToStringInclude protected byte flags
public DataEntry(int cacheId,
KeyCacheObject key,
@Nullable
@Nullable CacheObject val,
GridCacheOperation op,
GridCacheVersion nearXidVer,
GridCacheVersion writeVer,
long expireTime,
int partId,
long partCnt,
byte flags)
cacheId - Cache ID.key - Key.val - Value or null for delete operation.op - Operation.nearXidVer - Near transaction version.writeVer - Write version.expireTime - Expire time.partId - Partition ID.partCnt - Partition counter.flags - Entry flags.public static byte flags(boolean primary)
primary - True if node is primary for partition in the moment of logging.public static byte flags(boolean primary,
boolean preload,
boolean fromStore)
primary - True if node is primary for partition in the moment of logging.preload - True if logged during preload(rebalance).fromStore - True if logged during loading from third-party store.public int cacheId()
public KeyCacheObject key()
public CacheObject value()
public GridCacheOperation op()
public GridCacheVersion nearXidVersion()
public GridCacheVersion writeVersion()
public int partitionId()
public long partitionCounter()
public DataEntry partitionCounter(long partCnt)
partCnt - Partition update counter.this for chaining.public long expireTime()
public byte flags()
flags
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023