Class RootBlockV1
java.lang.Object
io.datarouter.filesystem.snapshot.block.root.RootBlockV1
public class RootBlockV1 extends Object implements RootBlock
-
Field Summary
-
Constructor Summary
Constructors Constructor Description RootBlockV1(byte[] bytes) -
Method Summary
Modifier and Type Method Description StringbranchBlockCompressor()intbranchBlocksPerFile()StringbranchBlockType()intbranchBytesPerFile()byte[]dictionaryKey(int index)byte[]dictionaryValue(int index)intheapSize()StringleafBlockCompressor()intleafBlocksPerFile()StringleafBlockType()intleafBytesPerFile()intnumBranchBlocks()intnumBranchBlocks(int level)longnumBranchBytesCompressed()longnumBranchBytesEncoded()intnumBranchLevels()intnumColumns()intnumDictionaryEntries()longnumItems()intnumLeafBlocks()longnumLeafBytesCompressed()longnumLeafBytesEncoded()longnumRootBytesEncoded()intnumValueBlocks()intnumValueBlocks(int column)longnumValueBytesCompressed()longnumValueBytesEncoded()StringpathFormat()introotBranchBlockEnding()booleansorted()StringvalueBlockCompressor()intvalueBlocksPerFile()StringvalueBlockType()intvalueBytesPerFile()longwriteDurationMs()longwriteStartTimeMs()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.datarouter.filesystem.snapshot.block.root.RootBlock
branchFileId, leafFileId, maxBranchLevel, rootBranchBlockKey, toKeyValueStrings, totalBytesCompressed, totalBytesEncoded, valueFileId, writeDuration, writeStartAgo
-
Field Details
-
FORMAT
- See Also:
- Constant Field Values
-
-
Constructor Details
-
RootBlockV1
public RootBlockV1(byte[] bytes)
-
-
Method Details
-
heapSize
public int heapSize() -
sorted
public boolean sorted() -
pathFormat
- Specified by:
pathFormatin interfaceRootBlock
-
branchBlockType
- Specified by:
branchBlockTypein interfaceRootBlock
-
leafBlockType
- Specified by:
leafBlockTypein interfaceRootBlock
-
valueBlockType
- Specified by:
valueBlockTypein interfaceRootBlock
-
branchBlockCompressor
- Specified by:
branchBlockCompressorin interfaceRootBlock
-
leafBlockCompressor
- Specified by:
leafBlockCompressorin interfaceRootBlock
-
valueBlockCompressor
- Specified by:
valueBlockCompressorin interfaceRootBlock
-
branchBytesPerFile
public int branchBytesPerFile()- Specified by:
branchBytesPerFilein interfaceRootBlock
-
leafBytesPerFile
public int leafBytesPerFile()- Specified by:
leafBytesPerFilein interfaceRootBlock
-
valueBytesPerFile
public int valueBytesPerFile()- Specified by:
valueBytesPerFilein interfaceRootBlock
-
branchBlocksPerFile
public int branchBlocksPerFile()- Specified by:
branchBlocksPerFilein interfaceRootBlock
-
leafBlocksPerFile
public int leafBlocksPerFile()- Specified by:
leafBlocksPerFilein interfaceRootBlock
-
valueBlocksPerFile
public int valueBlocksPerFile()- Specified by:
valueBlocksPerFilein interfaceRootBlock
-
numItems
public long numItems() -
numBranchLevels
public int numBranchLevels()- Specified by:
numBranchLevelsin interfaceRootBlock
-
numBranchBlocks
public int numBranchBlocks()- Specified by:
numBranchBlocksin interfaceRootBlock
-
numBranchBlocks
public int numBranchBlocks(int level)- Specified by:
numBranchBlocksin interfaceRootBlock
-
numLeafBlocks
public int numLeafBlocks()- Specified by:
numLeafBlocksin interfaceRootBlock
-
numColumns
public int numColumns()- Specified by:
numColumnsin interfaceRootBlock
-
numValueBlocks
public int numValueBlocks(int column)- Specified by:
numValueBlocksin interfaceRootBlock
-
numValueBlocks
public int numValueBlocks()- Specified by:
numValueBlocksin interfaceRootBlock
-
numRootBytesEncoded
public long numRootBytesEncoded()- Specified by:
numRootBytesEncodedin interfaceRootBlock
-
numBranchBytesEncoded
public long numBranchBytesEncoded()- Specified by:
numBranchBytesEncodedin interfaceRootBlock
-
numLeafBytesEncoded
public long numLeafBytesEncoded()- Specified by:
numLeafBytesEncodedin interfaceRootBlock
-
numValueBytesEncoded
public long numValueBytesEncoded()- Specified by:
numValueBytesEncodedin interfaceRootBlock
-
numBranchBytesCompressed
public long numBranchBytesCompressed()- Specified by:
numBranchBytesCompressedin interfaceRootBlock
-
numLeafBytesCompressed
public long numLeafBytesCompressed()- Specified by:
numLeafBytesCompressedin interfaceRootBlock
-
numValueBytesCompressed
public long numValueBytesCompressed()- Specified by:
numValueBytesCompressedin interfaceRootBlock
-
writeStartTimeMs
public long writeStartTimeMs()- Specified by:
writeStartTimeMsin interfaceRootBlock
-
writeDurationMs
public long writeDurationMs()- Specified by:
writeDurationMsin interfaceRootBlock
-
rootBranchBlockEnding
public int rootBranchBlockEnding()- Specified by:
rootBranchBlockEndingin interfaceRootBlock
-
numDictionaryEntries
public int numDictionaryEntries()- Specified by:
numDictionaryEntriesin interfaceRootBlock
-
dictionaryKey
public byte[] dictionaryKey(int index)- Specified by:
dictionaryKeyin interfaceRootBlock
-
dictionaryValue
public byte[] dictionaryValue(int index)- Specified by:
dictionaryValuein interfaceRootBlock
-