public class CacheVersionIO extends Object
GridCacheVersion
instances.Constructor and Description |
---|
CacheVersionIO() |
Modifier and Type | Method and Description |
---|---|
static GridCacheVersion |
read(ByteBuffer buf,
boolean allowNull)
Reads GridCacheVersion instance from the given buffer.
|
static GridCacheVersion |
read(long pageAddr,
boolean allowNull)
Reads GridCacheVersion instance from the given address.
|
static int |
readSize(ByteBuffer buf,
boolean allowNull)
Gets needed buffer size to read the whole version instance.
|
static int |
size(GridCacheVersion ver,
boolean allowNull) |
static void |
write(ByteBuffer buf,
GridCacheVersion ver,
boolean allowNull) |
static void |
write(long addr,
GridCacheVersion ver,
boolean allowNull) |
public static int size(GridCacheVersion ver, boolean allowNull)
ver
- Version.allowNull
- Is null
version allowed.public static void write(ByteBuffer buf, GridCacheVersion ver, boolean allowNull)
buf
- Byte buffer.ver
- Version to write.allowNull
- Is null
version allowed.public static void write(long addr, GridCacheVersion ver, boolean allowNull)
addr
- Write address.ver
- Version to write.allowNull
- Is null
version allowed.public static int readSize(ByteBuffer buf, boolean allowNull) throws IgniteCheckedException
buf
- Buffer.allowNull
- Is null
version allowed.IgniteCheckedException
- If failed.public static GridCacheVersion read(ByteBuffer buf, boolean allowNull) throws IgniteCheckedException
buf
- Byte buffer.allowNull
- Is null
version allowed.IgniteCheckedException
- If failed.public static GridCacheVersion read(long pageAddr, boolean allowNull) throws IgniteCheckedException
pageAddr
- Page address.allowNull
- Is null
version allowed.IgniteCheckedException
- If failed.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017