Package io.trino.plugin.tpcds
Class TpcdsMetadata
- java.lang.Object
-
- io.trino.plugin.tpcds.TpcdsMetadata
-
- All Implemented Interfaces:
ConnectorMetadata
public class TpcdsMetadata extends Object implements ConnectorMetadata
-
-
Field Summary
Fields Modifier and Type Field Description static List<String>SCHEMA_NAMESstatic doubleTINY_SCALE_FACTORstatic StringTINY_SCHEMA_NAME
-
Constructor Summary
Constructors Constructor Description TpcdsMetadata()
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.trino.spi.connector.ConnectorMetadata
addColumn, applyAggregation, applyDelete, applyFilter, applyJoin, applyLimit, applyProjection, applySample, applyTableScanRedirect, applyTopN, beginCreateTable, beginDelete, beginInsert, beginInsert, beginQuery, beginRefreshMaterializedView, beginStatisticsCollection, beginUpdate, cleanupQuery, createMaterializedView, createRole, createSchema, createTable, createView, dropColumn, dropMaterializedView, dropRole, dropSchema, dropTable, dropView, executeDelete, finishCreateTable, finishDelete, finishInsert, finishRefreshMaterializedView, finishStatisticsCollection, finishUpdate, getCommonPartitioningHandle, getDeleteRowIdColumnHandle, getInfo, getInfo, getInsertLayout, getMaterializedView, getMaterializedViewFreshness, getNewTableLayout, getSchemaOwner, getSchemaProperties, getStatisticsCollectionMetadata, getStatisticsCollectionMetadataForWrite, getSystemTable, getTableHandleForStatisticsCollection, getTableProperties, getTableSchema, getUpdateRowIdColumnHandle, getView, getViews, grantRoles, grantSchemaPrivileges, grantTablePrivileges, listAllRoleGrants, listApplicableRoles, listEnabledRoles, listRoleGrants, listRoles, listTablePrivileges, listViews, makeCompatiblePartitioning, makeCompatiblePartitioning, metadataDelete, renameColumn, renameSchema, renameTable, renameView, resolveIndex, revokeRoles, revokeSchemaPrivileges, revokeTablePrivileges, setColumnComment, setSchemaAuthorization, setTableAuthorization, setTableComment, setViewAuthorization, supportsMetadataDelete, supportsMissingColumnsOnInsert, usesLegacyTableLayouts, validateScan
-
-
-
-
Field Detail
-
TINY_SCHEMA_NAME
public static final String TINY_SCHEMA_NAME
- See Also:
- Constant Field Values
-
TINY_SCALE_FACTOR
public static final double TINY_SCALE_FACTOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
schemaExists
public boolean schemaExists(ConnectorSession session, String schemaName)
- Specified by:
schemaExistsin interfaceConnectorMetadata
-
listSchemaNames
public List<String> listSchemaNames(ConnectorSession session)
- Specified by:
listSchemaNamesin interfaceConnectorMetadata
-
getTableHandle
public ConnectorTableHandle getTableHandle(ConnectorSession session, SchemaTableName tableName)
- Specified by:
getTableHandlein interfaceConnectorMetadata
-
getTableLayouts
public List<ConnectorTableLayoutResult> getTableLayouts(ConnectorSession session, ConnectorTableHandle table, Constraint constraint, Optional<Set<ColumnHandle>> desiredColumns)
- Specified by:
getTableLayoutsin interfaceConnectorMetadata
-
getTableLayout
public ConnectorTableLayout getTableLayout(ConnectorSession session, ConnectorTableLayoutHandle handle)
- Specified by:
getTableLayoutin interfaceConnectorMetadata
-
getTableMetadata
public ConnectorTableMetadata getTableMetadata(ConnectorSession session, ConnectorTableHandle tableHandle)
- Specified by:
getTableMetadatain interfaceConnectorMetadata
-
getTableStatistics
public TableStatistics getTableStatistics(ConnectorSession session, ConnectorTableHandle tableHandle, Constraint constraint)
- 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
public List<SchemaTableName> listTables(ConnectorSession session, Optional<String> filterSchema)
- Specified by:
listTablesin interfaceConnectorMetadata
-
schemaNameToScaleFactor
public static double schemaNameToScaleFactor(String schemaName)
-
getTrinoType
public static Type getTrinoType(io.trino.tpcds.column.ColumnType tpcdsType)
-
-