Class OrcProto.PostScript.Builder

    • Method Detail

      • 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.Builder<OrcProto.PostScript.Builder>
      • clear

        public OrcProto.PostScript.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<OrcProto.PostScript.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<OrcProto.PostScript.Builder>
      • getDefaultInstanceForType

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

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

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

        public OrcProto.PostScript.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<OrcProto.PostScript.Builder>
      • setField

        public OrcProto.PostScript.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<OrcProto.PostScript.Builder>
      • clearField

        public OrcProto.PostScript.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<OrcProto.PostScript.Builder>
      • clearOneof

        public OrcProto.PostScript.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<OrcProto.PostScript.Builder>
      • setRepeatedField

        public OrcProto.PostScript.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                            int index,
                                                            Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<OrcProto.PostScript.Builder>
      • addRepeatedField

        public OrcProto.PostScript.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                            Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<OrcProto.PostScript.Builder>
      • mergeFrom

        public OrcProto.PostScript.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<OrcProto.PostScript.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<OrcProto.PostScript.Builder>
      • mergeFrom

        public OrcProto.PostScript.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                              throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<OrcProto.PostScript.Builder>
        Throws:
        IOException
      • setFooterLength

        public OrcProto.PostScript.Builder setFooterLength​(long value)
        optional uint64 footerLength = 1;
        Parameters:
        value - The footerLength to set.
        Returns:
        This builder for chaining.
      • clearFooterLength

        public OrcProto.PostScript.Builder clearFooterLength()
        optional uint64 footerLength = 1;
        Returns:
        This builder for chaining.
      • hasCompression

        public boolean hasCompression()
        optional .orc.proto.CompressionKind compression = 2;
        Specified by:
        hasCompression in interface OrcProto.PostScriptOrBuilder
        Returns:
        Whether the compression field is set.
      • clearCompression

        public OrcProto.PostScript.Builder clearCompression()
        optional .orc.proto.CompressionKind compression = 2;
        Returns:
        This builder for chaining.
      • setCompressionBlockSize

        public OrcProto.PostScript.Builder setCompressionBlockSize​(long value)
        optional uint64 compressionBlockSize = 3;
        Parameters:
        value - The compressionBlockSize to set.
        Returns:
        This builder for chaining.
      • clearCompressionBlockSize

        public OrcProto.PostScript.Builder clearCompressionBlockSize()
        optional uint64 compressionBlockSize = 3;
        Returns:
        This builder for chaining.
      • 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.
      • setVersion

        public OrcProto.PostScript.Builder setVersion​(int index,
                                                      int value)
         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 to set the value at.
        value - The version to set.
        Returns:
        This builder for chaining.
      • addVersion

        public OrcProto.PostScript.Builder addVersion​(int value)
         the version of the file format
           [0, 11] = Hive 0.11
           [0, 12] = Hive 0.12
         
        repeated uint32 version = 4 [packed = true];
        Parameters:
        value - The version to add.
        Returns:
        This builder for chaining.
      • addAllVersion

        public OrcProto.PostScript.Builder addAllVersion​(Iterable<? extends Integer> values)
         the version of the file format
           [0, 11] = Hive 0.11
           [0, 12] = Hive 0.12
         
        repeated uint32 version = 4 [packed = true];
        Parameters:
        values - The version to add.
        Returns:
        This builder for chaining.
      • clearVersion

        public OrcProto.PostScript.Builder clearVersion()
         the version of the file format
           [0, 11] = Hive 0.11
           [0, 12] = Hive 0.12
         
        repeated uint32 version = 4 [packed = true];
        Returns:
        This builder for chaining.
      • setMetadataLength

        public OrcProto.PostScript.Builder setMetadataLength​(long value)
        optional uint64 metadataLength = 5;
        Parameters:
        value - The metadataLength to set.
        Returns:
        This builder for chaining.
      • clearMetadataLength

        public OrcProto.PostScript.Builder clearMetadataLength()
        optional uint64 metadataLength = 5;
        Returns:
        This builder for chaining.
      • 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.
      • setWriterVersion

        public OrcProto.PostScript.Builder setWriterVersion​(int value)
         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;
        Parameters:
        value - The writerVersion to set.
        Returns:
        This builder for chaining.
      • clearWriterVersion

        public OrcProto.PostScript.Builder clearWriterVersion()
         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;
        Returns:
        This builder for chaining.
      • 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.
      • setStripeStatisticsLength

        public OrcProto.PostScript.Builder setStripeStatisticsLength​(long value)
         the number of bytes in the encrypted stripe statistics
         
        optional uint64 stripeStatisticsLength = 7;
        Parameters:
        value - The stripeStatisticsLength to set.
        Returns:
        This builder for chaining.
      • clearStripeStatisticsLength

        public OrcProto.PostScript.Builder clearStripeStatisticsLength()
         the number of bytes in the encrypted stripe statistics
         
        optional uint64 stripeStatisticsLength = 7;
        Returns:
        This builder for chaining.
      • 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.
      • setMagic

        public OrcProto.PostScript.Builder setMagic​(String value)
         Leave this last in the record
         
        optional string magic = 8000;
        Parameters:
        value - The magic to set.
        Returns:
        This builder for chaining.
      • clearMagic

        public OrcProto.PostScript.Builder clearMagic()
         Leave this last in the record
         
        optional string magic = 8000;
        Returns:
        This builder for chaining.
      • setMagicBytes

        public OrcProto.PostScript.Builder setMagicBytes​(com.google.protobuf.ByteString value)
         Leave this last in the record
         
        optional string magic = 8000;
        Parameters:
        value - The bytes for magic to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final OrcProto.PostScript.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<OrcProto.PostScript.Builder>
      • mergeUnknownFields

        public final OrcProto.PostScript.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<OrcProto.PostScript.Builder>