Package org.apache.orc.impl.reader
Class ReaderEncryptionVariant
java.lang.Object
org.apache.orc.impl.reader.ReaderEncryptionVariant
- All Implemented Interfaces:
Comparable<EncryptionVariant>,EncryptionVariant
Information about an encrypted column.
-
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(@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.getStripeStatistics(boolean[] columns, InStream.StreamOptions compression, ReaderImpl reader) Decrypt the raw data and return the list of the stripe statistics for this variant.longintGet the encryption variant id within the file.inthashCode()
-
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
-
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
- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<EncryptionVariant>
-
getStripeStatisticsLength
public long getStripeStatisticsLength() -
getStripeStatistics
public List<StripeStatistics> getStripeStatistics(boolean[] columns, InStream.StreamOptions compression, ReaderImpl reader) throws IOException Decrypt the raw data and return the list of the stripe statistics for this variant.- Parameters:
columns- true for the columns that should be includedcompression- the compression options- Returns:
- the stripe statistics for this variant.
- Throws:
IOException
-