@InterfaceAudience.Private public class ColumnNodeWriter extends Object
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 |
---|---|
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()
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-2016 The Apache Software Foundation. All Rights Reserved.