Package org.apache.orc.impl.writer
Class WriterEncryptionVariant
java.lang.Object
org.apache.orc.impl.writer.WriterEncryptionVariant
- All Implemented Interfaces:
Comparable<EncryptionVariant>,EncryptionVariant
-
Constructor Summary
ConstructorsConstructorDescriptionWriterEncryptionVariant(WriterEncryptionKey key, TypeDescription root, LocalKey columnKey) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEncoding(OrcProto.ColumnEncoding encoding) voidvoidintcompareTo(@NotNull EncryptionVariant other) booleanGet the local key for the footer.Get the key description for this column.getRoot()Get the root column for this variant.getStripeKey(long stripe) Get the local key for a stripe's data or footer.intGet the encryption variant id within the file.inthashCode()voidsetId(int id)
-
Constructor Details
-
WriterEncryptionVariant
-
-
Method Details
-
getKeyDescription
Description copied from interface:EncryptionVariantGet the key description for this column. This description is global to the file and is passed to the KeyProvider along with various encrypted local keys for the stripes or file footer so that it can decrypt them.- Specified by:
getKeyDescriptionin interfaceEncryptionVariant- Returns:
- the encryption key description
-
getRoot
Description copied from interface:EncryptionVariantGet the root column for this variant.- Specified by:
getRootin interfaceEncryptionVariant- Returns:
- the root column type
-
setId
public void setId(int id) -
getVariantId
public int getVariantId()Description copied from interface:EncryptionVariantGet the encryption variant id within the file.- Specified by:
getVariantIdin interfaceEncryptionVariant
-
getStripeKey
Description copied from interface:EncryptionVariantGet the local key for a stripe's data or footer.- Specified by:
getStripeKeyin interfaceEncryptionVariant- Parameters:
stripe- the stripe within the file (0 to N-1)- Returns:
- the local decrypted key or null if it isn't available
-
getMaterial
-
clearFileStatistics
public void clearFileStatistics() -
getFileStatistics
-
addEncoding
-
getEncodings
-
clearEncodings
public void clearEncodings() -
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareToin interfaceComparable<EncryptionVariant>
-