Uses of Interface
io.trino.spi.connector.ConnectorTableHandle
Packages that use ConnectorTableHandle
-
Uses of ConnectorTableHandle in io.trino.spi.connector
Methods in io.trino.spi.connector that return ConnectorTableHandleModifier and TypeMethodDescriptiondefault ConnectorTableHandleConnectorMetadata.beginStatisticsCollection(ConnectorSession session, ConnectorTableHandle tableHandle) Begin statistics collectionConnectorAnalyzeMetadata.getTableHandle()ConnectorMergeTableHandle.getTableHandle()This method is required because theConnectorTableHandlereturned byConnectorMetadata.beginMerge(io.trino.spi.connector.ConnectorSession, io.trino.spi.connector.ConnectorTableHandle, io.trino.spi.connector.RetryMode)is in general different than the one passed to that method, but the updated handle must be made available toConnectorMetadata.finishMerge(io.trino.spi.connector.ConnectorSession, io.trino.spi.connector.ConnectorMergeTableHandle, java.util.List<io.trino.spi.connector.ConnectorTableHandle>, java.util.Collection<io.airlift.slice.Slice>, java.util.Collection<io.trino.spi.statistics.ComputedStatistics>)default ConnectorTableHandleConnectorMetadata.getTableHandle(ConnectorSession session, SchemaTableName tableName, Optional<ConnectorTableVersion> startVersion, Optional<ConnectorTableVersion> endVersion) Returns a table handle for the specified table name and version, ornulliftableNamerelation does not exist or is not a table (e.g. is a view, or a materialized view).default ConnectorTableHandleConnectorMetadata.makeCompatiblePartitioning(ConnectorSession session, ConnectorTableHandle tableHandle, ConnectorPartitioningHandle partitioningHandle) Return a table handle whose partitioning is converted to the provided partitioning handle, but otherwise identical to the provided table handle.Methods in io.trino.spi.connector that return types with arguments of type ConnectorTableHandleModifier and TypeMethodDescriptionConnectorMetadata.applyAggregation(ConnectorSession session, ConnectorTableHandle handle, List<AggregateFunction> aggregates, Map<String, ColumnHandle> assignments, List<List<ColumnHandle>> groupingSets) Attempt to push down the aggregates into the table.default Optional<ConnectorTableHandle> ConnectorMetadata.applyDelete(ConnectorSession session, ConnectorTableHandle handle) Attempt to push down a delete operation into the connector.ConnectorMetadata.applyFilter(ConnectorSession session, ConnectorTableHandle handle, Constraint constraint) Attempt to push down the provided constraint into the table.ConnectorMetadata.applyJoin(ConnectorSession session, JoinType joinType, ConnectorTableHandle left, ConnectorTableHandle right, ConnectorExpression joinCondition, Map<String, ColumnHandle> leftAssignments, Map<String, ColumnHandle> rightAssignments, JoinStatistics statistics) Attempt to push down the join operation.ConnectorMetadata.applyJoin(ConnectorSession session, JoinType joinType, ConnectorTableHandle left, ConnectorTableHandle right, List<JoinCondition> joinConditions, Map<String, ColumnHandle> leftAssignments, Map<String, ColumnHandle> rightAssignments, JoinStatistics statistics) Deprecated.ConnectorMetadata.applyLimit(ConnectorSession session, ConnectorTableHandle handle, long limit) Attempt to push down the provided limit into the table.ConnectorMetadata.applyProjection(ConnectorSession session, ConnectorTableHandle handle, List<ConnectorExpression> projections, Map<String, ColumnHandle> assignments) Attempt to push down the provided projections into the table.ConnectorMetadata.applySample(ConnectorSession session, ConnectorTableHandle handle, SampleType sampleType, double sampleRatio) Attempt to push down the sampling into the table.ConnectorMetadata.applyTableFunction(ConnectorSession session, ConnectorTableFunctionHandle handle) Attempt to push down the table function invocation into the connector.ConnectorMetadata.applyTopN(ConnectorSession session, ConnectorTableHandle handle, long topNCount, List<SortItem> sortItems, Map<String, ColumnHandle> assignments) Attempt to push down the TopN into the table scan.default Optional<ConnectorTableHandle> ConnectorMetadata.applyUpdate(ConnectorSession session, ConnectorTableHandle handle, Map<ColumnHandle, Constant> assignments) Attempt to push down an update operation into the connector.ConnectorMetadata.beginTableExecute(ConnectorSession session, ConnectorTableExecuteHandle tableExecuteHandle, ConnectorTableHandle updatedSourceTableHandle) Begin execution of table procedureMethods in io.trino.spi.connector with parameters of type ConnectorTableHandleModifier and TypeMethodDescriptiondefault voidConnectorMetadata.addColumn(ConnectorSession session, ConnectorTableHandle tableHandle, ColumnMetadata column) Add the specified columndefault voidConnectorMetadata.addField(ConnectorSession session, ConnectorTableHandle tableHandle, List<String> parentPath, String fieldName, Type type, boolean ignoreExisting) Add the specified field, potentially nested, to a row.default booleanConnectorMetadata.allowSplittingReadIntoMultipleSubQueries(ConnectorSession session, ConnectorTableHandle tableHandle) ConnectorMetadata.applyAggregation(ConnectorSession session, ConnectorTableHandle handle, List<AggregateFunction> aggregates, Map<String, ColumnHandle> assignments, List<List<ColumnHandle>> groupingSets) Attempt to push down the aggregates into the table.default Optional<ConnectorTableHandle> ConnectorMetadata.applyDelete(ConnectorSession session, ConnectorTableHandle handle) Attempt to push down a delete operation into the connector.ConnectorMetadata.applyFilter(ConnectorSession session, ConnectorTableHandle handle, Constraint constraint) Attempt to push down the provided constraint into the table.ConnectorMetadata.applyJoin(ConnectorSession session, JoinType joinType, ConnectorTableHandle left, ConnectorTableHandle right, ConnectorExpression joinCondition, Map<String, ColumnHandle> leftAssignments, Map<String, ColumnHandle> rightAssignments, JoinStatistics statistics) Attempt to push down the join operation.ConnectorMetadata.applyJoin(ConnectorSession session, JoinType joinType, ConnectorTableHandle left, ConnectorTableHandle right, List<JoinCondition> joinConditions, Map<String, ColumnHandle> leftAssignments, Map<String, ColumnHandle> rightAssignments, JoinStatistics statistics) Deprecated.ConnectorMetadata.applyLimit(ConnectorSession session, ConnectorTableHandle handle, long limit) Attempt to push down the provided limit into the table.ConnectorMetadata.applyProjection(ConnectorSession session, ConnectorTableHandle handle, List<ConnectorExpression> projections, Map<String, ColumnHandle> assignments) Attempt to push down the provided projections into the table.ConnectorMetadata.applySample(ConnectorSession session, ConnectorTableHandle handle, SampleType sampleType, double sampleRatio) Attempt to push down the sampling into the table.ConnectorMetadata.applyTableScanRedirect(ConnectorSession session, ConnectorTableHandle tableHandle) ConnectorMetadata.applyTopN(ConnectorSession session, ConnectorTableHandle handle, long topNCount, List<SortItem> sortItems, Map<String, ColumnHandle> assignments) Attempt to push down the TopN into the table scan.default Optional<ConnectorTableHandle> ConnectorMetadata.applyUpdate(ConnectorSession session, ConnectorTableHandle handle, Map<ColumnHandle, Constant> assignments) Attempt to push down an update operation into the connector.default ConnectorInsertTableHandleConnectorMetadata.beginInsert(ConnectorSession session, ConnectorTableHandle tableHandle, List<ColumnHandle> columns, RetryMode retryMode) Begin insert query.default ConnectorMergeTableHandleConnectorMetadata.beginMerge(ConnectorSession session, ConnectorTableHandle tableHandle, RetryMode retryMode) Deprecated.default ConnectorMergeTableHandleConnectorMetadata.beginMerge(ConnectorSession session, ConnectorTableHandle tableHandle, Map<Integer, Collection<ColumnHandle>> updateCaseColumns, RetryMode retryMode) Do whatever is necessary to start an MERGE query, returning theConnectorMergeTableHandleinstance that will be passed to the PageSink, and to theConnectorMetadata.finishMerge(io.trino.spi.connector.ConnectorSession, io.trino.spi.connector.ConnectorMergeTableHandle, java.util.List<io.trino.spi.connector.ConnectorTableHandle>, java.util.Collection<io.airlift.slice.Slice>, java.util.Collection<io.trino.spi.statistics.ComputedStatistics>)method.default ConnectorInsertTableHandleConnectorMetadata.beginRefreshMaterializedView(ConnectorSession session, ConnectorTableHandle tableHandle, List<ConnectorTableHandle> sourceTableHandles, RetryMode retryMode, RefreshType refreshType) Begin materialized view query.default ConnectorTableHandleConnectorMetadata.beginStatisticsCollection(ConnectorSession session, ConnectorTableHandle tableHandle) Begin statistics collectionConnectorMetadata.beginTableExecute(ConnectorSession session, ConnectorTableExecuteHandle tableExecuteHandle, ConnectorTableHandle updatedSourceTableHandle) Begin execution of table procedureConnectorPageSourceProvider.createPageSource(ConnectorTransactionHandle transaction, ConnectorSession session, ConnectorSplit split, ConnectorTableHandle table, List<ColumnHandle> columns, DynamicFilter dynamicFilter) default voidConnectorMetadata.dropColumn(ConnectorSession session, ConnectorTableHandle tableHandle, ColumnHandle column) Drop the specified columndefault voidConnectorMetadata.dropField(ConnectorSession session, ConnectorTableHandle tableHandle, ColumnHandle column, List<String> fieldPath) Drop the specified field, potentially nested, from a row.default voidConnectorMetadata.dropNotNullConstraint(ConnectorSession session, ConnectorTableHandle tableHandle, ColumnHandle column) Drop a not null constraint on the specified columndefault voidConnectorMetadata.dropTable(ConnectorSession session, ConnectorTableHandle tableHandle) Drops the specified tabledefault OptionalLongConnectorMetadata.executeDelete(ConnectorSession session, ConnectorTableHandle handle) Execute the delete operation on the handle returned fromConnectorMetadata.applyDelete(io.trino.spi.connector.ConnectorSession, io.trino.spi.connector.ConnectorTableHandle).default OptionalLongConnectorMetadata.executeUpdate(ConnectorSession session, ConnectorTableHandle handle) Execute the update operation on the handle returned fromConnectorMetadata.applyUpdate(io.trino.spi.connector.ConnectorSession, io.trino.spi.connector.ConnectorTableHandle, java.util.Map<io.trino.spi.connector.ColumnHandle, io.trino.spi.expression.Constant>).default Optional<ConnectorOutputMetadata> ConnectorMetadata.finishRefreshMaterializedView(ConnectorSession session, ConnectorTableHandle tableHandle, ConnectorInsertTableHandle insertHandle, Collection<io.airlift.slice.Slice> fragments, Collection<ComputedStatistics> computedStatistics, List<ConnectorTableHandle> sourceTableHandles, List<String> sourceTableFunctions) Finish materialized view querydefault voidConnectorMetadata.finishStatisticsCollection(ConnectorSession session, ConnectorTableHandle tableHandle, Collection<ComputedStatistics> computedStatistics) Finish statistics collectiondefault 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 cannot be enumerated.default ColumnMetadataConnectorMetadata.getColumnMetadata(ConnectorSession session, ConnectorTableHandle tableHandle, ColumnHandle columnHandle) Gets the metadata for the specified table column.ConnectorMetadata.getInfo(ConnectorTableHandle table) default Optional<ConnectorTableLayout> ConnectorMetadata.getInsertLayout(ConnectorSession session, ConnectorTableHandle tableHandle) Get the physical layout for inserting into an existing table.default WriterScalingOptionsConnectorMetadata.getInsertWriterScalingOptions(ConnectorSession session, ConnectorTableHandle tableHandle) default ColumnHandleConnectorMetadata.getMergeRowIdColumnHandle(ConnectorSession session, ConnectorTableHandle tableHandle) Get the column handle that will generate row IDs for the merge operation.default RecordSetConnectorRecordSetProvider.getRecordSet(ConnectorTransactionHandle transaction, ConnectorSession session, ConnectorSplit split, ConnectorTableHandle table, List<? extends ColumnHandle> columns) default RowChangeParadigmConnectorMetadata.getRowChangeParadigm(ConnectorSession session, ConnectorTableHandle tableHandle) Return the row change paradigm supported by the connector on the table.default ConnectorSplitSourceConnectorSplitManager.getSplits(ConnectorTransactionHandle transaction, ConnectorSession session, ConnectorTableHandle table, DynamicFilter dynamicFilter, Constraint constraint) default ConnectorAnalyzeMetadataConnectorMetadata.getStatisticsCollectionMetadata(ConnectorSession session, ConnectorTableHandle tableHandle, Map<String, Object> analyzeProperties) Describe statistics that must be collected during a statistics collectiondefault Optional<ConnectorTableExecuteHandle> ConnectorMetadata.getTableHandleForExecute(ConnectorSession session, ConnectorAccessControl accessControl, ConnectorTableHandle tableHandle, String procedureName, Map<String, Object> executeProperties, RetryMode retryMode) Create initial handle for execution of table procedure.default Optional<ConnectorTableExecuteHandle> ConnectorMetadata.getTableHandleForExecute(ConnectorSession session, ConnectorTableHandle tableHandle, String procedureName, Map<String, Object> executeProperties, RetryMode retryMode) default ConnectorTableMetadataConnectorMetadata.getTableMetadata(ConnectorSession session, ConnectorTableHandle table) Return the metadata for the specified table handle.default SchemaTableNameConnectorMetadata.getTableName(ConnectorSession session, ConnectorTableHandle table) Return schema table name for the specified table handle.default ConnectorTablePropertiesConnectorMetadata.getTableProperties(ConnectorSession session, ConnectorTableHandle table) default ConnectorTableSchemaConnectorMetadata.getTableSchema(ConnectorSession session, ConnectorTableHandle table) Return table schema definition for the specified table handle.default TableStatisticsConnectorMetadata.getTableStatistics(ConnectorSession session, ConnectorTableHandle tableHandle) Get statistics for table.default Optional<ConnectorPartitioningHandle> ConnectorMetadata.getUpdateLayout(ConnectorSession session, ConnectorTableHandle tableHandle) Get the physical layout for updated or deleted rows of a MERGE operation.default ConnectorTableHandleConnectorMetadata.makeCompatiblePartitioning(ConnectorSession session, ConnectorTableHandle tableHandle, ConnectorPartitioningHandle partitioningHandle) Return a table handle whose partitioning is converted to the provided partitioning handle, but otherwise identical to the provided table handle.default voidConnectorMetadata.renameColumn(ConnectorSession session, ConnectorTableHandle tableHandle, ColumnHandle source, String target) Rename the specified columndefault voidConnectorMetadata.renameField(ConnectorSession session, ConnectorTableHandle tableHandle, List<String> fieldPath, String target) Rename the specified field, potentially nested, to a row.default voidConnectorMetadata.renameTable(ConnectorSession session, ConnectorTableHandle tableHandle, SchemaTableName newTableName) Rename the specified tabledefault 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 voidConnectorMetadata.setColumnComment(ConnectorSession session, ConnectorTableHandle tableHandle, ColumnHandle column, Optional<String> comment) Comments to the specified columndefault voidConnectorMetadata.setColumnType(ConnectorSession session, ConnectorTableHandle tableHandle, ColumnHandle column, Type type) Set the specified column typedefault voidConnectorMetadata.setFieldType(ConnectorSession session, ConnectorTableHandle tableHandle, List<String> fieldPath, Type type) Set the specified field typedefault voidConnectorMetadata.setTableComment(ConnectorSession session, ConnectorTableHandle tableHandle, Optional<String> comment) Comments to the specified tabledefault voidConnectorMetadata.setTableProperties(ConnectorSession session, ConnectorTableHandle tableHandle, Map<String, Optional<Object>> properties) Set properties to the specified tabledefault voidConnectorMetadata.truncateTable(ConnectorSession session, ConnectorTableHandle tableHandle) Truncates the specified tabledefault voidConnectorMetadata.validateScan(ConnectorSession session, ConnectorTableHandle handle) Allows the connector to reject the table scan produced by the planner.Method parameters in io.trino.spi.connector with type arguments of type ConnectorTableHandleModifier and TypeMethodDescriptiondefault ConnectorInsertTableHandleConnectorMetadata.beginRefreshMaterializedView(ConnectorSession session, ConnectorTableHandle tableHandle, List<ConnectorTableHandle> sourceTableHandles, RetryMode retryMode, RefreshType refreshType) Begin materialized view query.default Optional<ConnectorOutputMetadata> ConnectorMetadata.finishInsert(ConnectorSession session, ConnectorInsertTableHandle insertHandle, List<ConnectorTableHandle> sourceTableHandles, Collection<io.airlift.slice.Slice> fragments, Collection<ComputedStatistics> computedStatistics) Finish insert querydefault voidConnectorMetadata.finishMerge(ConnectorSession session, ConnectorMergeTableHandle mergeTableHandle, List<ConnectorTableHandle> sourceTableHandles, Collection<io.airlift.slice.Slice> fragments, Collection<ComputedStatistics> computedStatistics) Finish a merge querydefault Optional<ConnectorOutputMetadata> ConnectorMetadata.finishRefreshMaterializedView(ConnectorSession session, ConnectorTableHandle tableHandle, ConnectorInsertTableHandle insertHandle, Collection<io.airlift.slice.Slice> fragments, Collection<ComputedStatistics> computedStatistics, List<ConnectorTableHandle> sourceTableHandles, List<String> sourceTableFunctions) Finish materialized view queryConstructors in io.trino.spi.connector with parameters of type ConnectorTableHandleModifierConstructorDescriptionConnectorAnalyzeMetadata(ConnectorTableHandle tableHandle, TableStatisticsMetadata statisticsMetadata)
ConnectorMetadata.beginMerge(ConnectorSession, ConnectorTableHandle, Map, RetryMode)}