Package org.apache.orc.impl.writer
Class WriterEncryptionKey
java.lang.Object
org.apache.orc.impl.writer.WriterEncryptionKey
- All Implemented Interfaces:
Comparable<EncryptionKey>,EncryptionKey
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidintcompareTo(@NotNull EncryptionKey other) booleanThe encryption algorithm for this key.The columns that are encrypted with this key.intgetId()The name of the key.intThe version of the key.inthashCode()booleanIs the key available to this user?voidsetId(int id) voidtoString()
-
Constructor Details
-
WriterEncryptionKey
-
-
Method Details
-
addRoot
-
getMetadata
-
setId
public void setId(int id) -
getKeyName
Description copied from interface:EncryptionKeyThe name of the key.- Specified by:
getKeyNamein interfaceEncryptionKey- Returns:
- the name
-
getKeyVersion
public int getKeyVersion()Description copied from interface:EncryptionKeyThe version of the key.- Specified by:
getKeyVersionin interfaceEncryptionKey- Returns:
- the version, which for most KeyProviders start at 0.
-
getAlgorithm
Description copied from interface:EncryptionKeyThe encryption algorithm for this key.- Specified by:
getAlgorithmin interfaceEncryptionKey- Returns:
- the encryption algorithm
-
getEncryptionRoots
Description copied from interface:EncryptionKeyThe columns that are encrypted with this key.- Specified by:
getEncryptionRootsin interfaceEncryptionKey- Returns:
- the list of columns
-
isAvailable
public boolean isAvailable()Description copied from interface:EncryptionKeyIs the key available to this user?- Specified by:
isAvailablein interfaceEncryptionKey- Returns:
- true if the key is available
-
getId
public int getId() -
sortRoots
public void sortRoots() -
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareToin interfaceComparable<EncryptionKey>
-
toString
-