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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
int
compareTo
(@NotNull EncryptionKey other) boolean
The encryption algorithm for this key.The columns that are encrypted with this key.int
getId()
The name of the key.int
The version of the key.int
hashCode()
boolean
Is the key available to this user?void
setId
(int id) void
toString()
-
Constructor Details
-
WriterEncryptionKey
-
-
Method Details
-
addRoot
-
getMetadata
-
setId
public void setId(int id) -
getKeyName
Description copied from interface:EncryptionKey
The name of the key.- Specified by:
getKeyName
in interfaceEncryptionKey
- Returns:
- the name
-
getKeyVersion
public int getKeyVersion()Description copied from interface:EncryptionKey
The version of the key.- Specified by:
getKeyVersion
in interfaceEncryptionKey
- Returns:
- the version, which for most KeyProviders start at 0.
-
getAlgorithm
Description copied from interface:EncryptionKey
The encryption algorithm for this key.- Specified by:
getAlgorithm
in interfaceEncryptionKey
- Returns:
- the encryption algorithm
-
getEncryptionRoots
Description copied from interface:EncryptionKey
The columns that are encrypted with this key.- Specified by:
getEncryptionRoots
in interfaceEncryptionKey
- Returns:
- the list of columns
-
isAvailable
public boolean isAvailable()Description copied from interface:EncryptionKey
Is the key available to this user?- Specified by:
isAvailable
in interfaceEncryptionKey
- Returns:
- true if the key is available
-
getId
public int getId() -
sortRoots
public void sortRoots() -
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareTo
in interfaceComparable<EncryptionKey>
-
toString
-