Package io.trino.orc.proto
Class OrcProto.StripeInformation.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<OrcProto.StripeInformation.Builder>
-
- io.trino.orc.proto.OrcProto.StripeInformation.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,OrcProto.StripeInformationOrBuilder,Cloneable
- Enclosing class:
- OrcProto.StripeInformation
public static final class OrcProto.StripeInformation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<OrcProto.StripeInformation.Builder> implements OrcProto.StripeInformationOrBuilder
Protobuf typeorc.proto.StripeInformation
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description OrcProto.StripeInformation.BuilderaddAllEncryptedLocalKeys(Iterable<? extends com.google.protobuf.ByteString> values)For each encryption variant, the new encrypted local key to use until we find a replacement.OrcProto.StripeInformation.BuilderaddEncryptedLocalKeys(com.google.protobuf.ByteString value)For each encryption variant, the new encrypted local key to use until we find a replacement.OrcProto.StripeInformation.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)OrcProto.StripeInformationbuild()OrcProto.StripeInformationbuildPartial()OrcProto.StripeInformation.Builderclear()OrcProto.StripeInformation.BuilderclearDataLength()the number of bytes of dataOrcProto.StripeInformation.BuilderclearEncryptedLocalKeys()For each encryption variant, the new encrypted local key to use until we find a replacement.OrcProto.StripeInformation.BuilderclearEncryptStripeId()If this is present, the reader should use this value for the encryption stripe id for setting the encryption IV.OrcProto.StripeInformation.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)OrcProto.StripeInformation.BuilderclearFooterLength()the number of bytes in the stripe footerOrcProto.StripeInformation.BuilderclearIndexLength()the number of bytes of indexOrcProto.StripeInformation.BuilderclearNumberOfRows()the number of rows in this stripeOrcProto.StripeInformation.BuilderclearOffset()the global file offset of the start of the stripeOrcProto.StripeInformation.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)OrcProto.StripeInformation.Builderclone()longgetDataLength()the number of bytes of dataOrcProto.StripeInformationgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()com.google.protobuf.ByteStringgetEncryptedLocalKeys(int index)For each encryption variant, the new encrypted local key to use until we find a replacement.intgetEncryptedLocalKeysCount()For each encryption variant, the new encrypted local key to use until we find a replacement.List<com.google.protobuf.ByteString>getEncryptedLocalKeysList()For each encryption variant, the new encrypted local key to use until we find a replacement.longgetEncryptStripeId()If this is present, the reader should use this value for the encryption stripe id for setting the encryption IV.longgetFooterLength()the number of bytes in the stripe footerlonggetIndexLength()the number of bytes of indexlonggetNumberOfRows()the number of rows in this stripelonggetOffset()the global file offset of the start of the stripebooleanhasDataLength()the number of bytes of databooleanhasEncryptStripeId()If this is present, the reader should use this value for the encryption stripe id for setting the encryption IV.booleanhasFooterLength()the number of bytes in the stripe footerbooleanhasIndexLength()the number of bytes of indexbooleanhasNumberOfRows()the number of rows in this stripebooleanhasOffset()the global file offset of the start of the stripeprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()OrcProto.StripeInformation.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)OrcProto.StripeInformation.BuildermergeFrom(com.google.protobuf.Message other)OrcProto.StripeInformation.BuildermergeFrom(OrcProto.StripeInformation other)OrcProto.StripeInformation.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)OrcProto.StripeInformation.BuildersetDataLength(long value)the number of bytes of dataOrcProto.StripeInformation.BuildersetEncryptedLocalKeys(int index, com.google.protobuf.ByteString value)For each encryption variant, the new encrypted local key to use until we find a replacement.OrcProto.StripeInformation.BuildersetEncryptStripeId(long value)If this is present, the reader should use this value for the encryption stripe id for setting the encryption IV.OrcProto.StripeInformation.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)OrcProto.StripeInformation.BuildersetFooterLength(long value)the number of bytes in the stripe footerOrcProto.StripeInformation.BuildersetIndexLength(long value)the number of bytes of indexOrcProto.StripeInformation.BuildersetNumberOfRows(long value)the number of rows in this stripeOrcProto.StripeInformation.BuildersetOffset(long value)the global file offset of the start of the stripeOrcProto.StripeInformation.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)OrcProto.StripeInformation.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
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.Builder<OrcProto.StripeInformation.Builder>
-
clear
public OrcProto.StripeInformation.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<OrcProto.StripeInformation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<OrcProto.StripeInformation.Builder>
-
getDefaultInstanceForType
public OrcProto.StripeInformation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public OrcProto.StripeInformation build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public OrcProto.StripeInformation buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public OrcProto.StripeInformation.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<OrcProto.StripeInformation.Builder>
-
setField
public OrcProto.StripeInformation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OrcProto.StripeInformation.Builder>
-
clearField
public OrcProto.StripeInformation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OrcProto.StripeInformation.Builder>
-
clearOneof
public OrcProto.StripeInformation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<OrcProto.StripeInformation.Builder>
-
setRepeatedField
public OrcProto.StripeInformation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OrcProto.StripeInformation.Builder>
-
addRepeatedField
public OrcProto.StripeInformation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OrcProto.StripeInformation.Builder>
-
mergeFrom
public OrcProto.StripeInformation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<OrcProto.StripeInformation.Builder>
-
mergeFrom
public OrcProto.StripeInformation.Builder mergeFrom(OrcProto.StripeInformation other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
hasOffsetin interfaceOrcProto.StripeInformationOrBuilder- Returns:
- Whether the offset field is set.
-
getOffset
public long getOffset()
the global file offset of the start of the stripe
optional uint64 offset = 1;- Specified by:
getOffsetin interfaceOrcProto.StripeInformationOrBuilder- Returns:
- The offset.
-
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.
-
hasIndexLength
public boolean hasIndexLength()
the number of bytes of index
optional uint64 indexLength = 2;- Specified by:
hasIndexLengthin interfaceOrcProto.StripeInformationOrBuilder- Returns:
- Whether the indexLength field is set.
-
getIndexLength
public long getIndexLength()
the number of bytes of index
optional uint64 indexLength = 2;- Specified by:
getIndexLengthin interfaceOrcProto.StripeInformationOrBuilder- Returns:
- The indexLength.
-
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.
-
hasDataLength
public boolean hasDataLength()
the number of bytes of data
optional uint64 dataLength = 3;- Specified by:
hasDataLengthin interfaceOrcProto.StripeInformationOrBuilder- Returns:
- Whether the dataLength field is set.
-
getDataLength
public long getDataLength()
the number of bytes of data
optional uint64 dataLength = 3;- Specified by:
getDataLengthin interfaceOrcProto.StripeInformationOrBuilder- Returns:
- The dataLength.
-
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:
hasFooterLengthin interfaceOrcProto.StripeInformationOrBuilder- Returns:
- Whether the footerLength field is set.
-
getFooterLength
public long getFooterLength()
the number of bytes in the stripe footer
optional uint64 footerLength = 4;- Specified by:
getFooterLengthin interfaceOrcProto.StripeInformationOrBuilder- Returns:
- The footerLength.
-
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.
-
hasNumberOfRows
public boolean hasNumberOfRows()
the number of rows in this stripe
optional uint64 numberOfRows = 5;- Specified by:
hasNumberOfRowsin interfaceOrcProto.StripeInformationOrBuilder- Returns:
- Whether the numberOfRows field is set.
-
getNumberOfRows
public long getNumberOfRows()
the number of rows in this stripe
optional uint64 numberOfRows = 5;- Specified by:
getNumberOfRowsin interfaceOrcProto.StripeInformationOrBuilder- Returns:
- The numberOfRows.
-
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:
hasEncryptStripeIdin interfaceOrcProto.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:
getEncryptStripeIdin interfaceOrcProto.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:
getEncryptedLocalKeysListin interfaceOrcProto.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:
getEncryptedLocalKeysCountin interfaceOrcProto.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:
getEncryptedLocalKeysin interfaceOrcProto.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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<OrcProto.StripeInformation.Builder>
-
mergeUnknownFields
public final OrcProto.StripeInformation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<OrcProto.StripeInformation.Builder>
-
-