Package io.trino.plugin.tpcds
Class TpcdsMetadata
java.lang.Object
io.trino.plugin.tpcds.TpcdsMetadata
- All Implemented Interfaces:
ConnectorMetadata
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.trino.spi.connector.ConnectorMetadata
ConnectorMetadata.Helper -
Field Summary
FieldsFields inherited from interface io.trino.spi.connector.ConnectorMetadata
MODIFYING_ROWS_MESSAGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetColumnHandles(ConnectorSession session, ConnectorTableHandle tableHandle) getColumnMetadata(ConnectorSession session, ConnectorTableHandle tableHandle, ColumnHandle columnHandle) getTableHandle(ConnectorSession session, SchemaTableName tableName) getTableMetadata(ConnectorSession session, ConnectorTableHandle tableHandle) getTableStatistics(ConnectorSession session, ConnectorTableHandle tableHandle) static TypegetTrinoType(io.trino.tpcds.column.ColumnType tpcdsType) listSchemaNames(ConnectorSession session) listTableColumns(ConnectorSession session, SchemaTablePrefix prefix) listTables(ConnectorSession session, Optional<String> filterSchema) booleanschemaExists(ConnectorSession session, String schemaName) static doubleschemaNameToScaleFactor(String schemaName) 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, applyFilter, applyJoin, applyJoin, applyLimit, applyProjection, applySample, applyTableFunction, applyTableScanRedirect, applyTopN, beginCreateTable, beginInsert, beginMerge, beginQuery, beginRefreshMaterializedView, beginStatisticsCollection, beginTableExecute, cleanupQuery, createMaterializedView, createRole, createSchema, createTable, createView, delegateMaterializedViewRefreshToConnector, denySchemaPrivileges, denyTablePrivileges, dropColumn, dropField, dropMaterializedView, dropRole, dropSchema, dropTable, dropView, executeDelete, executeTableExecute, finishCreateTable, finishInsert, finishMerge, finishRefreshMaterializedView, finishStatisticsCollection, finishTableExecute, getAggregationFunctionMetadata, getCommonPartitioningHandle, getFunctionDependencies, getFunctionMetadata, getFunctions, getInfo, getInsertLayout, getInsertWriterScalingOptions, getLayoutForTableExecute, getMaterializedView, getMaterializedViewFreshness, getMaterializedViews, getMaxWriterTasks, getMergeRowIdColumnHandle, getNewTableLayout, getNewTableWriterScalingOptions, getRowChangeParadigm, getSchemaOwner, getSchemaProperties, getStatisticsCollectionMetadata, getStatisticsCollectionMetadataForWrite, getSupportedType, getSystemTable, getTableHandle, getTableHandleForExecute, getTableName, getTableProperties, getTableSchema, getUpdateLayout, getView, getViews, grantRoles, grantSchemaPrivileges, grantTablePrivileges, listApplicableRoles, listEnabledRoles, listFunctions, listMaterializedViews, listRoleGrants, listRoles, listTablePrivileges, listViews, makeCompatiblePartitioning, redirectTable, refreshMaterializedView, renameColumn, renameField, renameMaterializedView, renameSchema, renameTable, renameView, resolveIndex, revokeRoles, revokeSchemaPrivileges, revokeTablePrivileges, roleExists, setColumnComment, setColumnType, setFieldType, setMaterializedViewColumnComment, setMaterializedViewProperties, setSchemaAuthorization, setTableAuthorization, setTableComment, setTableProperties, setViewAuthorization, setViewColumnComment, setViewComment, streamRelationColumns, streamRelationComments, streamTableColumns, supportsMissingColumnsOnInsert, truncateTable, validateScan
-
Field Details
-
TINY_SCHEMA_NAME
- See Also:
-
TINY_SCALE_FACTOR
public static final double TINY_SCALE_FACTOR- See Also:
-
SCHEMA_NAMES
-
-
Constructor Details
-
TpcdsMetadata
public TpcdsMetadata()
-
-
Method Details
-
schemaExists
- Specified by:
schemaExistsin interfaceConnectorMetadata
-
listSchemaNames
- Specified by:
listSchemaNamesin interfaceConnectorMetadata
-
getTableHandle
- Specified by:
getTableHandlein interfaceConnectorMetadata
-
getTableMetadata
public ConnectorTableMetadata getTableMetadata(ConnectorSession session, ConnectorTableHandle tableHandle) - Specified by:
getTableMetadatain interfaceConnectorMetadata
-
getTableStatistics
public TableStatistics getTableStatistics(ConnectorSession session, ConnectorTableHandle tableHandle) - Specified by:
getTableStatisticsin 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
-
listTables
- Specified by:
listTablesin interfaceConnectorMetadata
-
schemaNameToScaleFactor
-
getTrinoType
-