Package org.apache.orc.impl
Class PhysicalFsWriter.VariantTracker
java.lang.Object
org.apache.orc.impl.PhysicalFsWriter.VariantTracker
- Enclosing class:
- PhysicalFsWriter
Record the information about each column encryption variant.
The unencrypted data and each encrypted column root are variants.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final OrcProto.ColumnStatistics[]
protected final StreamOptions
protected final Map<StreamName,
org.apache.orc.impl.PhysicalFsWriter.BufferedStream> protected final List<OrcProto.ColumnStatistics>[]
protected final List<OrcProto.Stream>
-
Method Summary
Modifier and TypeMethodDescriptioncreateStream
(StreamName name) long
getFileBytes
(int column) Computed the size of the given column on disk for this stripe.Place the streams in the appropriate area while updating the sizes with the number of bytes in the area.void
writeStreams
(StreamName.Area area, FSDataOutputStream raw) Write the streams in the appropriate area.
-
Field Details
-
streams
-
options
-
stripeStats
-
stripeStatsStreams
-
fileStats
-
-
Method Details
-
createStream
-
placeStreams
public List<OrcProto.Stream> placeStreams(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.- Parameters:
area
- the area to writesizes
- the sizes of the areas- Returns:
- the list of stream descriptions to add
-
writeStreams
Write the streams in the appropriate area.- Parameters:
area
- the area to writeraw
- the raw stream to write to- Throws:
IOException
-
getFileBytes
public long getFileBytes(int column) Computed the size of the given column on disk for this stripe. It excludes the index streams.- Parameters:
column
- a column id- Returns:
- the total number of bytes
-