Class BlockfileFooterTokens
java.lang.Object
io.datarouter.bytes.blockfile.block.tokens.BlockfileBaseTokens
io.datarouter.bytes.blockfile.block.tokens.BlockfileFooterTokens
[prefix] - fixed length
[footerValue] - variable length
[footerLength] - fixed length (considered part of the block)
-
Field Summary
Fields inherited from class io.datarouter.bytes.blockfile.block.tokens.BlockfileBaseTokens
NUM_LENGTH_BYTES, NUM_PREFIX_BYTES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BlockfileLocationblockLocation(long fileLength, int footerBlockLength) static intdecodeFooterBlockLengthFromEndOfFileBytes(byte[] endOfFileBytes) static byte[]decodeFooterValueBytesFromEndOfFileBytes(byte[] endOfFileBytes) static BlockfileLocationlengthLocation(long fileLength) intList<byte[]> toList()static BlockfileLocationvalueLocation(long fileLength, int footerBlockLength) static BlockfileLocationvalueLocation(BlockfileLocation blockLocation) Methods inherited from class io.datarouter.bytes.blockfile.block.tokens.BlockfileBaseTokens
blockType, concat, decodeLength, encodeBlockType, encodeLength, length, prefixBytes, scan, totalLength
-
Constructor Details
-
BlockfileFooterTokens
public BlockfileFooterTokens(int length, byte[] value)
-
-
Method Details
-
suffixLength
public int suffixLength()- Specified by:
suffixLengthin classBlockfileBaseTokens
-
toList
- Specified by:
toListin classBlockfileBaseTokens
-
lengthLocation
-
blockLocation
-
valueLocation
-
valueLocation
-