public class WriterEncryptionVariant extends Object implements EncryptionVariant
Constructor and Description |
---|
WriterEncryptionVariant(WriterEncryptionKey key,
TypeDescription root,
LocalKey columnKey) |
Modifier and Type | Method and Description |
---|---|
void |
addEncoding(OrcProto.ColumnEncoding encoding) |
void |
clearEncodings() |
void |
clearFileStatistics() |
int |
compareTo(@NotNull EncryptionVariant other) |
boolean |
equals(Object other) |
List<OrcProto.ColumnEncoding> |
getEncodings() |
Key |
getFileFooterKey()
Get the local key for the footer.
|
OrcProto.FileStatistics |
getFileStatistics() |
WriterEncryptionKey |
getKeyDescription()
Get the key description for this column.
|
LocalKey |
getMaterial() |
TypeDescription |
getRoot()
Get the root column for this variant.
|
Key |
getStripeKey(long stripe)
Get the local key for a stripe's data or footer.
|
int |
getVariantId()
Get the encryption variant id within the file.
|
int |
hashCode() |
void |
setId(int id) |
public WriterEncryptionVariant(WriterEncryptionKey key, TypeDescription root, LocalKey columnKey)
public WriterEncryptionKey getKeyDescription()
EncryptionVariant
getKeyDescription
in interface EncryptionVariant
public TypeDescription getRoot()
EncryptionVariant
getRoot
in interface EncryptionVariant
public void setId(int id)
public int getVariantId()
EncryptionVariant
getVariantId
in interface EncryptionVariant
public Key getFileFooterKey()
EncryptionVariant
getFileFooterKey
in interface EncryptionVariant
public Key getStripeKey(long stripe)
EncryptionVariant
getStripeKey
in interface EncryptionVariant
stripe
- the stripe within the file (0 to N-1)public LocalKey getMaterial()
public void clearFileStatistics()
public OrcProto.FileStatistics getFileStatistics()
public void addEncoding(OrcProto.ColumnEncoding encoding)
public List<OrcProto.ColumnEncoding> getEncodings()
public void clearEncodings()
public int compareTo(@NotNull @NotNull EncryptionVariant other)
compareTo
in interface Comparable<EncryptionVariant>
Copyright © 2013–2023 The Apache Software Foundation. All rights reserved.