@InterfaceAudience.Private public class PrefixTreeBlockMeta extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
allSameType |
protected byte |
allTypes |
protected int |
arrayOffset
transient fields
|
protected int |
bufferOffset |
protected int |
familyOffsetWidth |
protected boolean |
includesMvccVersion |
static int |
MAX_BYTES |
static int |
MAX_FAMILY_LENGTH |
protected int |
maxQualifierLength |
protected int |
maxRowLength |
protected int |
maxTagsLength |
protected long |
minMvccVersion |
protected long |
minTimestamp |
protected int |
mvccVersionDeltaWidth |
protected int |
mvccVersionIndexWidth |
protected int |
nextNodeOffsetWidth |
static int |
NUM_INTS |
static int |
NUM_LONGS |
static int |
NUM_SHORTS |
static int |
NUM_SINGLE_BYTES |
protected int |
numFamilyBytes |
protected int |
numKeyValueBytes |
protected int |
numMetaBytes |
protected int |
numMvccVersionBytes |
protected int |
numQualifierBytes |
protected int |
numRowBytes |
protected int |
numTagsBytes |
protected int |
numTimestampBytes |
protected int |
numUniqueFamilies |
protected int |
numUniqueQualifiers |
protected int |
numUniqueRows |
protected int |
numUniqueTags |
protected int |
numValueBytes |
protected int |
qualifierOffsetWidth |
protected int |
rowTreeDepth |
protected int |
tagsOffsetWidth |
protected int |
timestampDeltaWidth |
protected int |
timestampIndexWidth |
protected int |
valueLengthWidth |
protected int |
valueOffsetWidth |
protected int |
version
persisted fields
|
static int |
VERSION
static fields
|
Constructor and Description |
---|
PrefixTreeBlockMeta()
constructors
|
PrefixTreeBlockMeta(ByteBuffer buffer) |
PrefixTreeBlockMeta(InputStream is) |
public static final int VERSION
public static final int MAX_FAMILY_LENGTH
public static final int NUM_LONGS
public static final int NUM_INTS
public static final int NUM_SHORTS
public static final int NUM_SINGLE_BYTES
public static final int MAX_BYTES
protected int arrayOffset
protected int bufferOffset
protected int version
protected int numMetaBytes
protected int numKeyValueBytes
protected boolean includesMvccVersion
protected int numRowBytes
protected int numFamilyBytes
protected int numQualifierBytes
protected int numTimestampBytes
protected int numMvccVersionBytes
protected int numValueBytes
protected int numTagsBytes
protected int nextNodeOffsetWidth
protected int familyOffsetWidth
protected int qualifierOffsetWidth
protected int timestampIndexWidth
protected int mvccVersionIndexWidth
protected int valueOffsetWidth
protected int valueLengthWidth
protected int tagsOffsetWidth
protected int rowTreeDepth
protected int maxRowLength
protected int maxQualifierLength
protected int maxTagsLength
protected long minTimestamp
protected int timestampDeltaWidth
protected long minMvccVersion
protected int mvccVersionDeltaWidth
protected boolean allSameType
protected byte allTypes
protected int numUniqueRows
protected int numUniqueFamilies
protected int numUniqueQualifiers
protected int numUniqueTags
public PrefixTreeBlockMeta()
public PrefixTreeBlockMeta(InputStream is) throws IOException
IOException
public PrefixTreeBlockMeta(ByteBuffer buffer)
buffer
- positioned at start of PtBlockMetapublic void initOnBlock(ByteBuffer buffer)
public int calculateNumMetaBytes()
public void writeVariableBytesToOutputStream(OutputStream os) throws IOException
IOException
public void readVariableBytesFromInputStream(InputStream is) throws IOException
IOException
public void readVariableBytesFromArray(byte[] bytes, int offset)
public int getKeyValueTypeWidth()
public byte getIncludesMvccVersionByte()
public void setIncludesMvccVersion(byte includesMvccVersionByte)
public byte getAllSameTypeByte()
public void setAllSameType(byte allSameTypeByte)
public boolean isAllSameTimestamp()
public boolean isAllSameMvccVersion()
public void setTimestampFields(LongEncoder encoder)
public void setMvccVersionFields(LongEncoder encoder)
public int getAbsoluteMetaOffset()
public int getAbsoluteRowOffset()
public int getAbsoluteFamilyOffset()
public int getAbsoluteQualifierOffset()
public int getAbsoluteTagsOffset()
public int getAbsoluteTimestampOffset()
public int getAbsoluteMvccVersionOffset()
public int getAbsoluteValueOffset()
public int getTimestampDeltaWidth()
public void setTimestampDeltaWidth(int timestampDeltaWidth)
public int getValueOffsetWidth()
public int getTagsOffsetWidth()
public void setValueOffsetWidth(int dataOffsetWidth)
public void setTagsOffsetWidth(int dataOffsetWidth)
public int getValueLengthWidth()
public void setValueLengthWidth(int dataLengthWidth)
public int getMaxRowLength()
public void setMaxRowLength(int maxRowLength)
public long getMinTimestamp()
public void setMinTimestamp(long minTimestamp)
public byte getAllTypes()
public void setAllTypes(byte allTypes)
public boolean isAllSameType()
public void setAllSameType(boolean allSameType)
public int getNextNodeOffsetWidth()
public void setNextNodeOffsetWidth(int nextNodeOffsetWidth)
public int getNumRowBytes()
public void setNumRowBytes(int numRowBytes)
public int getNumTimestampBytes()
public void setNumTimestampBytes(int numTimestampBytes)
public int getNumValueBytes()
public int getNumTagsBytes()
public void setNumTagsBytes(int numTagBytes)
public void setNumValueBytes(int numValueBytes)
public int getNumMetaBytes()
public void setNumMetaBytes(int numMetaBytes)
public int getArrayOffset()
public void setArrayOffset(int arrayOffset)
public int getBufferOffset()
public void setBufferOffset(int bufferOffset)
public int getNumKeyValueBytes()
public void setNumKeyValueBytes(int numKeyValueBytes)
public int getRowTreeDepth()
public void setRowTreeDepth(int rowTreeDepth)
public int getNumMvccVersionBytes()
public void setNumMvccVersionBytes(int numMvccVersionBytes)
public int getMvccVersionDeltaWidth()
public void setMvccVersionDeltaWidth(int mvccVersionDeltaWidth)
public long getMinMvccVersion()
public void setMinMvccVersion(long minMvccVersion)
public int getNumFamilyBytes()
public void setNumFamilyBytes(int numFamilyBytes)
public int getFamilyOffsetWidth()
public void setFamilyOffsetWidth(int familyOffsetWidth)
public int getNumUniqueRows()
public void setNumUniqueRows(int numUniqueRows)
public int getNumUniqueFamilies()
public void setNumUniqueFamilies(int numUniqueFamilies)
public int getNumUniqueQualifiers()
public void setNumUniqueQualifiers(int numUniqueQualifiers)
public void setNumUniqueTags(int numUniqueTags)
public int getNumUniqueTags()
public int getNumQualifierBytes()
public void setNumQualifierBytes(int numQualifierBytes)
public int getQualifierOffsetWidth()
public void setQualifierOffsetWidth(int qualifierOffsetWidth)
public int getMaxQualifierLength()
public void setMaxQualifierLength(int maxQualifierLength)
public int getMaxTagsLength()
public void setMaxTagsLength(int maxTagLength)
public int getTimestampIndexWidth()
public void setTimestampIndexWidth(int timestampIndexWidth)
public int getMvccVersionIndexWidth()
public void setMvccVersionIndexWidth(int mvccVersionIndexWidth)
public int getVersion()
public void setVersion(int version)
public boolean isIncludesMvccVersion()
public void setIncludesMvccVersion(boolean includesMvccVersion)
Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.