class SSTSerializer extends Object
Modifier and Type | Field and Description |
---|---|
(package private) int[] |
bucketAbsoluteOffsets
Offsets from the beginning of the SST record (even across continuations)
|
(package private) int[] |
bucketRelativeOffsets
Offsets relative the start of the current SST or continue record
|
private SSTRecordHeader |
sstRecordHeader |
(package private) int |
startOfRecord |
(package private) int |
startOfSST |
private IntMapper |
strings |
Constructor and Description |
---|
SSTSerializer(IntMapper strings,
int numStrings,
int numUniqueStrings) |
Modifier and Type | Method and Description |
---|---|
int[] |
getBucketAbsoluteOffsets() |
int[] |
getBucketRelativeOffsets() |
private UnicodeString |
getUnicodeString(int index) |
private static UnicodeString |
getUnicodeString(IntMapper strings,
int index) |
int |
serialize(int offset,
byte[] data)
Create a byte array consisting of an SST record and any
required Continue records, ready to be written out.
|
private IntMapper strings
private SSTRecordHeader sstRecordHeader
int[] bucketAbsoluteOffsets
int[] bucketRelativeOffsets
int startOfSST
int startOfRecord
public SSTSerializer(IntMapper strings, int numStrings, int numUniqueStrings)
public int serialize(int offset, byte[] data)
If an SST record and any subsequent Continue records are read in to create this instance, this method should produce a byte array that is identical to the byte array produced by concatenating the input records' data.
private UnicodeString getUnicodeString(int index)
private static UnicodeString getUnicodeString(IntMapper strings, int index)
public int[] getBucketAbsoluteOffsets()
public int[] getBucketRelativeOffsets()
Copyright © 2016 Open Microscopy Environment