public class StructColumnWriter extends Object implements ColumnWriter
Constructor and Description |
---|
StructColumnWriter(int column,
CompressionKind compression,
int bufferSize,
List<ColumnWriter> structFields) |
Modifier and Type | Method and Description |
---|---|
void |
beginRowGroup() |
void |
close() |
Map<Integer,ColumnStatistics> |
finishRowGroup() |
long |
getBufferedBytes()
This method returns the size of the flushed data plus any unflushed data.
|
Map<Integer,ColumnEncoding> |
getColumnEncodings() |
Map<Integer,ColumnStatistics> |
getColumnStripeStatistics() |
List<StreamDataOutput> |
getDataStreams()
Get the data streams to be written.
|
List<StreamDataOutput> |
getIndexStreams(CompressedMetadataWriter metadataWriter)
Write index streams to the output and return the streams in the
order in which they were written.
|
List<ColumnWriter> |
getNestedColumnWriters() |
long |
getRetainedBytes() |
void |
reset() |
void |
writeBlock(Block block) |
public StructColumnWriter(int column, CompressionKind compression, int bufferSize, List<ColumnWriter> structFields)
public List<ColumnWriter> getNestedColumnWriters()
getNestedColumnWriters
in interface ColumnWriter
public Map<Integer,ColumnEncoding> getColumnEncodings()
getColumnEncodings
in interface ColumnWriter
public void beginRowGroup()
beginRowGroup
in interface ColumnWriter
public void writeBlock(Block block)
writeBlock
in interface ColumnWriter
public Map<Integer,ColumnStatistics> finishRowGroup()
finishRowGroup
in interface ColumnWriter
public void close()
close
in interface ColumnWriter
public Map<Integer,ColumnStatistics> getColumnStripeStatistics()
getColumnStripeStatistics
in interface ColumnWriter
public List<StreamDataOutput> getIndexStreams(CompressedMetadataWriter metadataWriter) throws IOException
ColumnWriter
getIndexStreams
in interface ColumnWriter
IOException
public List<StreamDataOutput> getDataStreams()
ColumnWriter
getDataStreams
in interface ColumnWriter
public long getBufferedBytes()
ColumnWriter
getBufferedBytes
in interface ColumnWriter
public long getRetainedBytes()
getRetainedBytes
in interface ColumnWriter
public void reset()
reset
in interface ColumnWriter
Copyright © 2012–2020. All rights reserved.