public abstract class AbstractDwrfEncryptionInformationSource extends Object implements EncryptionInformationSource
| Constructor and Description |
|---|
AbstractDwrfEncryptionInformationSource() |
public AbstractDwrfEncryptionInformationSource()
public Optional<Map<String,EncryptionInformation>> getReadEncryptionInformation(ConnectorSession session, Table table, Optional<Set<HiveColumnHandle>> requestedColumns, Map<String,Partition> partitions)
EncryptionInformationSourcegetReadEncryptionInformation in interface EncryptionInformationSourcesession - 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.protected abstract Map<String,EncryptionInformation> getReadEncryptionInformationInternal(ConnectorSession session, Table table, Optional<Set<HiveColumnHandle>> requestedColumns, Map<String,Partition> partitions, Map<String,String> fieldToKeyReference, DwrfTableEncryptionProperties encryptionProperties)
public Optional<EncryptionInformation> getReadEncryptionInformation(ConnectorSession session, Table table, Optional<Set<HiveColumnHandle>> requestedColumns)
EncryptionInformationSourcegetReadEncryptionInformation in interface EncryptionInformationSourcesession - 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.protected abstract EncryptionInformation getReadEncryptionInformationInternal(ConnectorSession session, Table table, Optional<Set<HiveColumnHandle>> requestedColumns, Map<String,String> fieldToKeyReference, DwrfTableEncryptionProperties encryptionProperties)
public Optional<EncryptionInformation> getWriteEncryptionInformation(ConnectorSession session, TableEncryptionProperties tableEncryptionProperties, String dbName, String tableName)
EncryptionInformationSourcegetWriteEncryptionInformation in interface EncryptionInformationSourcesession - 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.protected abstract EncryptionInformation getWriteEncryptionInformationInternal(ConnectorSession session, DwrfTableEncryptionProperties tableEncryptionProperties, String dbName, String tableName)
Copyright © 2012–2023. All rights reserved.