@InterfaceAudience.Private public class ColumnNodeWriter extends Object
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:Modifier and Type | Field and Description |
---|---|
protected PrefixTreeBlockMeta |
blockMeta |
protected TokenizerNode |
builderNode
fields
|
protected ColumnNodeType |
nodeType |
protected int |
parentStartPosition |
protected byte[] |
token |
protected int |
tokenLength |
Constructor and Description |
---|
ColumnNodeWriter(PrefixTreeBlockMeta blockMeta,
TokenizerNode builderNode,
ColumnNodeType nodeType)
construct
|
Modifier and Type | Method and Description |
---|---|
private void |
calculateTokenLength() |
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) |
protected TokenizerNode builderNode
protected PrefixTreeBlockMeta blockMeta
protected int tokenLength
protected byte[] token
protected int parentStartPosition
protected ColumnNodeType nodeType
public ColumnNodeWriter(PrefixTreeBlockMeta blockMeta, TokenizerNode builderNode, ColumnNodeType nodeType)
public boolean isRoot()
private void calculateTokenLength()
public int getWidthUsingPlaceholderForOffsetWidth(int offsetWidthPlaceholder)
offsetWidthPlaceholder
- the placeholderpublic void writeBytes(OutputStream os) throws IOException
IOException
public void setTokenBytes(ByteRange source)
public void setParentStartPosition(int parentStartPosition)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.