Package io.trino.orc.proto
Class OrcProto.PostScript
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.trino.orc.proto.OrcProto.PostScript
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,OrcProto.PostScriptOrBuilder,Serializable
- Enclosing class:
- OrcProto
public static final class OrcProto.PostScript extends com.google.protobuf.GeneratedMessageV3 implements OrcProto.PostScriptOrBuilder
Serialized length must be less that 255 bytes
Protobuf typeorc.proto.PostScript- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOrcProto.PostScript.BuilderSerialized length must be less that 255 bytes-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intCOMPRESSION_FIELD_NUMBERstatic intCOMPRESSIONBLOCKSIZE_FIELD_NUMBERstatic intFOOTERLENGTH_FIELD_NUMBERstatic intMAGIC_FIELD_NUMBERstatic intMETADATALENGTH_FIELD_NUMBERstatic com.google.protobuf.Parser<OrcProto.PostScript>PARSERDeprecated.static intSTRIPESTATISTICSLENGTH_FIELD_NUMBERstatic intVERSION_FIELD_NUMBERstatic intWRITERVERSION_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)OrcProto.CompressionKindgetCompression()optional .orc.proto.CompressionKind compression = 2;longgetCompressionBlockSize()optional uint64 compressionBlockSize = 3;static OrcProto.PostScriptgetDefaultInstance()OrcProto.PostScriptgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()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;com.google.protobuf.Parser<OrcProto.PostScript>getParserForType()intgetSerializedSize()longgetStripeStatisticsLength()the number of bytes in the encrypted stripe statisticscom.google.protobuf.UnknownFieldSetgetUnknownFields()intgetVersion(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;inthashCode()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.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static OrcProto.PostScript.BuildernewBuilder()static OrcProto.PostScript.BuildernewBuilder(OrcProto.PostScript prototype)OrcProto.PostScript.BuildernewBuilderForType()protected OrcProto.PostScript.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static OrcProto.PostScriptparseDelimitedFrom(InputStream input)static OrcProto.PostScriptparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static OrcProto.PostScriptparseFrom(byte[] data)static OrcProto.PostScriptparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static OrcProto.PostScriptparseFrom(com.google.protobuf.ByteString data)static OrcProto.PostScriptparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static OrcProto.PostScriptparseFrom(com.google.protobuf.CodedInputStream input)static OrcProto.PostScriptparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static OrcProto.PostScriptparseFrom(InputStream input)static OrcProto.PostScriptparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static OrcProto.PostScriptparseFrom(ByteBuffer data)static OrcProto.PostScriptparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<OrcProto.PostScript>parser()OrcProto.PostScript.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
FOOTERLENGTH_FIELD_NUMBER
public static final int FOOTERLENGTH_FIELD_NUMBER
- See Also:
- Constant Field Values
-
COMPRESSION_FIELD_NUMBER
public static final int COMPRESSION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
COMPRESSIONBLOCKSIZE_FIELD_NUMBER
public static final int COMPRESSIONBLOCKSIZE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
VERSION_FIELD_NUMBER
public static final int VERSION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
METADATALENGTH_FIELD_NUMBER
public static final int METADATALENGTH_FIELD_NUMBER
- See Also:
- Constant Field Values
-
WRITERVERSION_FIELD_NUMBER
public static final int WRITERVERSION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STRIPESTATISTICSLENGTH_FIELD_NUMBER
public static final int STRIPESTATISTICSLENGTH_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MAGIC_FIELD_NUMBER
public static final int MAGIC_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PARSER
@Deprecated public static final com.google.protobuf.Parser<OrcProto.PostScript> PARSER
Deprecated.
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
hasFooterLength
public boolean hasFooterLength()
optional uint64 footerLength = 1;- Specified by:
hasFooterLengthin interfaceOrcProto.PostScriptOrBuilder- Returns:
- Whether the footerLength field is set.
-
getFooterLength
public long getFooterLength()
optional uint64 footerLength = 1;- Specified by:
getFooterLengthin interfaceOrcProto.PostScriptOrBuilder- Returns:
- The footerLength.
-
hasCompression
public boolean hasCompression()
optional .orc.proto.CompressionKind compression = 2;- Specified by:
hasCompressionin interfaceOrcProto.PostScriptOrBuilder- Returns:
- Whether the compression field is set.
-
getCompression
public OrcProto.CompressionKind getCompression()
optional .orc.proto.CompressionKind compression = 2;- Specified by:
getCompressionin interfaceOrcProto.PostScriptOrBuilder- Returns:
- The compression.
-
hasCompressionBlockSize
public boolean hasCompressionBlockSize()
optional uint64 compressionBlockSize = 3;- Specified by:
hasCompressionBlockSizein interfaceOrcProto.PostScriptOrBuilder- Returns:
- Whether the compressionBlockSize field is set.
-
getCompressionBlockSize
public long getCompressionBlockSize()
optional uint64 compressionBlockSize = 3;- Specified by:
getCompressionBlockSizein interfaceOrcProto.PostScriptOrBuilder- Returns:
- The compressionBlockSize.
-
getVersionList
public 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];- Specified by:
getVersionListin interfaceOrcProto.PostScriptOrBuilder- Returns:
- A list containing the version.
-
getVersionCount
public int getVersionCount()
the version of the file format [0, 11] = Hive 0.11 [0, 12] = Hive 0.12
repeated uint32 version = 4 [packed = true];- Specified by:
getVersionCountin interfaceOrcProto.PostScriptOrBuilder- Returns:
- The count of version.
-
getVersion
public 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];- Specified by:
getVersionin interfaceOrcProto.PostScriptOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The version at the given index.
-
hasMetadataLength
public boolean hasMetadataLength()
optional uint64 metadataLength = 5;- Specified by:
hasMetadataLengthin interfaceOrcProto.PostScriptOrBuilder- Returns:
- Whether the metadataLength field is set.
-
getMetadataLength
public long getMetadataLength()
optional uint64 metadataLength = 5;- Specified by:
getMetadataLengthin interfaceOrcProto.PostScriptOrBuilder- Returns:
- The metadataLength.
-
hasWriterVersion
public 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;- Specified by:
hasWriterVersionin interfaceOrcProto.PostScriptOrBuilder- Returns:
- Whether the writerVersion field is set.
-
getWriterVersion
public 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;- Specified by:
getWriterVersionin interfaceOrcProto.PostScriptOrBuilder- Returns:
- The writerVersion.
-
hasStripeStatisticsLength
public boolean hasStripeStatisticsLength()
the number of bytes in the encrypted stripe statistics
optional uint64 stripeStatisticsLength = 7;- Specified by:
hasStripeStatisticsLengthin interfaceOrcProto.PostScriptOrBuilder- Returns:
- Whether the stripeStatisticsLength field is set.
-
getStripeStatisticsLength
public long getStripeStatisticsLength()
the number of bytes in the encrypted stripe statistics
optional uint64 stripeStatisticsLength = 7;- Specified by:
getStripeStatisticsLengthin interfaceOrcProto.PostScriptOrBuilder- Returns:
- The stripeStatisticsLength.
-
hasMagic
public boolean hasMagic()
Leave this last in the record
optional string magic = 8000;- Specified by:
hasMagicin interfaceOrcProto.PostScriptOrBuilder- Returns:
- Whether the magic field is set.
-
getMagic
public String getMagic()
Leave this last in the record
optional string magic = 8000;- Specified by:
getMagicin interfaceOrcProto.PostScriptOrBuilder- Returns:
- The magic.
-
getMagicBytes
public com.google.protobuf.ByteString getMagicBytes()
Leave this last in the record
optional string magic = 8000;- Specified by:
getMagicBytesin interfaceOrcProto.PostScriptOrBuilder- Returns:
- The bytes for magic.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static OrcProto.PostScript parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OrcProto.PostScript parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OrcProto.PostScript parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OrcProto.PostScript parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OrcProto.PostScript parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OrcProto.PostScript parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OrcProto.PostScript parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static OrcProto.PostScript parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static OrcProto.PostScript parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static OrcProto.PostScript parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static OrcProto.PostScript parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static OrcProto.PostScript parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public OrcProto.PostScript.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static OrcProto.PostScript.Builder newBuilder()
-
newBuilder
public static OrcProto.PostScript.Builder newBuilder(OrcProto.PostScript prototype)
-
toBuilder
public OrcProto.PostScript.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected OrcProto.PostScript.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static OrcProto.PostScript getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<OrcProto.PostScript> parser()
-
getParserForType
public com.google.protobuf.Parser<OrcProto.PostScript> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public OrcProto.PostScript getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-