Class OrcProto.StripeInformation.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.StripeInformation.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.StripeInformation.Builder>
      • getDefaultInstanceForType

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

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

        public OrcProto.StripeInformation buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.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.StripeInformation.Builder>
      • mergeFrom

        public OrcProto.StripeInformation.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.StripeInformation.Builder>
        Throws:
        IOException
      • hasOffset

        public boolean hasOffset()
         the global file offset of the start of the stripe
         
        optional uint64 offset = 1;
        Specified by:
        hasOffset in interface OrcProto.StripeInformationOrBuilder
        Returns:
        Whether the offset field is set.
      • setOffset

        public OrcProto.StripeInformation.Builder setOffset​(long value)
         the global file offset of the start of the stripe
         
        optional uint64 offset = 1;
        Parameters:
        value - The offset to set.
        Returns:
        This builder for chaining.
      • clearOffset

        public OrcProto.StripeInformation.Builder clearOffset()
         the global file offset of the start of the stripe
         
        optional uint64 offset = 1;
        Returns:
        This builder for chaining.
      • setIndexLength

        public OrcProto.StripeInformation.Builder setIndexLength​(long value)
         the number of bytes of index
         
        optional uint64 indexLength = 2;
        Parameters:
        value - The indexLength to set.
        Returns:
        This builder for chaining.
      • clearIndexLength

        public OrcProto.StripeInformation.Builder clearIndexLength()
         the number of bytes of index
         
        optional uint64 indexLength = 2;
        Returns:
        This builder for chaining.
      • setDataLength

        public OrcProto.StripeInformation.Builder setDataLength​(long value)
         the number of bytes of data
         
        optional uint64 dataLength = 3;
        Parameters:
        value - The dataLength to set.
        Returns:
        This builder for chaining.
      • clearDataLength

        public OrcProto.StripeInformation.Builder clearDataLength()
         the number of bytes of data
         
        optional uint64 dataLength = 3;
        Returns:
        This builder for chaining.
      • hasFooterLength

        public boolean hasFooterLength()
         the number of bytes in the stripe footer
         
        optional uint64 footerLength = 4;
        Specified by:
        hasFooterLength in interface OrcProto.StripeInformationOrBuilder
        Returns:
        Whether the footerLength field is set.
      • setFooterLength

        public OrcProto.StripeInformation.Builder setFooterLength​(long value)
         the number of bytes in the stripe footer
         
        optional uint64 footerLength = 4;
        Parameters:
        value - The footerLength to set.
        Returns:
        This builder for chaining.
      • clearFooterLength

        public OrcProto.StripeInformation.Builder clearFooterLength()
         the number of bytes in the stripe footer
         
        optional uint64 footerLength = 4;
        Returns:
        This builder for chaining.
      • setNumberOfRows

        public OrcProto.StripeInformation.Builder setNumberOfRows​(long value)
         the number of rows in this stripe
         
        optional uint64 numberOfRows = 5;
        Parameters:
        value - The numberOfRows to set.
        Returns:
        This builder for chaining.
      • clearNumberOfRows

        public OrcProto.StripeInformation.Builder clearNumberOfRows()
         the number of rows in this stripe
         
        optional uint64 numberOfRows = 5;
        Returns:
        This builder for chaining.
      • hasEncryptStripeId

        public boolean hasEncryptStripeId()
         If this is present, the reader should use this value for the encryption
         stripe id for setting the encryption IV. Otherwise, the reader should
         use one larger than the previous stripe's encryptStripeId.
         For unmerged ORC files, the first stripe will use 1 and the rest of the
         stripes won't have it set. For merged files, the stripe information
         will be copied from their original files and thus the first stripe of
         each of the input files will reset it to 1.
         Note that 1 was choosen, because protobuf v3 doesn't serialize
         primitive types that are the default (eg. 0).
         
        optional uint64 encryptStripeId = 6;
        Specified by:
        hasEncryptStripeId in interface OrcProto.StripeInformationOrBuilder
        Returns:
        Whether the encryptStripeId field is set.
      • getEncryptStripeId

        public long getEncryptStripeId()
         If this is present, the reader should use this value for the encryption
         stripe id for setting the encryption IV. Otherwise, the reader should
         use one larger than the previous stripe's encryptStripeId.
         For unmerged ORC files, the first stripe will use 1 and the rest of the
         stripes won't have it set. For merged files, the stripe information
         will be copied from their original files and thus the first stripe of
         each of the input files will reset it to 1.
         Note that 1 was choosen, because protobuf v3 doesn't serialize
         primitive types that are the default (eg. 0).
         
        optional uint64 encryptStripeId = 6;
        Specified by:
        getEncryptStripeId in interface OrcProto.StripeInformationOrBuilder
        Returns:
        The encryptStripeId.
      • setEncryptStripeId

        public OrcProto.StripeInformation.Builder setEncryptStripeId​(long value)
         If this is present, the reader should use this value for the encryption
         stripe id for setting the encryption IV. Otherwise, the reader should
         use one larger than the previous stripe's encryptStripeId.
         For unmerged ORC files, the first stripe will use 1 and the rest of the
         stripes won't have it set. For merged files, the stripe information
         will be copied from their original files and thus the first stripe of
         each of the input files will reset it to 1.
         Note that 1 was choosen, because protobuf v3 doesn't serialize
         primitive types that are the default (eg. 0).
         
        optional uint64 encryptStripeId = 6;
        Parameters:
        value - The encryptStripeId to set.
        Returns:
        This builder for chaining.
      • clearEncryptStripeId

        public OrcProto.StripeInformation.Builder clearEncryptStripeId()
         If this is present, the reader should use this value for the encryption
         stripe id for setting the encryption IV. Otherwise, the reader should
         use one larger than the previous stripe's encryptStripeId.
         For unmerged ORC files, the first stripe will use 1 and the rest of the
         stripes won't have it set. For merged files, the stripe information
         will be copied from their original files and thus the first stripe of
         each of the input files will reset it to 1.
         Note that 1 was choosen, because protobuf v3 doesn't serialize
         primitive types that are the default (eg. 0).
         
        optional uint64 encryptStripeId = 6;
        Returns:
        This builder for chaining.
      • getEncryptedLocalKeysList

        public List<com.google.protobuf.ByteString> getEncryptedLocalKeysList()
         For each encryption variant, the new encrypted local key to use
         until we find a replacement.
         
        repeated bytes encryptedLocalKeys = 7;
        Specified by:
        getEncryptedLocalKeysList in interface OrcProto.StripeInformationOrBuilder
        Returns:
        A list containing the encryptedLocalKeys.
      • getEncryptedLocalKeysCount

        public int getEncryptedLocalKeysCount()
         For each encryption variant, the new encrypted local key to use
         until we find a replacement.
         
        repeated bytes encryptedLocalKeys = 7;
        Specified by:
        getEncryptedLocalKeysCount in interface OrcProto.StripeInformationOrBuilder
        Returns:
        The count of encryptedLocalKeys.
      • getEncryptedLocalKeys

        public com.google.protobuf.ByteString getEncryptedLocalKeys​(int index)
         For each encryption variant, the new encrypted local key to use
         until we find a replacement.
         
        repeated bytes encryptedLocalKeys = 7;
        Specified by:
        getEncryptedLocalKeys in interface OrcProto.StripeInformationOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The encryptedLocalKeys at the given index.
      • setEncryptedLocalKeys

        public OrcProto.StripeInformation.Builder setEncryptedLocalKeys​(int index,
                                                                        com.google.protobuf.ByteString value)
         For each encryption variant, the new encrypted local key to use
         until we find a replacement.
         
        repeated bytes encryptedLocalKeys = 7;
        Parameters:
        index - The index to set the value at.
        value - The encryptedLocalKeys to set.
        Returns:
        This builder for chaining.
      • addEncryptedLocalKeys

        public OrcProto.StripeInformation.Builder addEncryptedLocalKeys​(com.google.protobuf.ByteString value)
         For each encryption variant, the new encrypted local key to use
         until we find a replacement.
         
        repeated bytes encryptedLocalKeys = 7;
        Parameters:
        value - The encryptedLocalKeys to add.
        Returns:
        This builder for chaining.
      • addAllEncryptedLocalKeys

        public OrcProto.StripeInformation.Builder addAllEncryptedLocalKeys​(Iterable<? extends com.google.protobuf.ByteString> values)
         For each encryption variant, the new encrypted local key to use
         until we find a replacement.
         
        repeated bytes encryptedLocalKeys = 7;
        Parameters:
        values - The encryptedLocalKeys to add.
        Returns:
        This builder for chaining.
      • clearEncryptedLocalKeys

        public OrcProto.StripeInformation.Builder clearEncryptedLocalKeys()
         For each encryption variant, the new encrypted local key to use
         until we find a replacement.
         
        repeated bytes encryptedLocalKeys = 7;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final OrcProto.StripeInformation.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.StripeInformation.Builder>
      • mergeUnknownFields

        public final OrcProto.StripeInformation.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.StripeInformation.Builder>