Package io.trino.orc.proto
Interface OrcProto.PostScriptOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
OrcProto.PostScript,OrcProto.PostScript.Builder
- Enclosing class:
- OrcProto
public static interface OrcProto.PostScriptOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OrcProto.CompressionKindgetCompression()optional .orc.proto.CompressionKind compression = 2;longgetCompressionBlockSize()optional uint64 compressionBlockSize = 3;longgetFooterLength()optional uint64 footerLength = 1;StringgetMagic()Leave this last in the recordcom.google.protobuf.ByteStringgetMagicBytes()Leave this last in the recordlonggetMetadataLength()optional uint64 metadataLength = 5;longgetStripeStatisticsLength()the number of bytes in the encrypted stripe statisticsintgetVersion(int index)the version of the file format [0, 11] = Hive 0.11 [0, 12] = Hive 0.12intgetVersionCount()the version of the file format [0, 11] = Hive 0.11 [0, 12] = Hive 0.12List<Integer>getVersionList()the version of the file format [0, 11] = Hive 0.11 [0, 12] = Hive 0.12intgetWriterVersion()The version of the writer that wrote the file.booleanhasCompression()optional .orc.proto.CompressionKind compression = 2;booleanhasCompressionBlockSize()optional uint64 compressionBlockSize = 3;booleanhasFooterLength()optional uint64 footerLength = 1;booleanhasMagic()Leave this last in the recordbooleanhasMetadataLength()optional uint64 metadataLength = 5;booleanhasStripeStatisticsLength()the number of bytes in the encrypted stripe statisticsbooleanhasWriterVersion()The version of the writer that wrote the file.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasFooterLength
boolean hasFooterLength()
optional uint64 footerLength = 1;- Returns:
- Whether the footerLength field is set.
-
getFooterLength
long getFooterLength()
optional uint64 footerLength = 1;- Returns:
- The footerLength.
-
hasCompression
boolean hasCompression()
optional .orc.proto.CompressionKind compression = 2;- Returns:
- Whether the compression field is set.
-
getCompression
OrcProto.CompressionKind getCompression()
optional .orc.proto.CompressionKind compression = 2;- Returns:
- The compression.
-
hasCompressionBlockSize
boolean hasCompressionBlockSize()
optional uint64 compressionBlockSize = 3;- Returns:
- Whether the compressionBlockSize field is set.
-
getCompressionBlockSize
long getCompressionBlockSize()
optional uint64 compressionBlockSize = 3;- Returns:
- The compressionBlockSize.
-
getVersionList
List<Integer> getVersionList()
the version of the file format [0, 11] = Hive 0.11 [0, 12] = Hive 0.12
repeated uint32 version = 4 [packed = true];- Returns:
- A list containing the version.
-
getVersionCount
int getVersionCount()
the version of the file format [0, 11] = Hive 0.11 [0, 12] = Hive 0.12
repeated uint32 version = 4 [packed = true];- Returns:
- The count of version.
-
getVersion
int getVersion(int index)
the version of the file format [0, 11] = Hive 0.11 [0, 12] = Hive 0.12
repeated uint32 version = 4 [packed = true];- Parameters:
index- The index of the element to return.- Returns:
- The version at the given index.
-
hasMetadataLength
boolean hasMetadataLength()
optional uint64 metadataLength = 5;- Returns:
- Whether the metadataLength field is set.
-
getMetadataLength
long getMetadataLength()
optional uint64 metadataLength = 5;- Returns:
- The metadataLength.
-
hasWriterVersion
boolean hasWriterVersion()
The version of the writer that wrote the file. This number is updated when we make fixes or large changes to the writer so that readers can detect whether a given bug is present in the data. Only the Java ORC writer may use values under 6 (or missing) so that readers that predate ORC-202 treat the new writers correctly. Each writer should assign their own sequence of versions starting from 6. Version of the ORC Java writer: 0 = original 1 = HIVE-8732 fixed (fixed stripe/file maximum statistics & string statistics use utf8 for min/max) 2 = HIVE-4243 fixed (use real column names from Hive tables) 3 = HIVE-12055 added (vectorized writer implementation) 4 = HIVE-13083 fixed (decimals write present stream correctly) 5 = ORC-101 fixed (bloom filters use utf8 consistently) 6 = ORC-135 fixed (timestamp statistics use utc) 7 = ORC-517 fixed (decimal64 min/max incorrect) 8 = ORC-203 added (trim very long string statistics) 9 = ORC-14 added (column encryption) Version of the ORC C++ writer: 6 = original Version of the Presto writer: 6 = original Version of the Scritchley Go writer: 6 = original Version of the Trino writer: 6 = originaloptional uint32 writerVersion = 6;- Returns:
- Whether the writerVersion field is set.
-
getWriterVersion
int getWriterVersion()
The version of the writer that wrote the file. This number is updated when we make fixes or large changes to the writer so that readers can detect whether a given bug is present in the data. Only the Java ORC writer may use values under 6 (or missing) so that readers that predate ORC-202 treat the new writers correctly. Each writer should assign their own sequence of versions starting from 6. Version of the ORC Java writer: 0 = original 1 = HIVE-8732 fixed (fixed stripe/file maximum statistics & string statistics use utf8 for min/max) 2 = HIVE-4243 fixed (use real column names from Hive tables) 3 = HIVE-12055 added (vectorized writer implementation) 4 = HIVE-13083 fixed (decimals write present stream correctly) 5 = ORC-101 fixed (bloom filters use utf8 consistently) 6 = ORC-135 fixed (timestamp statistics use utc) 7 = ORC-517 fixed (decimal64 min/max incorrect) 8 = ORC-203 added (trim very long string statistics) 9 = ORC-14 added (column encryption) Version of the ORC C++ writer: 6 = original Version of the Presto writer: 6 = original Version of the Scritchley Go writer: 6 = original Version of the Trino writer: 6 = originaloptional uint32 writerVersion = 6;- Returns:
- The writerVersion.
-
hasStripeStatisticsLength
boolean hasStripeStatisticsLength()
the number of bytes in the encrypted stripe statistics
optional uint64 stripeStatisticsLength = 7;- Returns:
- Whether the stripeStatisticsLength field is set.
-
getStripeStatisticsLength
long getStripeStatisticsLength()
the number of bytes in the encrypted stripe statistics
optional uint64 stripeStatisticsLength = 7;- Returns:
- The stripeStatisticsLength.
-
hasMagic
boolean hasMagic()
Leave this last in the record
optional string magic = 8000;- Returns:
- Whether the magic field is set.
-
getMagic
String getMagic()
Leave this last in the record
optional string magic = 8000;- Returns:
- The magic.
-
getMagicBytes
com.google.protobuf.ByteString getMagicBytes()
Leave this last in the record
optional string magic = 8000;- Returns:
- The bytes for magic.
-
-