Package io.trino.plugin.thrift
Class ThriftMetadata
java.lang.Object
io.trino.plugin.thrift.ThriftMetadata
- All Implemented Interfaces:
ConnectorMetadata
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.trino.spi.connector.ConnectorMetadata
ConnectorMetadata.Helper -
Field Summary
Fields inherited from interface io.trino.spi.connector.ConnectorMetadata
MODIFYING_ROWS_MESSAGE -
Constructor Summary
ConstructorsConstructorDescriptionThriftMetadata(io.airlift.drift.client.DriftClient<TrinoThriftService> client, ThriftHeaderProvider thriftHeaderProvider, TypeManager typeManager, Executor metadataRefreshExecutor) -
Method Summary
Modifier and TypeMethodDescriptionapplyFilter(ConnectorSession session, ConnectorTableHandle table, Constraint constraint) applyProjection(ConnectorSession session, ConnectorTableHandle table, List<ConnectorExpression> projections, Map<String, ColumnHandle> assignments) getColumnHandles(ConnectorSession session, ConnectorTableHandle tableHandle) getColumnMetadata(ConnectorSession session, ConnectorTableHandle tableHandle, ColumnHandle columnHandle) getTableHandle(ConnectorSession session, SchemaTableName tableName) getTableMetadata(ConnectorSession session, ConnectorTableHandle tableHandle) listSchemaNames(ConnectorSession session) listTableColumns(ConnectorSession session, SchemaTablePrefix prefix) listTables(ConnectorSession session, Optional<String> schemaName) resolveIndex(ConnectorSession session, ConnectorTableHandle tableHandle, Set<ColumnHandle> indexableColumns, Set<ColumnHandle> outputColumns, TupleDomain<ColumnHandle> tupleDomain) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.trino.spi.connector.ConnectorMetadata
addColumn, addField, applyAggregation, applyDelete, applyJoin, applyJoin, applyLimit, applySample, applyTableFunction, applyTableScanRedirect, applyTopN, applyUpdate, beginCreateTable, beginCreateTable, beginInsert, beginMerge, beginQuery, beginRefreshMaterializedView, beginStatisticsCollection, beginTableExecute, cleanupQuery, createLanguageFunction, createMaterializedView, createRole, createSchema, createTable, createTable, createView, delegateMaterializedViewRefreshToConnector, denySchemaPrivileges, denyTablePrivileges, dropColumn, dropField, dropLanguageFunction, dropMaterializedView, dropRole, dropSchema, dropTable, dropView, executeDelete, executeTableExecute, executeUpdate, finishCreateTable, finishInsert, finishMerge, finishRefreshMaterializedView, finishStatisticsCollection, finishTableExecute, getAggregationFunctionMetadata, getCommonPartitioningHandle, getFunctionDependencies, getFunctionMetadata, getFunctions, getInfo, getInsertLayout, getInsertWriterScalingOptions, getLanguageFunctions, getLayoutForTableExecute, getMaterializedView, getMaterializedViewFreshness, getMaterializedViewProperties, getMaterializedViews, getMaxWriterTasks, getMergeRowIdColumnHandle, getNewTableLayout, getNewTableWriterScalingOptions, getRelationTypes, getRowChangeParadigm, getSchemaOwner, getSchemaProperties, getStatisticsCollectionMetadata, getStatisticsCollectionMetadataForWrite, getSupportedType, getSystemTable, getTableHandle, getTableHandleForExecute, getTableName, getTableProperties, getTableSchema, getTableStatistics, getUpdateLayout, getView, getViews, grantRoles, grantSchemaPrivileges, grantTablePrivileges, languageFunctionExists, listApplicableRoles, listEnabledRoles, listFunctions, listLanguageFunctions, listMaterializedViews, listRoleGrants, listRoles, listTablePrivileges, listViews, makeCompatiblePartitioning, redirectTable, refreshMaterializedView, renameColumn, renameField, renameMaterializedView, renameSchema, renameTable, renameView, revokeRoles, revokeSchemaPrivileges, revokeTablePrivileges, roleExists, schemaExists, setColumnComment, setColumnType, setFieldType, setMaterializedViewColumnComment, setMaterializedViewProperties, setSchemaAuthorization, setTableAuthorization, setTableComment, setTableProperties, setViewAuthorization, setViewColumnComment, setViewComment, streamRelationColumns, streamRelationComments, streamTableColumns, supportsMissingColumnsOnInsert, truncateTable, validateScan
-
Constructor Details
-
ThriftMetadata
@Inject public ThriftMetadata(io.airlift.drift.client.DriftClient<TrinoThriftService> client, ThriftHeaderProvider thriftHeaderProvider, TypeManager typeManager, Executor metadataRefreshExecutor)
-
-
Method Details
-
listSchemaNames
- Specified by:
listSchemaNamesin interfaceConnectorMetadata
-
getTableHandle
- Specified by:
getTableHandlein interfaceConnectorMetadata
-
getTableMetadata
public ConnectorTableMetadata getTableMetadata(ConnectorSession session, ConnectorTableHandle tableHandle) - Specified by:
getTableMetadatain interfaceConnectorMetadata
-
listTables
- Specified by:
listTablesin interfaceConnectorMetadata
-
getColumnHandles
public Map<String,ColumnHandle> getColumnHandles(ConnectorSession session, ConnectorTableHandle tableHandle) - Specified by:
getColumnHandlesin interfaceConnectorMetadata
-
getColumnMetadata
public ColumnMetadata getColumnMetadata(ConnectorSession session, ConnectorTableHandle tableHandle, ColumnHandle columnHandle) - Specified by:
getColumnMetadatain interfaceConnectorMetadata
-
listTableColumns
public Map<SchemaTableName,List<ColumnMetadata>> listTableColumns(ConnectorSession session, SchemaTablePrefix prefix) - Specified by:
listTableColumnsin interfaceConnectorMetadata
-
resolveIndex
public Optional<ConnectorResolvedIndex> resolveIndex(ConnectorSession session, ConnectorTableHandle tableHandle, Set<ColumnHandle> indexableColumns, Set<ColumnHandle> outputColumns, TupleDomain<ColumnHandle> tupleDomain) - Specified by:
resolveIndexin interfaceConnectorMetadata
-
applyFilter
public Optional<ConstraintApplicationResult<ConnectorTableHandle>> applyFilter(ConnectorSession session, ConnectorTableHandle table, Constraint constraint) - Specified by:
applyFilterin interfaceConnectorMetadata
-
applyProjection
public Optional<ProjectionApplicationResult<ConnectorTableHandle>> applyProjection(ConnectorSession session, ConnectorTableHandle table, List<ConnectorExpression> projections, Map<String, ColumnHandle> assignments) - Specified by:
applyProjectionin interfaceConnectorMetadata
-