public class TpchMetadata extends Object implements ConnectorMetadata
| Modifier and Type | Field and Description |
|---|---|
static String |
ROW_NUMBER_COLUMN_NAME |
static List<String> |
SCHEMA_NAMES |
static double |
TINY_SCALE_FACTOR |
static String |
TINY_SCHEMA_NAME |
| Constructor and Description |
|---|
TpchMetadata(String connectorId) |
TpchMetadata(String connectorId,
ColumnNaming columnNaming,
boolean predicatePushdownEnabled,
boolean partitioningEnabled) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddColumn, beginCreateTable, beginDelete, beginInsert, beginQuery, beginRefreshMaterializedView, cleanupQuery, commitPageSinkAsync, commitPageSinkAsync, createMaterializedView, createRole, createSchema, createTable, createTemporaryTable, createView, doMetadataUpdateCleanup, dropColumn, dropMaterializedView, dropRole, dropSchema, dropTable, dropView, finishCreateTable, finishDelete, finishInsert, finishRefreshMaterializedView, getAlternativeLayoutHandle, getCommonPartitioningHandle, getInfo, getInsertLayout, getMaterializedView, getMaterializedViewStatus, getMetadataUpdateResults, getNewTableLayout, getPartitioningHandleForExchange, getPreferredShuffleLayoutForInsert, getPreferredShuffleLayoutForNewTable, getReferencedMaterializedViews, getStatisticsCollectionMetadataForWrite, getSystemTable, getTableLayoutFilterCoverage, getUpdateRowIdColumnHandle, getViews, grantRoles, grantTablePrivileges, isLegacyGetLayoutSupported, isRefinedPartitioningOver, listApplicableRoles, listEnabledRoles, listRoleGrants, listRoles, listTablePrivileges, listTables, listViews, listViews, metadataDelete, renameColumn, renameSchema, renameTable, resolveIndex, revokeRoles, revokeTablePrivileges, schemaExists, supportsMetadataDelete, toExplainIOConstraintspublic static final String TINY_SCHEMA_NAME
public static final double TINY_SCALE_FACTOR
public static final String ROW_NUMBER_COLUMN_NAME
public TpchMetadata(String connectorId)
public TpchMetadata(String connectorId, ColumnNaming columnNaming, boolean predicatePushdownEnabled, boolean partitioningEnabled)
public List<String> listSchemaNames(ConnectorSession session)
listSchemaNames in interface ConnectorMetadatapublic TpchTableHandle getTableHandle(ConnectorSession session, SchemaTableName tableName)
getTableHandle in interface ConnectorMetadatapublic ConnectorTableHandle getTableHandleForStatisticsCollection(ConnectorSession session, SchemaTableName tableName, Map<String,Object> analyzeProperties)
getTableHandleForStatisticsCollection in interface ConnectorMetadatapublic List<ConnectorTableLayoutResult> getTableLayouts(ConnectorSession session, ConnectorTableHandle table, Constraint<ColumnHandle> constraint, Optional<Set<ColumnHandle>> desiredColumns)
getTableLayouts in interface ConnectorMetadatapublic ConnectorTableLayout getTableLayout(ConnectorSession session, ConnectorTableLayoutHandle handle)
getTableLayout in interface ConnectorMetadatapublic ConnectorTableMetadata getTableMetadata(ConnectorSession session, ConnectorTableHandle tableHandle)
getTableMetadata in interface ConnectorMetadatapublic Map<String,ColumnHandle> getColumnHandles(ConnectorSession session, ConnectorTableHandle tableHandle)
getColumnHandles in interface ConnectorMetadatapublic Map<SchemaTableName,List<ColumnMetadata>> listTableColumns(ConnectorSession session, SchemaTablePrefix prefix)
listTableColumns in interface ConnectorMetadatapublic TableStatistics getTableStatistics(ConnectorSession session, ConnectorTableHandle tableHandle, Optional<ConnectorTableLayoutHandle> tableLayoutHandle, List<ColumnHandle> columnHandles, Constraint<ColumnHandle> constraint)
getTableStatistics in interface ConnectorMetadatapublic TableStatisticsMetadata getStatisticsCollectionMetadata(ConnectorSession session, ConnectorTableMetadata tableMetadata)
getStatisticsCollectionMetadata in interface ConnectorMetadatapublic ConnectorTableHandle beginStatisticsCollection(ConnectorSession session, ConnectorTableHandle tableHandle)
beginStatisticsCollection in interface ConnectorMetadatapublic void finishStatisticsCollection(ConnectorSession session, ConnectorTableHandle tableHandle, Collection<ComputedStatistics> computedStatistics)
finishStatisticsCollection in interface ConnectorMetadatapublic ColumnMetadata getColumnMetadata(ConnectorSession session, ConnectorTableHandle tableHandle, ColumnHandle columnHandle)
getColumnMetadata in interface ConnectorMetadatapublic List<SchemaTableName> listTables(ConnectorSession session, Optional<String> filterSchema)
listTables in interface ConnectorMetadatapublic static double schemaNameToScaleFactor(String schemaName)
public static Type getPrestoType(io.airlift.tpch.TpchColumn<?> column)
Copyright © 2012–2022. All rights reserved.