|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.codec.prefixtree.encode.column.ColumnNodeWriter
@InterfaceAudience.Private public class ColumnNodeWriter
Column nodes can be either family nodes or qualifier nodes, as both sections encode similarly. The family and qualifier sections of the data block are made of 1 or more of these nodes.
Each node is composed of 3 sections:
Field Summary | |
---|---|
protected PrefixTreeBlockMeta |
blockMeta
|
protected TokenizerNode |
builderNode
fields |
protected ColumnNodeType |
nodeType
|
protected int |
parentStartPosition
|
protected byte[] |
token
|
protected int |
tokenLength
|
Constructor Summary | |
---|---|
ColumnNodeWriter(PrefixTreeBlockMeta blockMeta,
TokenizerNode builderNode,
ColumnNodeType nodeType)
construct |
Method Summary | |
---|---|
int |
getWidthUsingPlaceholderForOffsetWidth(int offsetWidthPlaceholder)
This method is called before blockMeta.qualifierOffsetWidth is known, so we pass in a placeholder. |
boolean |
isRoot()
methods |
void |
setParentStartPosition(int parentStartPosition)
get/set |
void |
setTokenBytes(ByteRange source)
|
String |
toString()
standard methods |
void |
writeBytes(OutputStream os)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected TokenizerNode builderNode
protected PrefixTreeBlockMeta blockMeta
protected int tokenLength
protected byte[] token
protected int parentStartPosition
protected ColumnNodeType nodeType
Constructor Detail |
---|
public ColumnNodeWriter(PrefixTreeBlockMeta blockMeta, TokenizerNode builderNode, ColumnNodeType nodeType)
Method Detail |
---|
public boolean isRoot()
public int getWidthUsingPlaceholderForOffsetWidth(int offsetWidthPlaceholder)
offsetWidthPlaceholder
- the placeholder
public void writeBytes(OutputStream os) throws IOException
IOException
public void setTokenBytes(ByteRange source)
public String toString()
public void setParentStartPosition(int parentStartPosition)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |