public abstract class AbstractDwrfEncryptionInformationSource extends Object implements EncryptionInformationSource
| Constructor and Description |
|---|
AbstractDwrfEncryptionInformationSource() |
| Modifier and Type | Method and Description |
|---|---|
Optional<EncryptionInformation> |
getReadEncryptionInformation(com.facebook.presto.spi.ConnectorSession session,
com.facebook.presto.hive.metastore.Table table,
Optional<Set<HiveColumnHandle>> requestedColumns)
Return encryption information for an unpartitioned table
|
Optional<Map<String,EncryptionInformation>> |
getReadEncryptionInformation(com.facebook.presto.spi.ConnectorSession session,
com.facebook.presto.hive.metastore.Table table,
Optional<Set<HiveColumnHandle>> requestedColumns,
Map<String,com.facebook.presto.hive.metastore.Partition> partitions)
Return encryption for a partitioned table
|
protected abstract Map<String,EncryptionInformation> |
getReadEncryptionInformationInternal(com.facebook.presto.spi.ConnectorSession session,
com.facebook.presto.hive.metastore.Table table,
Optional<Set<HiveColumnHandle>> requestedColumns,
Map<String,com.facebook.presto.hive.metastore.Partition> partitions,
Map<String,String> fieldToKeyReference,
DwrfTableEncryptionProperties encryptionProperties) |
protected abstract EncryptionInformation |
getReadEncryptionInformationInternal(com.facebook.presto.spi.ConnectorSession session,
com.facebook.presto.hive.metastore.Table table,
Optional<Set<HiveColumnHandle>> requestedColumns,
Map<String,String> fieldToKeyReference,
DwrfTableEncryptionProperties encryptionProperties) |
Optional<EncryptionInformation> |
getWriteEncryptionInformation(com.facebook.presto.spi.ConnectorSession session,
TableEncryptionProperties tableEncryptionProperties,
String dbName,
String tableName)
Return information required for writing to a table.
|
protected abstract EncryptionInformation |
getWriteEncryptionInformationInternal(com.facebook.presto.spi.ConnectorSession session,
DwrfTableEncryptionProperties tableEncryptionProperties,
String dbName,
String tableName) |
public AbstractDwrfEncryptionInformationSource()
public Optional<Map<String,EncryptionInformation>> getReadEncryptionInformation(com.facebook.presto.spi.ConnectorSession session, com.facebook.presto.hive.metastore.Table table, Optional<Set<HiveColumnHandle>> requestedColumns, Map<String,com.facebook.presto.hive.metastore.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(com.facebook.presto.spi.ConnectorSession session, com.facebook.presto.hive.metastore.Table table, Optional<Set<HiveColumnHandle>> requestedColumns, Map<String,com.facebook.presto.hive.metastore.Partition> partitions, Map<String,String> fieldToKeyReference, DwrfTableEncryptionProperties encryptionProperties)
public Optional<EncryptionInformation> getReadEncryptionInformation(com.facebook.presto.spi.ConnectorSession session, com.facebook.presto.hive.metastore.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(com.facebook.presto.spi.ConnectorSession session, com.facebook.presto.hive.metastore.Table table, Optional<Set<HiveColumnHandle>> requestedColumns, Map<String,String> fieldToKeyReference, DwrfTableEncryptionProperties encryptionProperties)
public Optional<EncryptionInformation> getWriteEncryptionInformation(com.facebook.presto.spi.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(com.facebook.presto.spi.ConnectorSession session, DwrfTableEncryptionProperties tableEncryptionProperties, String dbName, String tableName)
Copyright © 2012–2023. All rights reserved.