public interface EncryptionInformationSource
EncryptionMetadata if the passed in
Table satisfies the criteria for the implementation.| Modifier and Type | Method and Description |
|---|---|
Optional<EncryptionInformation> |
getReadEncryptionInformation(ConnectorSession session,
Table table,
Optional<Set<HiveColumnHandle>> requestedColumns)
Return encryption information for an unpartitioned table
|
Optional<Map<String,EncryptionInformation>> |
getReadEncryptionInformation(ConnectorSession session,
Table table,
Optional<Set<HiveColumnHandle>> requestedColumns,
Map<String,Partition> partitions)
Return encryption for a partitioned table
|
Optional<EncryptionInformation> |
getWriteEncryptionInformation(ConnectorSession session,
TableEncryptionProperties tableEncryptionProperties,
String dbName,
String tableName)
Return information required for writing to a table.
|
Optional<Map<String,EncryptionInformation>> getReadEncryptionInformation(ConnectorSession session, Table table, Optional<Set<HiveColumnHandle>> requestedColumns, Map<String,Partition> partitions)
session - Session object for the associated querytable - Table informationrequestedColumns - The columns that the query is requesting access to. The implementations can use this to only return information
for the requested columnspartitions - Map from partition names to the column objectsOptional.empty() if it does not have any
encryption information available for the given table and partitions, either due to the format or the table not having any encrypted
data.Optional<EncryptionInformation> getReadEncryptionInformation(ConnectorSession session, Table table, Optional<Set<HiveColumnHandle>> requestedColumns)
session - Session object for the associated querytable - Table informationrequestedColumns - The columns that the query is requesting access to. The implementations can use this to only return information
for the requested columnsOptional.empty() if it does not have any
encryption information available for the given table, either due to the format or the table not having any encrypted data.Optional<EncryptionInformation> getWriteEncryptionInformation(ConnectorSession session, TableEncryptionProperties tableEncryptionProperties, String dbName, String tableName)
session - Session object for the associated querytableEncryptionProperties - Table encryption informationdbName - database nametableName - table nameOptional.empty() if it does not have any
encryption information available for the given table, either due to the format or the table not having any encrypted data.Copyright © 2012–2023. All rights reserved.