public class ReaderEncryptionVariant extends Object implements EncryptionVariant
Modifier and Type | Method and Description |
---|---|
int |
compareTo(@NotNull EncryptionVariant other) |
boolean |
equals(Object other) |
Key |
getFileFooterKey()
Get the local key for the footer.
|
ReaderEncryptionKey |
getKeyDescription()
Get the key description for this column.
|
TypeDescription |
getRoot()
Get the root column for this variant.
|
Key |
getStripeKey(long stripe)
Get the local key for a stripe's data or footer.
|
List<StripeStatistics> |
getStripeStatistics(boolean[] columns,
InStream.StreamOptions compression,
ReaderImpl reader)
Decrypt the raw data and return the list of the stripe statistics for this
variant.
|
long |
getStripeStatisticsLength() |
int |
getVariantId()
Get the encryption variant id within the file.
|
int |
hashCode() |
public ReaderEncryptionKey getKeyDescription()
EncryptionVariant
getKeyDescription
in interface EncryptionVariant
public TypeDescription getRoot()
EncryptionVariant
getRoot
in interface EncryptionVariant
public int getVariantId()
EncryptionVariant
getVariantId
in interface EncryptionVariant
public Key getFileFooterKey() throws IOException
EncryptionVariant
getFileFooterKey
in interface EncryptionVariant
IOException
public Key getStripeKey(long stripe) throws IOException
EncryptionVariant
getStripeKey
in interface EncryptionVariant
stripe
- the stripe within the file (0 to N-1)IOException
public int compareTo(@NotNull @NotNull EncryptionVariant other)
compareTo
in interface Comparable<EncryptionVariant>
public long getStripeStatisticsLength()
public List<StripeStatistics> getStripeStatistics(boolean[] columns, InStream.StreamOptions compression, ReaderImpl reader) throws IOException
columns
- true for the columns that should be includedcompression
- the compression optionsIOException
Copyright © 2013–2023 The Apache Software Foundation. All rights reserved.