@InterfaceAudience.Private public class RowSectionWriter extends Object
The row section is a concatenated collection of RowNodeWriter
s. See that class for the
internals of each row node.
Modifier and Type | Field and Description |
---|---|
protected PrefixTreeBlockMeta |
blockMeta |
protected ArrayList<RowNodeWriter> |
leafWriters |
protected ArrayList<TokenizerNode> |
leaves |
protected ArrayList<RowNodeWriter> |
nonLeafWriters |
protected ArrayList<TokenizerNode> |
nonLeaves |
protected int |
numBytes |
protected int |
numLeafWriters |
protected int |
numNonLeafWriters |
protected PrefixTreeEncoder |
prefixTreeEncoder
fields
|
Constructor and Description |
---|
RowSectionWriter()
construct
|
RowSectionWriter(PrefixTreeEncoder prefixTreeEncoder) |
Modifier and Type | Method and Description |
---|---|
RowSectionWriter |
compile()
methods
|
protected static ArrayList<TokenizerNode> |
filterByLeafAndReverse(ArrayList<TokenizerNode> ins,
boolean leaves)
static
|
ArrayList<RowNodeWriter> |
getLeafWriters() |
ArrayList<TokenizerNode> |
getLeaves() |
ArrayList<RowNodeWriter> |
getNonLeafWriters() |
ArrayList<TokenizerNode> |
getNonLeaves() |
int |
getNumBytes()
get/set
|
protected RowNodeWriter |
initializeWriter(List<RowNodeWriter> list,
int index,
TokenizerNode builderNode) |
void |
reconstruct(PrefixTreeEncoder prefixTreeEncoder) |
void |
reset() |
void |
writeBytes(OutputStream os) |
protected PrefixTreeEncoder prefixTreeEncoder
protected PrefixTreeBlockMeta blockMeta
protected int numBytes
protected ArrayList<TokenizerNode> nonLeaves
protected ArrayList<TokenizerNode> leaves
protected ArrayList<RowNodeWriter> leafWriters
protected ArrayList<RowNodeWriter> nonLeafWriters
protected int numLeafWriters
protected int numNonLeafWriters
public RowSectionWriter()
public RowSectionWriter(PrefixTreeEncoder prefixTreeEncoder)
public void reconstruct(PrefixTreeEncoder prefixTreeEncoder)
public void reset()
public RowSectionWriter compile()
protected RowNodeWriter initializeWriter(List<RowNodeWriter> list, int index, TokenizerNode builderNode)
public void writeBytes(OutputStream os) throws IOException
IOException
protected static ArrayList<TokenizerNode> filterByLeafAndReverse(ArrayList<TokenizerNode> ins, boolean leaves)
public int getNumBytes()
public ArrayList<TokenizerNode> getNonLeaves()
public ArrayList<TokenizerNode> getLeaves()
public ArrayList<RowNodeWriter> getNonLeafWriters()
public ArrayList<RowNodeWriter> getLeafWriters()
Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.