| Package | Description |
|---|---|
| com.facebook.presto.spi | |
| com.facebook.presto.spi.connector | |
| com.facebook.presto.spi.connector.classloader |
| Modifier and Type | Method and Description |
|---|---|
ConnectorTableHandle |
TableHandle.getConnectorHandle() |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends ConnectorTableHandle> |
ConnectorHandleResolver.getTableHandleClass() |
| 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 |
|---|---|
default ConnectorTableHandle |
ConnectorMetadata.beginDelete(ConnectorSession session,
ConnectorTableHandle tableHandle)
Begin delete query
|
default ConnectorTableHandle |
ConnectorMetadata.beginStatisticsCollection(ConnectorSession session,
ConnectorTableHandle tableHandle)
Begin statistics collection
|
default ConnectorTableHandle |
ConnectorMetadata.createTemporaryTable(ConnectorSession session,
List<ColumnMetadata> columns,
Optional<ConnectorPartitioningMetadata> partitioningMetadata)
Creates a temporary table with optional partitioning requirements.
|
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.
|
| Modifier and Type | Method and Description |
|---|---|
default void |
ConnectorMetadata.addColumn(ConnectorSession session,
ConnectorTableHandle tableHandle,
ColumnMetadata column)
Add the specified column
|
default ConnectorTableHandle |
ConnectorMetadata.beginDelete(ConnectorSession session,
ConnectorTableHandle tableHandle)
Begin delete query
|
default ConnectorInsertTableHandle |
ConnectorMetadata.beginInsert(ConnectorSession session,
ConnectorTableHandle tableHandle)
Begin insert query
|
default ConnectorInsertTableHandle |
ConnectorMetadata.beginRefreshMaterializedView(ConnectorSession session,
ConnectorTableHandle tableHandle)
Begin refresh materialized view
|
default ConnectorTableHandle |
ConnectorMetadata.beginStatisticsCollection(ConnectorSession session,
ConnectorTableHandle tableHandle)
Begin statistics collection
|
default void |
ConnectorMetadata.dropColumn(ConnectorSession session,
ConnectorTableHandle tableHandle,
ColumnHandle column)
Drop the specified column
|
default void |
ConnectorMetadata.dropTable(ConnectorSession session,
ConnectorTableHandle tableHandle)
Drops the specified table
|
default void |
ConnectorMetadata.finishDelete(ConnectorSession session,
ConnectorTableHandle tableHandle,
Collection<io.airlift.slice.Slice> fragments)
Finish delete query
|
default void |
ConnectorMetadata.finishStatisticsCollection(ConnectorSession session,
ConnectorTableHandle tableHandle,
Collection<ComputedStatistics> computedStatistics)
Finish statistics collection
|
Map<String,ColumnHandle> |
ConnectorMetadata.getColumnHandles(ConnectorSession session,
ConnectorTableHandle tableHandle)
Gets all of the columns on the specified table, or an empty map if the columns can not be enumerated.
|
ColumnMetadata |
ConnectorMetadata.getColumnMetadata(ConnectorSession session,
ConnectorTableHandle tableHandle,
ColumnHandle columnHandle)
Gets the metadata for the specified table column.
|
default Optional<ConnectorNewTableLayout> |
ConnectorMetadata.getInsertLayout(ConnectorSession session,
ConnectorTableHandle tableHandle)
Get the physical layout for a inserting into an existing table.
|
default Optional<ConnectorNewTableLayout> |
ConnectorMetadata.getPreferredShuffleLayoutForInsert(ConnectorSession session,
ConnectorTableHandle tableHandle)
A connector can have preferred shuffle layout for table write.
|
List<ConnectorTableLayoutResult> |
ConnectorMetadata.getTableLayouts(ConnectorSession session,
ConnectorTableHandle table,
Constraint<ColumnHandle> constraint,
Optional<Set<ColumnHandle>> desiredColumns)
Return a list of table layouts that satisfy the given constraint.
|
ConnectorTableMetadata |
ConnectorMetadata.getTableMetadata(ConnectorSession session,
ConnectorTableHandle table)
Return the metadata for the specified table handle.
|
default TableStatistics |
ConnectorMetadata.getTableStatistics(ConnectorSession session,
ConnectorTableHandle tableHandle,
Optional<ConnectorTableLayoutHandle> tableLayoutHandle,
List<ColumnHandle> columnHandles,
Constraint<ColumnHandle> constraint)
Get statistics for table for given columns and filtering constraint.
|
default ColumnHandle |
ConnectorMetadata.getUpdateRowIdColumnHandle(ConnectorSession session,
ConnectorTableHandle tableHandle)
Get the column handle that will generate row IDs for the delete operation.
|
default boolean |
ConnectorMetadata.isLegacyGetLayoutSupported(ConnectorSession session,
ConnectorTableHandle tableHandle)
Deprecated.
|
default OptionalLong |
ConnectorMetadata.metadataDelete(ConnectorSession session,
ConnectorTableHandle tableHandle,
ConnectorTableLayoutHandle tableLayoutHandle)
Delete the provided table layout
|
default void |
ConnectorMetadata.renameColumn(ConnectorSession session,
ConnectorTableHandle tableHandle,
ColumnHandle source,
String target)
Rename the specified column
|
default void |
ConnectorMetadata.renameTable(ConnectorSession session,
ConnectorTableHandle tableHandle,
SchemaTableName newTableName)
Rename the specified table
|
default Optional<ConnectorResolvedIndex> |
ConnectorMetadata.resolveIndex(ConnectorSession session,
ConnectorTableHandle tableHandle,
Set<ColumnHandle> indexableColumns,
Set<ColumnHandle> outputColumns,
TupleDomain<ColumnHandle> tupleDomain)
Try to locate a table index that can lookup results by indexableColumns and provide the requested outputColumns.
|
default boolean |
ConnectorMetadata.supportsMetadataDelete(ConnectorSession session,
ConnectorTableHandle tableHandle,
Optional<ConnectorTableLayoutHandle> tableLayoutHandle) |
default TupleDomain<ColumnHandle> |
ConnectorMetadata.toExplainIOConstraints(ConnectorSession session,
ConnectorTableHandle tableHandle,
TupleDomain<ColumnHandle> constraints)
Returns a TupleDomain of constraints that is suitable for ExplainIO
|
default void |
ConnectorMetadata.truncateTable(ConnectorSession session,
ConnectorTableHandle tableHandle)
Truncates the specified table
|
| Modifier and Type | Method and Description |
|---|---|
ConnectorTableHandle |
ClassLoaderSafeConnectorMetadata.beginDelete(ConnectorSession session,
ConnectorTableHandle tableHandle) |
ConnectorTableHandle |
ClassLoaderSafeConnectorMetadata.beginStatisticsCollection(ConnectorSession session,
ConnectorTableHandle tableHandle) |
ConnectorTableHandle |
ClassLoaderSafeConnectorMetadata.createTemporaryTable(ConnectorSession session,
List<ColumnMetadata> columns,
Optional<ConnectorPartitioningMetadata> partitioningMetadata) |
ConnectorTableHandle |
ClassLoaderSafeConnectorMetadata.getTableHandle(ConnectorSession session,
SchemaTableName tableName) |
ConnectorTableHandle |
ClassLoaderSafeConnectorMetadata.getTableHandleForStatisticsCollection(ConnectorSession session,
SchemaTableName tableName,
Map<String,Object> analyzeProperties) |
Copyright © 2012–2022. All rights reserved.