Class 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 type orc.proto.PostScript
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        Specified by:
        getUnknownFields in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getUnknownFields in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • hasCompression

        public boolean hasCompression()
        optional .orc.proto.CompressionKind compression = 2;
        Specified by:
        hasCompression in interface OrcProto.PostScriptOrBuilder
        Returns:
        Whether the compression field is set.
      • 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:
        getVersionList in interface OrcProto.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:
        getVersionCount in interface OrcProto.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:
        getVersion in interface OrcProto.PostScriptOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The version at the given index.
      • 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 = original
         
        optional uint32 writerVersion = 6;
        Specified by:
        hasWriterVersion in interface OrcProto.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 = original
         
        optional uint32 writerVersion = 6;
        Specified by:
        getWriterVersion in interface OrcProto.PostScriptOrBuilder
        Returns:
        The writerVersion.
      • hasStripeStatisticsLength

        public boolean hasStripeStatisticsLength()
         the number of bytes in the encrypted stripe statistics
         
        optional uint64 stripeStatisticsLength = 7;
        Specified by:
        hasStripeStatisticsLength in interface OrcProto.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:
        getStripeStatisticsLength in interface OrcProto.PostScriptOrBuilder
        Returns:
        The stripeStatisticsLength.
      • hasMagic

        public boolean hasMagic()
         Leave this last in the record
         
        optional string magic = 8000;
        Specified by:
        hasMagic in interface OrcProto.PostScriptOrBuilder
        Returns:
        Whether the magic field is set.
      • getMagicBytes

        public com.google.protobuf.ByteString getMagicBytes()
         Leave this last in the record
         
        optional string magic = 8000;
        Specified by:
        getMagicBytes in interface OrcProto.PostScriptOrBuilder
        Returns:
        The bytes for magic.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.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​(com.google.protobuf.CodedInputStream input,
                                                    com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                             throws IOException
        Throws:
        IOException
      • newBuilderForType

        public OrcProto.PostScript.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public OrcProto.PostScript.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected OrcProto.PostScript.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<OrcProto.PostScript> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public OrcProto.PostScript getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder