@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:| 限定符和类型 | 字段和说明 |
|---|---|
protected PrefixTreeBlockMeta |
blockMeta |
protected TokenizerNode |
builderNode
fields
|
protected ColumnNodeType |
nodeType |
protected int |
parentStartPosition |
protected byte[] |
token |
protected int |
tokenLength |
| 构造器和说明 |
|---|
ColumnNodeWriter(PrefixTreeBlockMeta blockMeta,
TokenizerNode builderNode,
ColumnNodeType nodeType)
construct
|
| 限定符和类型 | 方法和说明 |
|---|---|
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
IOExceptionpublic void setTokenBytes(ByteRange source)
public void setParentStartPosition(int parentStartPosition)
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.