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
ConstructorDescriptionWriterEncryptionVariant
(WriterEncryptionKey key, TypeDescription root, LocalKey columnKey) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addEncoding
(OrcProto.ColumnEncoding encoding) void
void
int
compareTo
(@NotNull EncryptionVariant other) boolean
Get 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.int
Get the encryption variant id within the file.int
hashCode()
void
setId
(int id)
-
Constructor Details
-
WriterEncryptionVariant
-
-
Method Details
-
getKeyDescription
Description copied from interface:EncryptionVariant
Get 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:
getKeyDescription
in interfaceEncryptionVariant
- Returns:
- the encryption key description
-
getRoot
Description copied from interface:EncryptionVariant
Get the root column for this variant.- Specified by:
getRoot
in interfaceEncryptionVariant
- Returns:
- the root column type
-
setId
public void setId(int id) -
getVariantId
public int getVariantId()Description copied from interface:EncryptionVariant
Get the encryption variant id within the file.- Specified by:
getVariantId
in interfaceEncryptionVariant
-
getStripeKey
Description copied from interface:EncryptionVariant
Get the local key for a stripe's data or footer.- Specified by:
getStripeKey
in 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:
compareTo
in interfaceComparable<EncryptionVariant>
-