public class LongColumnWriter extends Object implements ColumnWriter
Constructor and Description |
---|
LongColumnWriter(int column,
Type type,
CompressionKind compression,
int bufferSize,
OrcEncoding orcEncoding,
Supplier<LongValueStatisticsBuilder> statisticsBuilderSupplier) |
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.
|
long |
getRetainedBytes() |
void |
reset() |
void |
writeBlock(Block block) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getNestedColumnWriters
public LongColumnWriter(int column, Type type, CompressionKind compression, int bufferSize, OrcEncoding orcEncoding, Supplier<LongValueStatisticsBuilder> statisticsBuilderSupplier)
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.