Package io.trino.tracing
Class TracingMetadata
java.lang.Object
io.trino.tracing.TracingMetadata
- All Implemented Interfaces:
Metadata
-
Constructor Summary
ConstructorsConstructorDescriptionTracingMetadata(io.opentelemetry.api.trace.Tracer tracer, Metadata delegate) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddColumn(Session session, TableHandle tableHandle, CatalogSchemaTableName table, ColumnMetadata column) Add the specified column to the table.voidaddField(Session session, TableHandle tableHandle, List<String> parentPath, String fieldName, Type type, boolean ignoreExisting) Add the specified field to the column.applyAggregation(Session session, TableHandle table, List<AggregateFunction> aggregations, Map<String, ColumnHandle> assignments, List<List<ColumnHandle>> groupingSets) applyDelete(Session session, TableHandle tableHandle) Push delete into connectorapplyFilter(Session session, TableHandle table, Constraint constraint) applyJoin(Session session, JoinType joinType, TableHandle left, TableHandle right, ConnectorExpression joinCondition, Map<String, ColumnHandle> leftAssignments, Map<String, ColumnHandle> rightAssignments, JoinStatistics statistics) applyLimit(Session session, TableHandle table, long limit) applyProjection(Session session, TableHandle table, List<ConnectorExpression> projections, Map<String, ColumnHandle> assignments) applySample(Session session, TableHandle table, SampleType sampleType, double sampleRatio) applyTableFunction(Session session, TableFunctionHandle handle) applyTableScanRedirect(Session session, TableHandle tableHandle) Returns the result of redirecting the table scan on a given table to a different table.applyTopN(Session session, TableHandle handle, long topNCount, List<SortItem> sortItems, Map<String, ColumnHandle> assignments) applyUpdate(Session session, TableHandle tableHandle, Map<ColumnHandle, Constant> assignments) Push update into connectorbeginCreateTable(Session session, String catalogName, ConnectorTableMetadata tableMetadata, Optional<TableLayout> layout, boolean replace) Begin the atomic creation of a table with data.beginInsert(Session session, TableHandle tableHandle, List<ColumnHandle> columns) Begin insert querybeginMerge(Session session, TableHandle tableHandle) Begin merge queryvoidbeginQuery(Session session) Initialize before query beginsbeginRefreshMaterializedView(Session session, TableHandle tableHandle, List<TableHandle> sourceTableHandles) Begin refresh materialized view querybeginStatisticsCollection(Session session, TableHandle tableHandle) Begin statistics collectionbeginTableExecute(Session session, TableExecuteHandle handle, TableHandle updatedSourceTableHandle) booleancatalogExists(Session session, String catalogName) voidcleanupQuery(Session session) Cleanup after a query.voidcreateLanguageFunction(Session session, QualifiedObjectName name, LanguageFunction function, boolean replace) voidcreateMaterializedView(Session session, QualifiedObjectName viewName, MaterializedViewDefinition definition, Map<String, Object> properties, boolean replace, boolean ignoreExisting) Creates the specified materialized view with the specified view definition.voidcreateRole(Session session, String role, Optional<TrinoPrincipal> grantor, Optional<String> catalog) Creates the specified role in the specified catalog.voidcreateSchema(Session session, CatalogSchemaName schema, Map<String, Object> properties, TrinoPrincipal principal) Creates a schema.voidcreateTable(Session session, String catalogName, ConnectorTableMetadata tableMetadata, SaveMode saveMode) Creates a table using the specified table metadata.voidcreateView(Session session, QualifiedObjectName viewName, ViewDefinition definition, boolean replace) Creates the specified view with the specified view definition.decodeFunction(QualifiedName name) booleandelegateMaterializedViewRefreshToConnector(Session session, QualifiedObjectName viewName) Returns true if materialized view refresh should be delegated to connectorvoiddenyEntityPrivileges(Session session, EntityKindAndName entity, Set<EntityPrivilege> privileges, TrinoPrincipal grantee) Deny the specified privileges to the specified principal on the specified entity.voiddenySchemaPrivileges(Session session, CatalogSchemaName schemaName, Set<Privilege> privileges, TrinoPrincipal grantee) Deny the specified privilege to the specified principal on the specified schema.voiddenyTablePrivileges(Session session, QualifiedObjectName tableName, Set<Privilege> privileges, TrinoPrincipal grantee) Deny the specified privilege to the specified principal on the specified tablevoiddropColumn(Session session, TableHandle tableHandle, CatalogSchemaTableName table, ColumnHandle column) Drop the specified column.voiddropField(Session session, TableHandle tableHandle, ColumnHandle column, List<String> fieldPath) Drop the specified field from the column.voiddropLanguageFunction(Session session, QualifiedObjectName name, String signatureToken) voiddropMaterializedView(Session session, QualifiedObjectName viewName) Drops the specified materialized view.voiddropNotNullConstraint(Session session, TableHandle tableHandle, ColumnHandle column) Drop a not null constraint on the specified column.voidDrops the specified role in the specified catalog.voiddropSchema(Session session, CatalogSchemaName schema, boolean cascade) Drops the specified schema.voiddropTable(Session session, TableHandle tableHandle, CatalogSchemaTableName tableName) Drops the specified tablevoiddropView(Session session, QualifiedObjectName viewName) Drops the specified view.executeDelete(Session session, TableHandle tableHandle) Execute delete in connectorvoidexecuteTableExecute(Session session, TableExecuteHandle handle) executeUpdate(Session session, TableHandle tableHandle) Execute update in connectorfinishCreateTable(Session session, OutputTableHandle tableHandle, Collection<io.airlift.slice.Slice> fragments, Collection<ComputedStatistics> computedStatistics) Finish a table creation with data after the data is written.finishInsert(Session session, InsertTableHandle tableHandle, List<TableHandle> sourceTableHandles, Collection<io.airlift.slice.Slice> fragments, Collection<ComputedStatistics> computedStatistics) Finish insert queryvoidfinishMerge(Session session, MergeHandle tableHandle, Collection<io.airlift.slice.Slice> fragments, Collection<ComputedStatistics> computedStatistics) Finish merge queryfinishRefreshMaterializedView(Session session, TableHandle tableHandle, InsertTableHandle insertTableHandle, Collection<io.airlift.slice.Slice> fragments, Collection<ComputedStatistics> computedStatistics, List<TableHandle> sourceTableHandles, List<String> sourceTableFunctions) Finish refresh materialized view queryvoidfinishStatisticsCollection(Session session, AnalyzeTableHandle tableHandle, Collection<ComputedStatistics> computedStatistics) Finish statistics collectionvoidfinishTableExecute(Session session, TableExecuteHandle handle, Collection<io.airlift.slice.Slice> fragments, List<Object> tableExecuteState) getAggregationFunctionMetadata(Session session, ResolvedFunction resolvedFunction) getAllEntityKindPrivileges(String entityKind) Gets all the EntityPrivileges associated with an entityKind.getCatalogHandle(Session session, String catalogName) Returns a catalog handle for the specified catalog name.getCoercion(CatalogSchemaFunctionName name, Type fromType, Type toType) getCoercion(OperatorType operatorType, Type fromType, Type toType) getCoercion(Type fromType, Type toType) getColumnHandles(Session session, TableHandle tableHandle) Gets all of the columns on the specified table, or an empty map if the columns cannot be enumerated.getColumnMetadata(Session session, TableHandle tableHandle, ColumnHandle columnHandle) Gets the metadata for the specified table column.getCommonPartitioning(Session session, PartitioningHandle left, PartitioningHandle right) Return a partitioning handle which the connector can transparently convert bothleftandrightinto.getConnectorCapabilities(Session session, CatalogHandle catalogHandle) getFunctionDependencies(Session session, CatalogHandle catalogHandle, FunctionId functionId, BoundSignature boundSignature) getFunctions(Session session, CatalogSchemaFunctionName catalogSchemaFunctionName) getInfo(Session session, TableHandle handle) getInsertLayout(Session session, TableHandle target) getInsertWriterScalingOptions(Session session, TableHandle tableHandle) Returns writer scaling options for the specified table.getLayoutForTableExecute(Session session, TableExecuteHandle tableExecuteHandle) getMaterializedView(Session session, QualifiedObjectName viewName) Returns the materialized view definition for the specified view name.getMaterializedViewFreshness(Session session, QualifiedObjectName name) Method to get difference between the states of table at two different points in time/or as of given token-ids.getMaterializedViewProperties(Session session, QualifiedObjectName objectName, MaterializedViewDefinition materializedViewDefinition) getMaterializedViews(Session session, QualifiedTablePrefix prefix) Get the materialized view definitions that match the specified table prefix (never null).getMaxWriterTasks(Session session, String catalogName) Returns maximum number of tasks that can be created while writing data to specific connector.getMergeRowIdColumnHandle(Session session, TableHandle tableHandle) Get the column handle that will generate row IDs for the merge operation.getNewTableLayout(Session session, String catalogName, ConnectorTableMetadata tableMetadata) getNewTableWriterScalingOptions(Session session, QualifiedObjectName tableName, Map<String, Object> tableProperties) Returns writer scaling options for the specified table.getRedirectionAwareTableHandle(Session session, QualifiedObjectName tableName) Get the target table handle after performing redirection.getRedirectionAwareTableHandle(Session session, QualifiedObjectName tableName, Optional<TableVersion> startVersion, Optional<TableVersion> endVersion) Get the target table handle after performing redirection with a table version.getRelationTypes(Session session, QualifiedTablePrefix prefix) Get the relation names that match the specified table prefix (never null).getRowChangeParadigm(Session session, TableHandle tableHandle) Return the row update paradigm supported by the connector on the table or throw an exception if row change is not supported.getSchemaOwner(Session session, CatalogSchemaName schemaName) Gets the schema owner for the specified schema.getSchemaProperties(Session session, CatalogSchemaName schemaName) Gets the schema properties for the specified schema.getStatisticsCollectionMetadata(Session session, TableHandle tableHandle, Map<String, Object> analyzeProperties) Describe statistics that must be collected during a statistics collectiongetStatisticsCollectionMetadataForWrite(Session session, CatalogHandle catalogHandle, ConnectorTableMetadata tableMetadata) Describes statistics that must be collected during a write.getSupportedType(Session session, CatalogHandle catalogHandle, Map<String, Object> tableProperties, Type type) Return the effectiveTypethat is supported by the connector for the given type, ifOptional.empty()is returned, the type will be used as is during table creation which may or may not be supported by the connector.getSystemTable(Session session, QualifiedObjectName tableName) getTableHandle(Session session, QualifiedObjectName tableName) Returns a table handle for the specified table name.getTableHandle(Session session, QualifiedObjectName tableName, Optional<TableVersion> startVersion, Optional<TableVersion> endVersion) Returns a table handle for the specified table name with a specified versiongetTableHandleForExecute(Session session, TableHandle tableHandle, String procedureName, Map<String, Object> executeProperties) getTableMetadata(Session session, TableHandle tableHandle) Return the metadata for the specified table handle.getTableName(Session session, TableHandle tableHandle) getTableProperties(Session session, TableHandle handle) getTableSchema(Session session, TableHandle tableHandle) Return table schema definition for the specified table handle.getTableStatistics(Session session, TableHandle tableHandle) Return statistics for specified table.getUpdateLayout(Session session, TableHandle tableHandle) Get the physical layout for updated or deleted rows of a MERGE operation.getView(Session session, QualifiedObjectName viewName) Returns the view definition for the specified view name.getViews(Session session, QualifiedTablePrefix prefix) Get the view definitions that match the specified table prefix (never null).voidgrantEntityPrivileges(Session session, EntityKindAndName entity, Set<EntityPrivilege> privileges, TrinoPrincipal grantee, boolean grantOption) Grants the specified privileges to the specified user on the specified grantee.voidgrantRoles(Session session, Set<String> roles, Set<TrinoPrincipal> grantees, boolean adminOption, Optional<TrinoPrincipal> grantor, Optional<String> catalog) Grants the specified roles to the specified grantees in the specified catalogvoidgrantSchemaPrivileges(Session session, CatalogSchemaName schemaName, Set<Privilege> privileges, TrinoPrincipal grantee, boolean grantOption) Grants the specified privilege to the specified user on the specified schema.voidgrantTablePrivileges(Session session, QualifiedObjectName tableName, Set<Privilege> privileges, TrinoPrincipal grantee, boolean grantOption) Grants the specified privilege to the specified user on the specified tablebooleanisCatalogManagedSecurity(Session session, String catalog) Does the specified catalog manage security directly, or does it use system security management?booleanisMaterializedView(Session session, QualifiedObjectName viewName) Is the specified table a materialized view.booleanisView(Session session, QualifiedObjectName viewName) Is the specified table a view.booleanlanguageFunctionExists(Session session, QualifiedObjectName name, String signatureToken) listApplicableRoles(Session session, TrinoPrincipal principal, Optional<String> catalog) List applicable roles, including the transitive grants, for the specified principallistCatalogs(Session session) Gets all the loaded catalogslistEnabledRoles(Session session, String catalog) List applicable roles, including the transitive grants, in given cataloglistEnabledRoles(Identity identity) List applicable system roles, including the transitive grants, for the given identity.listFunctions(Session session, CatalogSchemaName schema) listGlobalFunctions(Session session) listMaterializedViews(Session session, QualifiedTablePrefix prefix) Get the names that match the specified table prefix (never null).listRelationComments(Session session, String catalogName, Optional<String> schemaName, UnaryOperator<Set<SchemaTableName>> relationFilter) Gets the comments metadata for all relations (tables, views, materialized views) that match the specified prefix.listRoleGrants(Session session, Optional<String> catalog, TrinoPrincipal principal) List roles grants in the specified catalog for a given principal, not recursively.List available roles in specified catalog.listSchemaNames(Session session, String catalogName) listTableColumns(Session session, QualifiedTablePrefix prefix, UnaryOperator<Set<SchemaTableName>> relationFilter) Gets the columns metadata for all tables that match the specified prefix.listTablePrivileges(Session session, QualifiedTablePrefix prefix) Gets the privileges for the specified table available to the given grantee considering the selected session rolelistTables(Session session, QualifiedTablePrefix prefix) Get the relation names that match the specified table prefix (never null).listViews(Session session, QualifiedTablePrefix prefix) Get the names that match the specified table prefix (never null).makeCompatiblePartitioning(Session session, TableHandle table, PartitioningHandle partitioningHandle) Return a table handle whose partitioning is converted to the provided partitioning handle, but otherwise identical to the provided table handle.com.google.common.util.concurrent.ListenableFuture<Void> refreshMaterializedView(Session session, QualifiedObjectName viewName) Refresh materialized viewvoidrenameColumn(Session session, TableHandle tableHandle, CatalogSchemaTableName table, ColumnHandle source, String target) Rename the specified column.voidrenameField(Session session, TableHandle tableHandle, List<String> fieldPath, String target) Rename the specified field.voidrenameMaterializedView(Session session, QualifiedObjectName existingViewName, QualifiedObjectName newViewName) Rename the specified materialized view.voidrenameSchema(Session session, CatalogSchemaName source, String target) Renames the specified schema.voidrenameTable(Session session, TableHandle tableHandle, CatalogSchemaTableName currentTableName, QualifiedObjectName newTableName) Rename the specified table.voidrenameView(Session session, QualifiedObjectName existingViewName, QualifiedObjectName newViewName) Rename the specified view.resolveBuiltinFunction(String name, List<TypeSignatureProvider> parameterTypes) resolveIndex(Session session, TableHandle 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.resolveOperator(OperatorType operatorType, List<? extends Type> argumentTypes) voidrevokeEntityPrivileges(Session session, EntityKindAndName entity, Set<EntityPrivilege> privileges, TrinoPrincipal grantee, boolean grantOption) Revokes the specified privilege on the specified entity from the specified grantee.voidrevokeRoles(Session session, Set<String> roles, Set<TrinoPrincipal> grantees, boolean adminOption, Optional<TrinoPrincipal> grantor, Optional<String> catalog) Revokes the specified roles from the specified grantees in the specified catalogvoidrevokeSchemaPrivileges(Session session, CatalogSchemaName schemaName, Set<Privilege> privileges, TrinoPrincipal grantee, boolean grantOption) Revokes the specified privilege on the specified schema from the specified user.voidrevokeTablePrivileges(Session session, QualifiedObjectName tableName, Set<Privilege> privileges, TrinoPrincipal grantee, boolean grantOption) Revokes the specified privilege on the specified table from the specified user.booleanroleExists(Session session, String role, Optional<String> catalog) Does the specified role exist.booleanschemaExists(Session session, CatalogSchemaName schema) voidsetColumnComment(Session session, TableHandle tableHandle, ColumnHandle column, Optional<String> comment) Comments to the specified column.voidsetColumnType(Session session, TableHandle tableHandle, ColumnHandle column, Type type) Set the specified type to the column.voidsetFieldType(Session session, TableHandle tableHandle, List<String> fieldPath, Type type) Set the specified type to the field.voidsetMaterializedViewColumnComment(Session session, QualifiedObjectName viewName, String columnName, Optional<String> comment) Comments to the specified materialized view column.voidsetMaterializedViewProperties(Session session, QualifiedObjectName viewName, Map<String, Optional<Object>> properties) Sets the properties of the specified materialized view.voidsetSchemaAuthorization(Session session, CatalogSchemaName source, TrinoPrincipal principal) Set the specified schema's user/role.voidsetTableAuthorization(Session session, CatalogSchemaTableName table, TrinoPrincipal principal) Set the authorization (owner) of specified table's user/rolevoidsetTableComment(Session session, TableHandle tableHandle, Optional<String> comment) Comments to the specified table.voidsetTableProperties(Session session, TableHandle tableHandle, Map<String, Optional<Object>> properties) Set properties to the specified table.voidsetViewAuthorization(Session session, CatalogSchemaTableName view, TrinoPrincipal principal) Set the authorization (owner) of specified view's user/rolevoidsetViewColumnComment(Session session, QualifiedObjectName viewName, String columnName, Optional<String> comment) Comments to the specified view column.voidsetViewComment(Session session, QualifiedObjectName viewName, Optional<String> comment) Comments to the specified view.booleansupportsMissingColumnsOnInsert(Session session, TableHandle tableHandle) voidtruncateTable(Session session, TableHandle tableHandle) Truncates the specified tablevoidvalidateScan(Session session, TableHandle table)
-
Constructor Details
-
TracingMetadata
-
-
Method Details
-
getDelegate
-
getConnectorCapabilities
public Set<ConnectorCapabilities> getConnectorCapabilities(Session session, CatalogHandle catalogHandle) - Specified by:
getConnectorCapabilitiesin interfaceMetadata
-
catalogExists
- Specified by:
catalogExistsin interfaceMetadata
-
schemaExists
- Specified by:
schemaExistsin interfaceMetadata
-
listSchemaNames
- Specified by:
listSchemaNamesin interfaceMetadata
-
getTableHandle
Description copied from interface:MetadataReturns a table handle for the specified table name.- Specified by:
getTableHandlein interfaceMetadata
-
getSystemTable
- Specified by:
getSystemTablein interfaceMetadata
-
getTableHandleForExecute
public Optional<TableExecuteHandle> getTableHandleForExecute(Session session, TableHandle tableHandle, String procedureName, Map<String, Object> executeProperties) - Specified by:
getTableHandleForExecutein interfaceMetadata
-
getLayoutForTableExecute
public Optional<TableLayout> getLayoutForTableExecute(Session session, TableExecuteHandle tableExecuteHandle) - Specified by:
getLayoutForTableExecutein interfaceMetadata
-
beginTableExecute
public BeginTableExecuteResult<TableExecuteHandle,TableHandle> beginTableExecute(Session session, TableExecuteHandle handle, TableHandle updatedSourceTableHandle) - Specified by:
beginTableExecutein interfaceMetadata
-
finishTableExecute
public void finishTableExecute(Session session, TableExecuteHandle handle, Collection<io.airlift.slice.Slice> fragments, List<Object> tableExecuteState) - Specified by:
finishTableExecutein interfaceMetadata
-
executeTableExecute
- Specified by:
executeTableExecutein interfaceMetadata
-
getTableProperties
- Specified by:
getTablePropertiesin interfaceMetadata
-
makeCompatiblePartitioning
public TableHandle makeCompatiblePartitioning(Session session, TableHandle table, PartitioningHandle partitioningHandle) Description copied from interface:MetadataReturn a table handle whose partitioning is converted to the provided partitioning handle, but otherwise identical to the provided table handle. The provided table handle must be one that the connector can transparently convert to from the original partitioning handle associated with the provided table handle, as promised byMetadata.getCommonPartitioning(io.trino.Session, io.trino.sql.planner.PartitioningHandle, io.trino.sql.planner.PartitioningHandle).- Specified by:
makeCompatiblePartitioningin interfaceMetadata
-
getCommonPartitioning
public Optional<PartitioningHandle> getCommonPartitioning(Session session, PartitioningHandle left, PartitioningHandle right) Description copied from interface:MetadataReturn a partitioning handle which the connector can transparently convert bothleftandrightinto.- Specified by:
getCommonPartitioningin interfaceMetadata
-
getInfo
-
getTableName
- Specified by:
getTableNamein interfaceMetadata
-
getTableSchema
Description copied from interface:MetadataReturn table schema definition for the specified table handle. Table schema definition is a set of information required by semantic analyzer to analyze the query.- Specified by:
getTableSchemain interfaceMetadata- See Also:
-
getTableMetadata
Description copied from interface:MetadataReturn the metadata for the specified table handle.- Specified by:
getTableMetadatain interfaceMetadata- See Also:
-
getTableStatistics
Description copied from interface:MetadataReturn statistics for specified table.- Specified by:
getTableStatisticsin interfaceMetadata
-
listTables
Description copied from interface:MetadataGet the relation names that match the specified table prefix (never null). This includes all relations (e.g. tables, views, materialized views).- Specified by:
listTablesin interfaceMetadata
-
getRelationTypes
public Map<SchemaTableName,RelationType> getRelationTypes(Session session, QualifiedTablePrefix prefix) Description copied from interface:MetadataGet the relation names that match the specified table prefix (never null). This includes all relations (e.g. tables, views, materialized views).- Specified by:
getRelationTypesin interfaceMetadata
-
getColumnHandles
Description copied from interface:MetadataGets all of the columns on the specified table, or an empty map if the columns cannot be enumerated.- Specified by:
getColumnHandlesin interfaceMetadata
-
getColumnMetadata
public ColumnMetadata getColumnMetadata(Session session, TableHandle tableHandle, ColumnHandle columnHandle) Description copied from interface:MetadataGets the metadata for the specified table column.- Specified by:
getColumnMetadatain interfaceMetadata
-
listTableColumns
public List<TableColumnsMetadata> listTableColumns(Session session, QualifiedTablePrefix prefix, UnaryOperator<Set<SchemaTableName>> relationFilter) Description copied from interface:MetadataGets the columns metadata for all tables that match the specified prefix. TODO: consider returning a stream for more efficient processing- Specified by:
listTableColumnsin interfaceMetadata
-
listRelationComments
public List<RelationCommentMetadata> listRelationComments(Session session, String catalogName, Optional<String> schemaName, UnaryOperator<Set<SchemaTableName>> relationFilter) Description copied from interface:MetadataGets the comments metadata for all relations (tables, views, materialized views) that match the specified prefix. TODO: consider returning a stream for more efficient processing- Specified by:
listRelationCommentsin interfaceMetadata
-
createSchema
public void createSchema(Session session, CatalogSchemaName schema, Map<String, Object> properties, TrinoPrincipal principal) Description copied from interface:MetadataCreates a schema.- Specified by:
createSchemain interfaceMetadata- Parameters:
principal- TODO
-
dropSchema
Description copied from interface:MetadataDrops the specified schema.- Specified by:
dropSchemain interfaceMetadata
-
renameSchema
Description copied from interface:MetadataRenames the specified schema.- Specified by:
renameSchemain interfaceMetadata
-
setSchemaAuthorization
public void setSchemaAuthorization(Session session, CatalogSchemaName source, TrinoPrincipal principal) Description copied from interface:MetadataSet the specified schema's user/role.- Specified by:
setSchemaAuthorizationin interfaceMetadata
-
createTable
public void createTable(Session session, String catalogName, ConnectorTableMetadata tableMetadata, SaveMode saveMode) Description copied from interface:MetadataCreates a table using the specified table metadata.- Specified by:
createTablein interfaceMetadata
-
renameTable
public void renameTable(Session session, TableHandle tableHandle, CatalogSchemaTableName currentTableName, QualifiedObjectName newTableName) Description copied from interface:MetadataRename the specified table.- Specified by:
renameTablein interfaceMetadata
-
setTableProperties
public void setTableProperties(Session session, TableHandle tableHandle, Map<String, Optional<Object>> properties) Description copied from interface:MetadataSet properties to the specified table.- Specified by:
setTablePropertiesin interfaceMetadata
-
setTableComment
Description copied from interface:MetadataComments to the specified table.- Specified by:
setTableCommentin interfaceMetadata
-
setViewComment
Description copied from interface:MetadataComments to the specified view.- Specified by:
setViewCommentin interfaceMetadata
-
setViewColumnComment
public void setViewColumnComment(Session session, QualifiedObjectName viewName, String columnName, Optional<String> comment) Description copied from interface:MetadataComments to the specified view column.- Specified by:
setViewColumnCommentin interfaceMetadata
-
setColumnComment
public void setColumnComment(Session session, TableHandle tableHandle, ColumnHandle column, Optional<String> comment) Description copied from interface:MetadataComments to the specified column.- Specified by:
setColumnCommentin interfaceMetadata
-
renameColumn
public void renameColumn(Session session, TableHandle tableHandle, CatalogSchemaTableName table, ColumnHandle source, String target) Description copied from interface:MetadataRename the specified column.- Specified by:
renameColumnin interfaceMetadata
-
renameField
public void renameField(Session session, TableHandle tableHandle, List<String> fieldPath, String target) Description copied from interface:MetadataRename the specified field.- Specified by:
renameFieldin interfaceMetadata
-
addColumn
public void addColumn(Session session, TableHandle tableHandle, CatalogSchemaTableName table, ColumnMetadata column) Description copied from interface:MetadataAdd the specified column to the table. -
addField
public void addField(Session session, TableHandle tableHandle, List<String> parentPath, String fieldName, Type type, boolean ignoreExisting) Description copied from interface:MetadataAdd the specified field to the column. -
setColumnType
Description copied from interface:MetadataSet the specified type to the column.- Specified by:
setColumnTypein interfaceMetadata
-
setFieldType
public void setFieldType(Session session, TableHandle tableHandle, List<String> fieldPath, Type type) Description copied from interface:MetadataSet the specified type to the field.- Specified by:
setFieldTypein interfaceMetadata
-
dropNotNullConstraint
Description copied from interface:MetadataDrop a not null constraint on the specified column.- Specified by:
dropNotNullConstraintin interfaceMetadata
-
setTableAuthorization
public void setTableAuthorization(Session session, CatalogSchemaTableName table, TrinoPrincipal principal) Description copied from interface:MetadataSet the authorization (owner) of specified table's user/role- Specified by:
setTableAuthorizationin interfaceMetadata
-
dropColumn
public void dropColumn(Session session, TableHandle tableHandle, CatalogSchemaTableName table, ColumnHandle column) Description copied from interface:MetadataDrop the specified column.- Specified by:
dropColumnin interfaceMetadata
-
dropField
public void dropField(Session session, TableHandle tableHandle, ColumnHandle column, List<String> fieldPath) Description copied from interface:MetadataDrop the specified field from the column. -
dropTable
Description copied from interface:MetadataDrops the specified table -
truncateTable
Description copied from interface:MetadataTruncates the specified table- Specified by:
truncateTablein interfaceMetadata
-
getNewTableLayout
public Optional<TableLayout> getNewTableLayout(Session session, String catalogName, ConnectorTableMetadata tableMetadata) - Specified by:
getNewTableLayoutin interfaceMetadata
-
getSupportedType
public Optional<Type> getSupportedType(Session session, CatalogHandle catalogHandle, Map<String, Object> tableProperties, Type type) Description copied from interface:MetadataReturn the effectiveTypethat is supported by the connector for the given type, ifOptional.empty()is returned, the type will be used as is during table creation which may or may not be supported by the connector.- Specified by:
getSupportedTypein interfaceMetadata
-
beginCreateTable
public OutputTableHandle beginCreateTable(Session session, String catalogName, ConnectorTableMetadata tableMetadata, Optional<TableLayout> layout, boolean replace) Description copied from interface:MetadataBegin the atomic creation of a table with data.- Specified by:
beginCreateTablein interfaceMetadata
-
finishCreateTable
public Optional<ConnectorOutputMetadata> finishCreateTable(Session session, OutputTableHandle tableHandle, Collection<io.airlift.slice.Slice> fragments, Collection<ComputedStatistics> computedStatistics) Description copied from interface:MetadataFinish a table creation with data after the data is written.- Specified by:
finishCreateTablein interfaceMetadata
-
getInsertLayout
- Specified by:
getInsertLayoutin interfaceMetadata
-
getStatisticsCollectionMetadataForWrite
public TableStatisticsMetadata getStatisticsCollectionMetadataForWrite(Session session, CatalogHandle catalogHandle, ConnectorTableMetadata tableMetadata) Description copied from interface:MetadataDescribes statistics that must be collected during a write.- Specified by:
getStatisticsCollectionMetadataForWritein interfaceMetadata
-
getStatisticsCollectionMetadata
public AnalyzeMetadata getStatisticsCollectionMetadata(Session session, TableHandle tableHandle, Map<String, Object> analyzeProperties) Description copied from interface:MetadataDescribe statistics that must be collected during a statistics collection- Specified by:
getStatisticsCollectionMetadatain interfaceMetadata
-
beginStatisticsCollection
Description copied from interface:MetadataBegin statistics collection- Specified by:
beginStatisticsCollectionin interfaceMetadata
-
finishStatisticsCollection
public void finishStatisticsCollection(Session session, AnalyzeTableHandle tableHandle, Collection<ComputedStatistics> computedStatistics) Description copied from interface:MetadataFinish statistics collection- Specified by:
finishStatisticsCollectionin interfaceMetadata
-
beginQuery
Description copied from interface:MetadataInitialize before query begins- Specified by:
beginQueryin interfaceMetadata
-
cleanupQuery
Description copied from interface:MetadataCleanup after a query. This is the very last notification after the query finishes, regardless if it succeeds or fails. An exception thrown in this method will not affect the result of the query.- Specified by:
cleanupQueryin interfaceMetadata
-
beginInsert
public InsertTableHandle beginInsert(Session session, TableHandle tableHandle, List<ColumnHandle> columns) Description copied from interface:MetadataBegin insert query- Specified by:
beginInsertin interfaceMetadata
-
supportsMissingColumnsOnInsert
- Specified by:
supportsMissingColumnsOnInsertin interfaceMetadata- Returns:
- whether connector handles missing columns during insert
-
finishInsert
public Optional<ConnectorOutputMetadata> finishInsert(Session session, InsertTableHandle tableHandle, List<TableHandle> sourceTableHandles, Collection<io.airlift.slice.Slice> fragments, Collection<ComputedStatistics> computedStatistics) Description copied from interface:MetadataFinish insert query- Specified by:
finishInsertin interfaceMetadata
-
delegateMaterializedViewRefreshToConnector
public boolean delegateMaterializedViewRefreshToConnector(Session session, QualifiedObjectName viewName) Description copied from interface:MetadataReturns true if materialized view refresh should be delegated to connector- Specified by:
delegateMaterializedViewRefreshToConnectorin interfaceMetadata
-
refreshMaterializedView
public com.google.common.util.concurrent.ListenableFuture<Void> refreshMaterializedView(Session session, QualifiedObjectName viewName) Description copied from interface:MetadataRefresh materialized view- Specified by:
refreshMaterializedViewin interfaceMetadata
-
beginRefreshMaterializedView
public InsertTableHandle beginRefreshMaterializedView(Session session, TableHandle tableHandle, List<TableHandle> sourceTableHandles) Description copied from interface:MetadataBegin refresh materialized view query- Specified by:
beginRefreshMaterializedViewin interfaceMetadata
-
finishRefreshMaterializedView
public Optional<ConnectorOutputMetadata> finishRefreshMaterializedView(Session session, TableHandle tableHandle, InsertTableHandle insertTableHandle, Collection<io.airlift.slice.Slice> fragments, Collection<ComputedStatistics> computedStatistics, List<TableHandle> sourceTableHandles, List<String> sourceTableFunctions) Description copied from interface:MetadataFinish refresh materialized view query- Specified by:
finishRefreshMaterializedViewin interfaceMetadata
-
applyUpdate
public Optional<TableHandle> applyUpdate(Session session, TableHandle tableHandle, Map<ColumnHandle, Constant> assignments) Description copied from interface:MetadataPush update into connector- Specified by:
applyUpdatein interfaceMetadata
-
executeUpdate
Description copied from interface:MetadataExecute update in connector- Specified by:
executeUpdatein interfaceMetadata
-
applyDelete
Description copied from interface:MetadataPush delete into connector- Specified by:
applyDeletein interfaceMetadata
-
executeDelete
Description copied from interface:MetadataExecute delete in connector- Specified by:
executeDeletein interfaceMetadata
-
getRowChangeParadigm
Description copied from interface:MetadataReturn the row update paradigm supported by the connector on the table or throw an exception if row change is not supported.- Specified by:
getRowChangeParadigmin interfaceMetadata
-
getMergeRowIdColumnHandle
Description copied from interface:MetadataGet the column handle that will generate row IDs for the merge operation. These IDs will be passed to thestoreMergedRows()method of theConnectorMergeSinkthat created them.- Specified by:
getMergeRowIdColumnHandlein interfaceMetadata
-
getUpdateLayout
Description copied from interface:MetadataGet the physical layout for updated or deleted rows of a MERGE operation.- Specified by:
getUpdateLayoutin interfaceMetadata
-
beginMerge
Description copied from interface:MetadataBegin merge query- Specified by:
beginMergein interfaceMetadata
-
finishMerge
public void finishMerge(Session session, MergeHandle tableHandle, Collection<io.airlift.slice.Slice> fragments, Collection<ComputedStatistics> computedStatistics) Description copied from interface:MetadataFinish merge query- Specified by:
finishMergein interfaceMetadata
-
getCatalogHandle
Description copied from interface:MetadataReturns a catalog handle for the specified catalog name.- Specified by:
getCatalogHandlein interfaceMetadata
-
listCatalogs
Description copied from interface:MetadataGets all the loaded catalogs- Specified by:
listCatalogsin interfaceMetadata
-
listViews
Description copied from interface:MetadataGet the names that match the specified table prefix (never null). -
getViews
Description copied from interface:MetadataGet the view definitions that match the specified table prefix (never null). -
isView
Description copied from interface:MetadataIs the specified table a view. -
getView
Description copied from interface:MetadataReturns the view definition for the specified view name. -
getSchemaProperties
Description copied from interface:MetadataGets the schema properties for the specified schema.- Specified by:
getSchemaPropertiesin interfaceMetadata
-
getSchemaOwner
Description copied from interface:MetadataGets the schema owner for the specified schema.- Specified by:
getSchemaOwnerin interfaceMetadata
-
createView
public void createView(Session session, QualifiedObjectName viewName, ViewDefinition definition, boolean replace) Description copied from interface:MetadataCreates the specified view with the specified view definition.- Specified by:
createViewin interfaceMetadata
-
renameView
public void renameView(Session session, QualifiedObjectName existingViewName, QualifiedObjectName newViewName) Description copied from interface:MetadataRename the specified view.- Specified by:
renameViewin interfaceMetadata
-
setViewAuthorization
public void setViewAuthorization(Session session, CatalogSchemaTableName view, TrinoPrincipal principal) Description copied from interface:MetadataSet the authorization (owner) of specified view's user/role- Specified by:
setViewAuthorizationin interfaceMetadata
-
dropView
Description copied from interface:MetadataDrops the specified view. -
resolveIndex
public Optional<ResolvedIndex> resolveIndex(Session session, TableHandle tableHandle, Set<ColumnHandle> indexableColumns, Set<ColumnHandle> outputColumns, TupleDomain<ColumnHandle> tupleDomain) Description copied from interface:MetadataTry to locate a table index that can lookup results by indexableColumns and provide the requested outputColumns.- Specified by:
resolveIndexin interfaceMetadata
-
applyLimit
public Optional<LimitApplicationResult<TableHandle>> applyLimit(Session session, TableHandle table, long limit) - Specified by:
applyLimitin interfaceMetadata
-
applyFilter
public Optional<ConstraintApplicationResult<TableHandle>> applyFilter(Session session, TableHandle table, Constraint constraint) - Specified by:
applyFilterin interfaceMetadata
-
applyProjection
public Optional<ProjectionApplicationResult<TableHandle>> applyProjection(Session session, TableHandle table, List<ConnectorExpression> projections, Map<String, ColumnHandle> assignments) - Specified by:
applyProjectionin interfaceMetadata
-
applySample
public Optional<SampleApplicationResult<TableHandle>> applySample(Session session, TableHandle table, SampleType sampleType, double sampleRatio) - Specified by:
applySamplein interfaceMetadata
-
applyAggregation
public Optional<AggregationApplicationResult<TableHandle>> applyAggregation(Session session, TableHandle table, List<AggregateFunction> aggregations, Map<String, ColumnHandle> assignments, List<List<ColumnHandle>> groupingSets) - Specified by:
applyAggregationin interfaceMetadata
-
applyJoin
public Optional<JoinApplicationResult<TableHandle>> applyJoin(Session session, JoinType joinType, TableHandle left, TableHandle right, ConnectorExpression joinCondition, Map<String, ColumnHandle> leftAssignments, Map<String, ColumnHandle> rightAssignments, JoinStatistics statistics) -
applyTopN
public Optional<TopNApplicationResult<TableHandle>> applyTopN(Session session, TableHandle handle, long topNCount, List<SortItem> sortItems, Map<String, ColumnHandle> assignments) -
applyTableFunction
public Optional<TableFunctionApplicationResult<TableHandle>> applyTableFunction(Session session, TableFunctionHandle handle) - Specified by:
applyTableFunctionin interfaceMetadata
-
validateScan
- Specified by:
validateScanin interfaceMetadata
-
isCatalogManagedSecurity
Description copied from interface:MetadataDoes the specified catalog manage security directly, or does it use system security management?- Specified by:
isCatalogManagedSecurityin interfaceMetadata
-
roleExists
Description copied from interface:MetadataDoes the specified role exist.- Specified by:
roleExistsin interfaceMetadata- Parameters:
catalog- if present, the role catalog; otherwise the role is a system role
-
createRole
public void createRole(Session session, String role, Optional<TrinoPrincipal> grantor, Optional<String> catalog) Description copied from interface:MetadataCreates the specified role in the specified catalog.- Specified by:
createRolein interfaceMetadata- Parameters:
grantor- represents the principal specified by WITH ADMIN statementcatalog- if present, the role catalog; otherwise the role is a system role
-
dropRole
Description copied from interface:MetadataDrops the specified role in the specified catalog. -
listRoles
Description copied from interface:MetadataList available roles in specified catalog. -
listRoleGrants
public Set<RoleGrant> listRoleGrants(Session session, Optional<String> catalog, TrinoPrincipal principal) Description copied from interface:MetadataList roles grants in the specified catalog for a given principal, not recursively.- Specified by:
listRoleGrantsin interfaceMetadata- Parameters:
catalog- if present, the role catalog; otherwise the role is a system role
-
grantRoles
public void grantRoles(Session session, Set<String> roles, Set<TrinoPrincipal> grantees, boolean adminOption, Optional<TrinoPrincipal> grantor, Optional<String> catalog) Description copied from interface:MetadataGrants the specified roles to the specified grantees in the specified catalog- Specified by:
grantRolesin interfaceMetadata- Parameters:
grantor- represents the principal specified by GRANTED BY statementcatalog- if present, the role catalog; otherwise the role is a system role
-
revokeRoles
public void revokeRoles(Session session, Set<String> roles, Set<TrinoPrincipal> grantees, boolean adminOption, Optional<TrinoPrincipal> grantor, Optional<String> catalog) Description copied from interface:MetadataRevokes the specified roles from the specified grantees in the specified catalog- Specified by:
revokeRolesin interfaceMetadata- Parameters:
grantor- represents the principal specified by GRANTED BY statementcatalog- if present, the role catalog; otherwise the role is a system role
-
listApplicableRoles
public Set<RoleGrant> listApplicableRoles(Session session, TrinoPrincipal principal, Optional<String> catalog) Description copied from interface:MetadataList applicable roles, including the transitive grants, for the specified principal- Specified by:
listApplicableRolesin interfaceMetadata- Parameters:
catalog- if present, the role catalog; otherwise the role is a system role
-
listEnabledRoles
Description copied from interface:MetadataList applicable system roles, including the transitive grants, for the given identity.- Specified by:
listEnabledRolesin interfaceMetadata
-
listEnabledRoles
Description copied from interface:MetadataList applicable roles, including the transitive grants, in given catalog- Specified by:
listEnabledRolesin interfaceMetadata- Parameters:
catalog- if present, the role catalog; otherwise the role is a system role
-
grantSchemaPrivileges
public void grantSchemaPrivileges(Session session, CatalogSchemaName schemaName, Set<Privilege> privileges, TrinoPrincipal grantee, boolean grantOption) Description copied from interface:MetadataGrants the specified privilege to the specified user on the specified schema.- Specified by:
grantSchemaPrivilegesin interfaceMetadata
-
denySchemaPrivileges
public void denySchemaPrivileges(Session session, CatalogSchemaName schemaName, Set<Privilege> privileges, TrinoPrincipal grantee) Description copied from interface:MetadataDeny the specified privilege to the specified principal on the specified schema.- Specified by:
denySchemaPrivilegesin interfaceMetadata
-
revokeSchemaPrivileges
public void revokeSchemaPrivileges(Session session, CatalogSchemaName schemaName, Set<Privilege> privileges, TrinoPrincipal grantee, boolean grantOption) Description copied from interface:MetadataRevokes the specified privilege on the specified schema from the specified user.- Specified by:
revokeSchemaPrivilegesin interfaceMetadata
-
grantTablePrivileges
public void grantTablePrivileges(Session session, QualifiedObjectName tableName, Set<Privilege> privileges, TrinoPrincipal grantee, boolean grantOption) Description copied from interface:MetadataGrants the specified privilege to the specified user on the specified table- Specified by:
grantTablePrivilegesin interfaceMetadata
-
denyTablePrivileges
public void denyTablePrivileges(Session session, QualifiedObjectName tableName, Set<Privilege> privileges, TrinoPrincipal grantee) Description copied from interface:MetadataDeny the specified privilege to the specified principal on the specified table- Specified by:
denyTablePrivilegesin interfaceMetadata
-
revokeTablePrivileges
public void revokeTablePrivileges(Session session, QualifiedObjectName tableName, Set<Privilege> privileges, TrinoPrincipal grantee, boolean grantOption) Description copied from interface:MetadataRevokes the specified privilege on the specified table from the specified user.- Specified by:
revokeTablePrivilegesin interfaceMetadata
-
listTablePrivileges
Description copied from interface:MetadataGets the privileges for the specified table available to the given grantee considering the selected session role- Specified by:
listTablePrivilegesin interfaceMetadata
-
getAllEntityKindPrivileges
Description copied from interface:MetadataGets all the EntityPrivileges associated with an entityKind. Defines ALL PRIVILEGES for the entityKind- Specified by:
getAllEntityKindPrivilegesin interfaceMetadata
-
grantEntityPrivileges
public void grantEntityPrivileges(Session session, EntityKindAndName entity, Set<EntityPrivilege> privileges, TrinoPrincipal grantee, boolean grantOption) Description copied from interface:MetadataGrants the specified privileges to the specified user on the specified grantee. If the set of privileges is empty, it is interpreted as all privileges for the entityKind.- Specified by:
grantEntityPrivilegesin interfaceMetadata
-
denyEntityPrivileges
public void denyEntityPrivileges(Session session, EntityKindAndName entity, Set<EntityPrivilege> privileges, TrinoPrincipal grantee) Description copied from interface:MetadataDeny the specified privileges to the specified principal on the specified entity. If the set of privileges is empty, it is interpreted as all privileges for the entityKind.- Specified by:
denyEntityPrivilegesin interfaceMetadata
-
revokeEntityPrivileges
public void revokeEntityPrivileges(Session session, EntityKindAndName entity, Set<EntityPrivilege> privileges, TrinoPrincipal grantee, boolean grantOption) Description copied from interface:MetadataRevokes the specified privilege on the specified entity from the specified grantee. If the set of privileges is empty, it is interpreted as all privileges for the entityKind.- Specified by:
revokeEntityPrivilegesin interfaceMetadata
-
listGlobalFunctions
- Specified by:
listGlobalFunctionsin interfaceMetadata
-
listFunctions
- Specified by:
listFunctionsin interfaceMetadata
-
decodeFunction
- Specified by:
decodeFunctionin interfaceMetadata
-
getFunctions
public Collection<CatalogFunctionMetadata> getFunctions(Session session, CatalogSchemaFunctionName catalogSchemaFunctionName) - Specified by:
getFunctionsin interfaceMetadata
-
resolveBuiltinFunction
public ResolvedFunction resolveBuiltinFunction(String name, List<TypeSignatureProvider> parameterTypes) - Specified by:
resolveBuiltinFunctionin interfaceMetadata
-
resolveOperator
public ResolvedFunction resolveOperator(OperatorType operatorType, List<? extends Type> argumentTypes) throws OperatorNotFoundException - Specified by:
resolveOperatorin interfaceMetadata- Throws:
OperatorNotFoundException
-
getCoercion
- Specified by:
getCoercionin interfaceMetadata
-
getCoercion
- Specified by:
getCoercionin interfaceMetadata
-
getCoercion
- Specified by:
getCoercionin interfaceMetadata
-
getAggregationFunctionMetadata
public AggregationFunctionMetadata getAggregationFunctionMetadata(Session session, ResolvedFunction resolvedFunction) - Specified by:
getAggregationFunctionMetadatain interfaceMetadata
-
getFunctionDependencies
public FunctionDependencyDeclaration getFunctionDependencies(Session session, CatalogHandle catalogHandle, FunctionId functionId, BoundSignature boundSignature) - Specified by:
getFunctionDependenciesin interfaceMetadata
-
languageFunctionExists
public boolean languageFunctionExists(Session session, QualifiedObjectName name, String signatureToken) - Specified by:
languageFunctionExistsin interfaceMetadata
-
createLanguageFunction
public void createLanguageFunction(Session session, QualifiedObjectName name, LanguageFunction function, boolean replace) - Specified by:
createLanguageFunctionin interfaceMetadata
-
dropLanguageFunction
- Specified by:
dropLanguageFunctionin interfaceMetadata
-
createMaterializedView
public void createMaterializedView(Session session, QualifiedObjectName viewName, MaterializedViewDefinition definition, Map<String, Object> properties, boolean replace, boolean ignoreExisting) Description copied from interface:MetadataCreates the specified materialized view with the specified view definition.- Specified by:
createMaterializedViewin interfaceMetadata
-
dropMaterializedView
Description copied from interface:MetadataDrops the specified materialized view.- Specified by:
dropMaterializedViewin interfaceMetadata
-
listMaterializedViews
public List<QualifiedObjectName> listMaterializedViews(Session session, QualifiedTablePrefix prefix) Description copied from interface:MetadataGet the names that match the specified table prefix (never null).- Specified by:
listMaterializedViewsin interfaceMetadata
-
getMaterializedViews
public Map<QualifiedObjectName,ViewInfo> getMaterializedViews(Session session, QualifiedTablePrefix prefix) Description copied from interface:MetadataGet the materialized view definitions that match the specified table prefix (never null).- Specified by:
getMaterializedViewsin interfaceMetadata
-
isMaterializedView
Description copied from interface:MetadataIs the specified table a materialized view.- Specified by:
isMaterializedViewin interfaceMetadata
-
getMaterializedView
public Optional<MaterializedViewDefinition> getMaterializedView(Session session, QualifiedObjectName viewName) Description copied from interface:MetadataReturns the materialized view definition for the specified view name.- Specified by:
getMaterializedViewin interfaceMetadata
-
getMaterializedViewProperties
public Map<String,Object> getMaterializedViewProperties(Session session, QualifiedObjectName objectName, MaterializedViewDefinition materializedViewDefinition) - Specified by:
getMaterializedViewPropertiesin interfaceMetadata
-
getMaterializedViewFreshness
public MaterializedViewFreshness getMaterializedViewFreshness(Session session, QualifiedObjectName name) Description copied from interface:MetadataMethod to get difference between the states of table at two different points in time/or as of given token-ids. The method is used by the engine to determine if a materialized view is current with respect to the tables it depends on.- Specified by:
getMaterializedViewFreshnessin interfaceMetadata
-
renameMaterializedView
public void renameMaterializedView(Session session, QualifiedObjectName existingViewName, QualifiedObjectName newViewName) Description copied from interface:MetadataRename the specified materialized view.- Specified by:
renameMaterializedViewin interfaceMetadata
-
setMaterializedViewProperties
public void setMaterializedViewProperties(Session session, QualifiedObjectName viewName, Map<String, Optional<Object>> properties) Description copied from interface:MetadataSets the properties of the specified materialized view.- Specified by:
setMaterializedViewPropertiesin interfaceMetadata
-
setMaterializedViewColumnComment
public void setMaterializedViewColumnComment(Session session, QualifiedObjectName viewName, String columnName, Optional<String> comment) Description copied from interface:MetadataComments to the specified materialized view column.- Specified by:
setMaterializedViewColumnCommentin interfaceMetadata
-
applyTableScanRedirect
public Optional<TableScanRedirectApplicationResult> applyTableScanRedirect(Session session, TableHandle tableHandle) Description copied from interface:MetadataReturns the result of redirecting the table scan on a given table to a different table. This method is used by the engine during the plan optimization phase to allow a connector to offload table scans to any other connector. This method is called after security checks against the original table.- Specified by:
applyTableScanRedirectin interfaceMetadata
-
getRedirectionAwareTableHandle
public RedirectionAwareTableHandle getRedirectionAwareTableHandle(Session session, QualifiedObjectName tableName) Description copied from interface:MetadataGet the target table handle after performing redirection.- Specified by:
getRedirectionAwareTableHandlein interfaceMetadata
-
getRedirectionAwareTableHandle
public RedirectionAwareTableHandle getRedirectionAwareTableHandle(Session session, QualifiedObjectName tableName, Optional<TableVersion> startVersion, Optional<TableVersion> endVersion) Description copied from interface:MetadataGet the target table handle after performing redirection with a table version.- Specified by:
getRedirectionAwareTableHandlein interfaceMetadata
-
getTableHandle
public Optional<TableHandle> getTableHandle(Session session, QualifiedObjectName tableName, Optional<TableVersion> startVersion, Optional<TableVersion> endVersion) Description copied from interface:MetadataReturns a table handle for the specified table name with a specified version- Specified by:
getTableHandlein interfaceMetadata
-
getMaxWriterTasks
Description copied from interface:MetadataReturns maximum number of tasks that can be created while writing data to specific connector. Note: It is ignored when retry policy is set to TASK- Specified by:
getMaxWriterTasksin interfaceMetadata
-
getNewTableWriterScalingOptions
public WriterScalingOptions getNewTableWriterScalingOptions(Session session, QualifiedObjectName tableName, Map<String, Object> tableProperties) Description copied from interface:MetadataReturns writer scaling options for the specified table. This method is called when table handle is not available during CTAS.- Specified by:
getNewTableWriterScalingOptionsin interfaceMetadata
-
getInsertWriterScalingOptions
Description copied from interface:MetadataReturns writer scaling options for the specified table.- Specified by:
getInsertWriterScalingOptionsin interfaceMetadata
-