| Package | Description |
|---|---|
| com.facebook.presto.spi | |
| com.facebook.presto.spi.connector | |
| com.facebook.presto.spi.connector.classloader |
| Modifier and Type | Method and Description |
|---|---|
ConnectorTransactionHandle |
TableHandle.getTransaction() |
| Modifier and Type | Method and Description |
|---|---|
default Class<? extends ConnectorTransactionHandle> |
ConnectorHandleResolver.getTransactionHandleClass() |
| Modifier and Type | Method and Description |
|---|---|
default RecordCursor |
SystemTable.cursor(ConnectorTransactionHandle transactionHandle,
ConnectorSession session,
TupleDomain<Integer> constraint)
Create a cursor for the data in this table.
|
default ConnectorPageSource |
SystemTable.pageSource(ConnectorTransactionHandle transactionHandle,
ConnectorSession session,
TupleDomain<Integer> constraint)
Create a page source for the data in this table.
|
| Constructor and Description |
|---|
TableHandle(ConnectorId connectorId,
ConnectorTableHandle connectorHandle,
ConnectorTransactionHandle transaction,
Optional<ConnectorTableLayoutHandle> layout) |
TableHandle(ConnectorId connectorId,
ConnectorTableHandle connectorHandle,
ConnectorTransactionHandle transaction,
Optional<ConnectorTableLayoutHandle> layout,
Optional<Supplier<TupleDomain<ColumnHandle>>> dynamicFilter) |
| Modifier and Type | Method and Description |
|---|---|
ConnectorTransactionHandle |
Connector.beginTransaction(IsolationLevel isolationLevel,
boolean readOnly) |
| 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.checkCanCreateRole(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context,
String role,
Optional<PrestoPrincipal> grantor) |
default void |
ConnectorAccessControl.checkCanCreateSchema(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context,
String schemaName)
Check if identity is allowed to create the specified schema 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.checkCanDropRole(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context,
String role) |
default void |
ConnectorAccessControl.checkCanDropSchema(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context,
String schemaName)
Check if identity is allowed to drop the specified schema 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.checkCanGrantRoles(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context,
Set<String> roles,
Set<PrestoPrincipal> grantees,
boolean withAdminOption,
Optional<PrestoPrincipal> grantor,
String catalogName) |
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.checkCanRenameSchema(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context,
String schemaName,
String newSchemaName)
Check if identity is allowed to rename the specified schema 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.checkCanRevokeRoles(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context,
Set<String> roles,
Set<PrestoPrincipal> grantees,
boolean adminOptionFor,
Optional<PrestoPrincipal> grantor,
String catalogName) |
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.checkCanSetCatalogSessionProperty(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context,
String propertyName)
Check if identity is allowed to set the specified property in this catalog.
|
default void |
ConnectorAccessControl.checkCanSetRole(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext accessControlContext,
String role,
String catalogName) |
default void |
ConnectorAccessControl.checkCanShowCurrentRoles(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context,
String catalogName)
Check if identity is allowed to show current roles on the specified catalog.
|
default void |
ConnectorAccessControl.checkCanShowRoleGrants(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context,
String catalogName)
Check if identity is allowed to show its own role grants on the specified catalog.
|
default void |
ConnectorAccessControl.checkCanShowRoles(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context,
String catalogName)
Check if identity is allowed to show roles on the specified catalog.
|
default void |
ConnectorAccessControl.checkCanShowSchemas(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context)
Check if identity is allowed to execute SHOW SCHEMAS in a catalog.
|
default void |
ConnectorAccessControl.checkCanShowTablesMetadata(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context,
String schemaName)
Check if identity is allowed to show metadata of tables by executing SHOW TABLES, SHOW GRANTS etc.
|
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 ConnectorCommitHandle |
Connector.commit(ConnectorTransactionHandle transactionHandle)
Commit the transaction.
|
ConnectorPageSink |
ConnectorPageSinkProvider.createPageSink(ConnectorTransactionHandle transactionHandle,
ConnectorSession session,
ConnectorInsertTableHandle insertTableHandle,
PageSinkContext pageSinkContext) |
ConnectorPageSink |
ConnectorPageSinkProvider.createPageSink(ConnectorTransactionHandle transactionHandle,
ConnectorSession session,
ConnectorOutputTableHandle outputTableHandle,
PageSinkContext pageSinkContext) |
default ConnectorPageSource |
ConnectorPageSourceProvider.createPageSource(ConnectorTransactionHandle transactionHandle,
ConnectorSession session,
ConnectorSplit split,
ConnectorTableLayoutHandle layout,
List<ColumnHandle> columns,
SplitContext splitContext) |
default ConnectorPageSource |
ConnectorPageSourceProvider.createPageSource(ConnectorTransactionHandle transactionHandle,
ConnectorSession session,
ConnectorSplit split,
List<ColumnHandle> columns,
SplitContext splitContext)
Deprecated.
|
default Set<String> |
ConnectorAccessControl.filterSchemas(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
AccessControlContext context,
Set<String> schemaNames)
Filter the list of schemas to those visible to the identity.
|
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.
|
int |
ConnectorNodePartitioningProvider.getBucketCount(ConnectorTransactionHandle transactionHandle,
ConnectorSession session,
ConnectorPartitioningHandle partitioningHandle) |
BucketFunction |
ConnectorNodePartitioningProvider.getBucketFunction(ConnectorTransactionHandle transactionHandle,
ConnectorSession session,
ConnectorPartitioningHandle partitioningHandle,
List<Type> partitionChannelTypes,
int bucketCount) |
ConnectorBucketNodeMap |
ConnectorNodePartitioningProvider.getBucketNodeMap(ConnectorTransactionHandle transactionHandle,
ConnectorSession session,
ConnectorPartitioningHandle partitioningHandle,
List<Node> sortedNodes) |
ConnectorIndex |
ConnectorIndexProvider.getIndex(ConnectorTransactionHandle transactionHandle,
ConnectorSession session,
ConnectorIndexHandle indexHandle,
List<ColumnHandle> lookupSchema,
List<ColumnHandle> outputSchema) |
ConnectorMetadata |
Connector.getMetadata(ConnectorTransactionHandle transactionHandle)
Guaranteed to be called at most once per transaction.
|
RecordSet |
ConnectorRecordSetProvider.getRecordSet(ConnectorTransactionHandle transactionHandle,
ConnectorSession session,
ConnectorSplit split,
List<? extends ColumnHandle> columns) |
ToIntFunction<ConnectorSplit> |
ConnectorNodePartitioningProvider.getSplitBucketFunction(ConnectorTransactionHandle transactionHandle,
ConnectorSession session,
ConnectorPartitioningHandle partitioningHandle) |
ConnectorSplitSource |
ConnectorSplitManager.getSplits(ConnectorTransactionHandle transactionHandle,
ConnectorSession session,
ConnectorTableLayoutHandle layout,
ConnectorSplitManager.SplitSchedulingContext splitSchedulingContext) |
default List<ConnectorPartitionHandle> |
ConnectorNodePartitioningProvider.listPartitionHandles(ConnectorTransactionHandle transactionHandle,
ConnectorSession session,
ConnectorPartitioningHandle partitioningHandle)
Returns a list of all partitions associated with the provided
partitioningHandle. |
default void |
Connector.rollback(ConnectorTransactionHandle transactionHandle)
Rollback the transaction.
|
Copyright © 2012–2022. All rights reserved.