public class EntryRecord extends Object
Constructor and Description |
---|
EntryRecord(EntryHeader header,
byte[] key,
byte[] metadata,
byte[] value) |
Modifier and Type | Method and Description |
---|---|
EntryHeader |
getHeader() |
byte[] |
getKey() |
byte[] |
getMetadata() |
byte[] |
getValue() |
EntryRecord |
loadMetadataAndValue(FileProvider.Handle handle,
int offset) |
static EntryHeader |
readEntryHeader(FileProvider.Handle handle,
long offset) |
static byte[] |
readKey(FileProvider.Handle handle,
EntryHeader header,
long offset) |
static byte[] |
readMetadata(FileProvider.Handle handle,
EntryHeader header,
long offset) |
static byte[] |
readValue(FileProvider.Handle handle,
EntryHeader header,
long offset) |
static void |
writeEntry(FileChannel fileChannel,
byte[] serializedKey,
byte[] serializedMetadata,
byte[] serializedValue,
long seqId,
long expiration) |
static void |
writeEntry(FileChannel fileChannel,
ByteBuffer serializedKey,
ByteBuffer serializedMetadata,
ByteBuffer serializedValue,
long seqId,
long expiration) |
public EntryRecord(EntryHeader header, byte[] key, byte[] metadata, byte[] value)
public EntryHeader getHeader()
public byte[] getKey()
public byte[] getMetadata()
public byte[] getValue()
public EntryRecord loadMetadataAndValue(FileProvider.Handle handle, int offset) throws IOException
IOException
public static EntryHeader readEntryHeader(FileProvider.Handle handle, long offset) throws IOException
IOException
public static byte[] readKey(FileProvider.Handle handle, EntryHeader header, long offset) throws IOException
IOException
public static byte[] readMetadata(FileProvider.Handle handle, EntryHeader header, long offset) throws IOException
IOException
public static byte[] readValue(FileProvider.Handle handle, EntryHeader header, long offset) throws IOException
IOException
public static void writeEntry(FileChannel fileChannel, byte[] serializedKey, byte[] serializedMetadata, byte[] serializedValue, long seqId, long expiration) throws IOException
IOException
public static void writeEntry(FileChannel fileChannel, ByteBuffer serializedKey, ByteBuffer serializedMetadata, ByteBuffer serializedValue, long seqId, long expiration) throws IOException
IOException
Copyright © 2020 JBoss, a division of Red Hat. All rights reserved.