| 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 |
ColumnNotFoundException.getTableName() |
SchemaTableName |
ViewNotFoundException.getViewName() |
SchemaTableName |
SchemaTablePrefix.toSchemaTableName() |
| 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,
Set<SchemaTableName> tableNames)
Filter the list of tables and views to those visible to the identity.
|
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,
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,
SchemaTableName tableName)
Check if identity is allowed to create the specified table in this catalog.
|
default void |
ConnectorAccessControl.checkCanCreateView(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
SchemaTableName viewName)
Check if identity is allowed to create the specified view in this catalog.
|
default void |
ConnectorAccessControl.checkCanCreateViewWithSelectFromColumns(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
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,
SchemaTableName tableName)
Check if identity is allowed to delete from the specified table in this catalog.
|
default void |
ConnectorAccessControl.checkCanDropColumn(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
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,
SchemaTableName tableName)
Check if identity is allowed to drop the specified table in this catalog.
|
default void |
ConnectorAccessControl.checkCanDropView(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
SchemaTableName viewName)
Check if identity is allowed to drop the specified view in this catalog.
|
default void |
ConnectorAccessControl.checkCanGrantTablePrivilege(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
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,
SchemaTableName tableName)
Check if identity is allowed to insert into the specified table in this catalog.
|
default void |
ConnectorAccessControl.checkCanRenameColumn(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
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,
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,
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,
SchemaTableName tableName,
Set<String> columnNames)
Check if identity is allowed to select from the specified columns in a relation.
|
default void |
ConnectorMetadata.createView(ConnectorSession session,
SchemaTableName viewName,
String viewData,
boolean replace)
Create the specified view.
|
default void |
ConnectorMetadata.dropView(ConnectorSession session,
SchemaTableName viewName)
Drop the specified view.
|
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 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,
Set<SchemaTableName> tableNames)
Filter the list of tables and views to those visible to the identity.
|
| Modifier and Type | Method and Description |
|---|---|
Map<SchemaTableName,ConnectorViewDefinition> |
ClassLoaderSafeConnectorMetadata.getViews(ConnectorSession session,
SchemaTablePrefix prefix) |
Map<SchemaTableName,List<ColumnMetadata>> |
ClassLoaderSafeConnectorMetadata.listTableColumns(ConnectorSession session,
SchemaTablePrefix prefix) |
List<SchemaTableName> |
ClassLoaderSafeConnectorMetadata.listTables(ConnectorSession session,
Optional<String> schemaName) |
List<SchemaTableName> |
ClassLoaderSafeConnectorMetadata.listTables(ConnectorSession session,
String schemaNameOrNull) |
List<SchemaTableName> |
ClassLoaderSafeConnectorMetadata.listViews(ConnectorSession session,
Optional<String> schemaName) |
List<SchemaTableName> |
ClassLoaderSafeConnectorMetadata.listViews(ConnectorSession session,
String schemaNameOrNull) |
| Modifier and Type | Method and Description |
|---|---|
void |
ClassLoaderSafeConnectorMetadata.createView(ConnectorSession session,
SchemaTableName viewName,
String viewData,
boolean replace) |
void |
ClassLoaderSafeConnectorMetadata.dropView(ConnectorSession session,
SchemaTableName viewName) |
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,
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,
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–2019. All rights reserved.