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() |
TpchMetadata(ColumnNaming columnNaming,
boolean predicatePushdownEnabled,
boolean partitioningEnabled) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddColumn, applyDelete, applyLimit, applyProjection, applySample, beginCreateTable, beginDelete, beginInsert, beginInsert, beginQuery, cleanupQuery, createRole, createSchema, createTable, createView, dropColumn, dropRole, dropSchema, dropTable, dropView, executeDelete, finishCreateTable, finishDelete, finishInsert, getCommonPartitioningHandle, getInfo, getInfo, getInsertLayout, getNewTableLayout, getSchemaOwner, getSchemaProperties, getStatisticsCollectionMetadataForWrite, getSystemTable, getTableLayout, getTableLayouts, getUpdateRowIdColumnHandle, getView, getViews, grantRoles, grantTablePrivileges, listApplicableRoles, listEnabledRoles, listRoleGrants, listRoles, listTablePrivileges, listViews, makeCompatiblePartitioning, makeCompatiblePartitioning, metadataDelete, renameColumn, renameSchema, renameTable, renameView, resolveIndex, revokeRoles, revokeTablePrivileges, setSchemaAuthorization, setTableComment, supportsMetadataDelete, supportsMissingColumnsOnInsert, validateScanpublic static final String TINY_SCHEMA_NAME
public static final double TINY_SCALE_FACTOR
public static final String ROW_NUMBER_COLUMN_NAME
public TpchMetadata()
public TpchMetadata(ColumnNaming columnNaming, boolean predicatePushdownEnabled, boolean partitioningEnabled)
public boolean schemaExists(ConnectorSession session, String schemaName)
schemaExists in interface ConnectorMetadatapublic 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 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, Constraint 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 boolean usesLegacyTableLayouts()
usesLegacyTableLayouts in interface ConnectorMetadatapublic ConnectorTableProperties getTableProperties(ConnectorSession session, ConnectorTableHandle table)
getTableProperties in interface ConnectorMetadatapublic Optional<ConstraintApplicationResult<ConnectorTableHandle>> applyFilter(ConnectorSession session, ConnectorTableHandle table, Constraint constraint)
applyFilter in interface ConnectorMetadatapublic static double schemaNameToScaleFactor(String schemaName)
public static Type getPrestoType(io.prestosql.tpch.TpchColumn<?> column)
Copyright © 2012–2020. All rights reserved.