protected static class PhysicalFsWriter.VariantTracker extends Object
Modifier and Type | Field and Description |
---|---|
protected org.apache.orc.OrcProto.ColumnStatistics[] |
fileStats |
protected org.apache.orc.impl.writer.StreamOptions |
options |
protected Map<org.apache.orc.impl.StreamName,org.apache.orc.impl.PhysicalFsWriter.BufferedStream> |
streams |
protected List<org.apache.orc.OrcProto.ColumnStatistics>[] |
stripeStats |
protected List<org.apache.orc.OrcProto.Stream> |
stripeStatsStreams |
Modifier and Type | Method and Description |
---|---|
org.apache.orc.impl.PhysicalFsWriter.BufferedStream |
createStream(org.apache.orc.impl.StreamName name) |
long |
getFileBytes(int column)
Computed the size of the given column on disk for this stripe.
|
List<org.apache.orc.OrcProto.Stream> |
placeStreams(org.apache.orc.impl.StreamName.Area area,
org.apache.orc.impl.PhysicalFsWriter.SizeCounters sizes)
Place the streams in the appropriate area while updating the sizes with the number of
bytes in the area.
|
void |
writeStreams(org.apache.orc.impl.StreamName.Area area,
org.apache.hadoop.fs.FSDataOutputStream raw)
Write the streams in the appropriate area.
|
protected final Map<org.apache.orc.impl.StreamName,org.apache.orc.impl.PhysicalFsWriter.BufferedStream> streams
protected final org.apache.orc.impl.writer.StreamOptions options
protected final List<org.apache.orc.OrcProto.ColumnStatistics>[] stripeStats
protected final List<org.apache.orc.OrcProto.Stream> stripeStatsStreams
protected final org.apache.orc.OrcProto.ColumnStatistics[] fileStats
public org.apache.orc.impl.PhysicalFsWriter.BufferedStream createStream(org.apache.orc.impl.StreamName name)
public List<org.apache.orc.OrcProto.Stream> placeStreams(org.apache.orc.impl.StreamName.Area area, org.apache.orc.impl.PhysicalFsWriter.SizeCounters sizes)
area
- the area to writesizes
- the sizes of the areaspublic void writeStreams(org.apache.orc.impl.StreamName.Area area, org.apache.hadoop.fs.FSDataOutputStream raw) throws IOException
area
- the area to writeraw
- the raw stream to write toIOException
public long getFileBytes(int column)
column
- a column idCopyright © 2023–2024 The Apache Software Foundation. All rights reserved.