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 TypeMethodDescriptionint
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.getStripeStatistics
(boolean[] columns, InStream.StreamOptions compression, ReaderImpl reader) Decrypt the raw data and return the list of the stripe statistics for this variant.long
int
Get the encryption variant id within the file.int
hashCode()
-
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
-
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
- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareTo
in 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
-