| Package | Description |
|---|---|
| com.facebook.presto.spi | |
| com.facebook.presto.spi.connector | |
| com.facebook.presto.spi.connector.classloader | |
| com.facebook.presto.spi.security |
| Modifier and Type | Method and Description |
|---|---|
SchemaTableName |
ConnectorViewDefinition.getName() |
SchemaTableName |
CatalogSchemaTableName.getSchemaTableName() |
SchemaTableName |
ConnectorTableMetadata.getTable() |
SchemaTableName |
TableNotFoundException.getTableName() |
SchemaTableName |
ConnectorMaterializedViewDefinition.TableColumn.getTableName() |
SchemaTableName |
ColumnNotFoundException.getTableName() |
SchemaTableName |
ViewNotFoundException.getViewName() |
SchemaTableName |
MaterializedViewNotFoundException.getViewName() |
SchemaTableName |
SchemaTablePrefix.toSchemaTableName() |
static SchemaTableName |
SchemaTableName.valueOf(String schemaTableName) |
| Modifier and Type | Method and Description |
|---|---|
List<SchemaTableName> |
ConnectorMaterializedViewDefinition.getBaseTables() |
List<SchemaTableName> |
ConnectorMaterializedViewDefinition.getBaseTablesOnOuterJoinSide() |
Map<String,Map<SchemaTableName,String>> |
ConnectorMaterializedViewDefinition.getColumnMappingsAsMap() |
Map<String,Map<SchemaTableName,String>> |
ConnectorMaterializedViewDefinition.getDirectColumnMappingsAsMap() |
Map<SchemaTableName,MaterializedViewStatus.MaterializedDataPredicates> |
MaterializedViewStatus.getPartitionsFromBaseTables() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
SchemaTablePrefix.matches(SchemaTableName schemaTableName) |
| Modifier and Type | Method and Description |
|---|---|
default Set<SchemaTableName> |
ConnectorAccessControl.filterTables(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context,
Set<SchemaTableName> tableNames)
Filter the list of tables and views to those visible to the identity.
|
default Optional<List<SchemaTableName>> |
ConnectorMetadata.getReferencedMaterializedViews(ConnectorSession session,
SchemaTableName tableName)
Gets the referenced materialized views for a give table
|
default Map<SchemaTableName,ConnectorViewDefinition> |
ConnectorMetadata.getViews(ConnectorSession session,
SchemaTablePrefix prefix)
Gets the view data for views that match the specified table prefix.
|
Map<SchemaTableName,List<ColumnMetadata>> |
ConnectorMetadata.listTableColumns(ConnectorSession session,
SchemaTablePrefix prefix)
Gets the metadata for all columns that match the specified table prefix.
|
default List<SchemaTableName> |
ConnectorMetadata.listTables(ConnectorSession session,
Optional<String> schemaName)
List table names, possibly filtered by schema.
|
default List<SchemaTableName> |
ConnectorMetadata.listTables(ConnectorSession session,
String schemaNameOrNull)
Deprecated.
|
default List<SchemaTableName> |
ConnectorMetadata.listViews(ConnectorSession session,
Optional<String> schemaName) |
default List<SchemaTableName> |
ConnectorMetadata.listViews(ConnectorSession session,
String schemaNameOrNull)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
default void |
ConnectorAccessControl.checkCanAddColumn(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context,
SchemaTableName tableName)
Check if identity is allowed to add columns to the specified table in this catalog.
|
default void |
ConnectorAccessControl.checkCanCreateTable(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context,
SchemaTableName tableName)
Check if identity is allowed to create the specified table in this catalog.
|
default void |
ConnectorAccessControl.checkCanCreateView(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context,
SchemaTableName viewName)
Check if identity is allowed to create the specified view in this catalog.
|
default void |
ConnectorAccessControl.checkCanCreateViewWithSelectFromColumns(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context,
SchemaTableName tableName,
Set<String> columnNames)
Check if identity is allowed to create a view that selects from the specified columns in a relation.
|
default void |
ConnectorAccessControl.checkCanDeleteFromTable(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context,
SchemaTableName tableName)
Check if identity is allowed to delete from the specified table in this catalog.
|
default void |
ConnectorAccessControl.checkCanDropColumn(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context,
SchemaTableName tableName)
Check if identity is allowed to drop columns from the specified table in this catalog.
|
default void |
ConnectorAccessControl.checkCanDropTable(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context,
SchemaTableName tableName)
Check if identity is allowed to drop the specified table in this catalog.
|
default void |
ConnectorAccessControl.checkCanDropView(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context,
SchemaTableName viewName)
Check if identity is allowed to drop the specified view in this catalog.
|
default void |
ConnectorAccessControl.checkCanGrantTablePrivilege(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context,
Privilege privilege,
SchemaTableName tableName,
PrestoPrincipal grantee,
boolean withGrantOption)
Check if identity is allowed to grant to any other user the specified privilege on the specified table.
|
default void |
ConnectorAccessControl.checkCanInsertIntoTable(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context,
SchemaTableName tableName)
Check if identity is allowed to insert into the specified table in this catalog.
|
default void |
ConnectorAccessControl.checkCanRenameColumn(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context,
SchemaTableName tableName)
Check if identity is allowed to rename a column in the specified table in this catalog.
|
default void |
ConnectorAccessControl.checkCanRenameTable(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context,
SchemaTableName tableName,
SchemaTableName newTableName)
Check if identity is allowed to rename the specified table in this catalog.
|
default void |
ConnectorAccessControl.checkCanRevokeTablePrivilege(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context,
Privilege privilege,
SchemaTableName tableName,
PrestoPrincipal revokee,
boolean grantOptionFor)
Check if identity is allowed to revoke the specified privilege on the specified table from any user.
|
default void |
ConnectorAccessControl.checkCanSelectFromColumns(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context,
SchemaTableName tableName,
Set<Subfield> columnOrSubfieldNames)
Check if identity is allowed to select from the specified columns.
|
default void |
ConnectorAccessControl.checkCanTruncateTable(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context,
SchemaTableName tableName)
Check if identity is allowed to truncate the specified table in this catalog.
|
default void |
ConnectorMetadata.dropMaterializedView(ConnectorSession session,
SchemaTableName viewName)
Drop the specified materialized view.
|
default void |
ConnectorMetadata.dropView(ConnectorSession session,
SchemaTableName viewName)
Drop the specified view.
|
default Optional<ConnectorMaterializedViewDefinition> |
ConnectorMetadata.getMaterializedView(ConnectorSession session,
SchemaTableName viewName)
Gets the materialized view data for the specified materialized view name.
|
default MaterializedViewStatus |
ConnectorMetadata.getMaterializedViewStatus(ConnectorSession session,
SchemaTableName materializedViewName) |
default MaterializedViewStatus |
ConnectorMetadata.getMaterializedViewStatus(ConnectorSession session,
SchemaTableName materializedViewName,
TupleDomain<String> baseQueryDomain)
Get the materialized view status to inform the engine how much data has been materialized in the view
|
default Optional<List<SchemaTableName>> |
ConnectorMetadata.getReferencedMaterializedViews(ConnectorSession session,
SchemaTableName tableName)
Gets the referenced materialized views for a give table
|
default String |
ConnectorCommitHandle.getSerializedCommitOutputForRead(SchemaTableName table) |
default String |
ConnectorCommitHandle.getSerializedCommitOutputForWrite(SchemaTableName table) |
default Optional<SystemTable> |
ConnectorMetadata.getSystemTable(ConnectorSession session,
SchemaTableName tableName)
Returns the system table for the specified table name, if one exists.
|
ConnectorTableHandle |
ConnectorMetadata.getTableHandle(ConnectorSession session,
SchemaTableName tableName)
Returns a table handle for the specified table name, or null if the connector does not contain the table.
|
default ConnectorTableHandle |
ConnectorMetadata.getTableHandleForStatisticsCollection(ConnectorSession session,
SchemaTableName tableName,
Map<String,Object> analyzeProperties)
Returns a table handle for the specified table name, or null if the connector does not contain the table.
|
default void |
ConnectorMetadata.grantTablePrivileges(ConnectorSession session,
SchemaTableName tableName,
Set<Privilege> privileges,
PrestoPrincipal grantee,
boolean grantOption)
Grants the specified privilege to the specified user on the specified table
|
default boolean |
ConnectorCommitHandle.hasCommitOutput(SchemaTableName table) |
default void |
ConnectorMetadata.renameTable(ConnectorSession session,
ConnectorTableHandle tableHandle,
SchemaTableName newTableName)
Rename the specified table
|
default void |
ConnectorMetadata.revokeTablePrivileges(ConnectorSession session,
SchemaTableName tableName,
Set<Privilege> privileges,
PrestoPrincipal grantee,
boolean grantOption)
Revokes the specified privilege on the specified table from the specified user
|
| Modifier and Type | Method and Description |
|---|---|
default Set<SchemaTableName> |
ConnectorAccessControl.filterTables(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context,
Set<SchemaTableName> tableNames)
Filter the list of tables and views to those visible to the identity.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ClassLoaderSafeConnectorMetadata.dropMaterializedView(ConnectorSession session,
SchemaTableName viewName) |
void |
ClassLoaderSafeConnectorMetadata.dropView(ConnectorSession session,
SchemaTableName viewName) |
Optional<ConnectorMaterializedViewDefinition> |
ClassLoaderSafeConnectorMetadata.getMaterializedView(ConnectorSession session,
SchemaTableName viewName) |
MaterializedViewStatus |
ClassLoaderSafeConnectorMetadata.getMaterializedViewStatus(ConnectorSession session,
SchemaTableName materializedViewName) |
MaterializedViewStatus |
ClassLoaderSafeConnectorMetadata.getMaterializedViewStatus(ConnectorSession session,
SchemaTableName materializedViewName,
TupleDomain<String> baseQueryDomain) |
Optional<List<SchemaTableName>> |
ClassLoaderSafeConnectorMetadata.getReferencedMaterializedViews(ConnectorSession session,
SchemaTableName tableName) |
Optional<SystemTable> |
ClassLoaderSafeConnectorMetadata.getSystemTable(ConnectorSession session,
SchemaTableName tableName) |
ConnectorTableHandle |
ClassLoaderSafeConnectorMetadata.getTableHandle(ConnectorSession session,
SchemaTableName tableName) |
ConnectorTableHandle |
ClassLoaderSafeConnectorMetadata.getTableHandleForStatisticsCollection(ConnectorSession session,
SchemaTableName tableName,
Map<String,Object> analyzeProperties) |
void |
ClassLoaderSafeConnectorMetadata.grantTablePrivileges(ConnectorSession session,
SchemaTableName tableName,
Set<Privilege> privileges,
PrestoPrincipal grantee,
boolean grantOption) |
void |
ClassLoaderSafeConnectorMetadata.renameTable(ConnectorSession session,
ConnectorTableHandle tableHandle,
SchemaTableName newTableName) |
void |
ClassLoaderSafeConnectorMetadata.revokeTablePrivileges(ConnectorSession session,
SchemaTableName tableName,
Set<Privilege> privileges,
PrestoPrincipal grantee,
boolean grantOption) |
| Modifier and Type | Method and Description |
|---|---|
SchemaTableName |
GrantInfo.getSchemaTableName() |
| Modifier and Type | Method and Description |
|---|---|
default Set<SchemaTableName> |
SystemAccessControl.filterTables(Identity identity,
AccessControlContext context,
String catalogName,
Set<SchemaTableName> tableNames)
Filter the list of tables and views to those visible to the identity.
|
| Modifier and Type | Method and Description |
|---|---|
default Set<SchemaTableName> |
SystemAccessControl.filterTables(Identity identity,
AccessControlContext context,
String catalogName,
Set<SchemaTableName> tableNames)
Filter the list of tables and views to those visible to the identity.
|
| Constructor and Description |
|---|
GrantInfo(PrivilegeInfo privilegeInfo,
PrestoPrincipal grantee,
SchemaTableName schemaTableName,
Optional<PrestoPrincipal> grantor,
Optional<Boolean> withHierarchy) |
Copyright © 2012–2022. All rights reserved.