Class InformationSchemaMetadata
- java.lang.Object
-
- io.trino.connector.informationschema.InformationSchemaMetadata
-
- All Implemented Interfaces:
ConnectorMetadata
public class InformationSchemaMetadata extends Object implements ConnectorMetadata
-
-
Constructor Summary
Constructors Constructor Description InformationSchemaMetadata(String catalogName, Metadata metadata)
-
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, applyJoin, 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, getTableLayout, getTableLayouts, getTableSchema, getTableStatistics, getUpdateRowIdColumnHandle, getView, getViews, grantRoles, grantSchemaPrivileges, grantTablePrivileges, listAllRoleGrants, listApplicableRoles, listEnabledRoles, listRoleGrants, listRoles, listTablePrivileges, listViews, makeCompatiblePartitioning, makeCompatiblePartitioning, metadataDelete, redirectTable, renameColumn, renameSchema, renameTable, renameView, resolveIndex, revokeRoles, revokeSchemaPrivileges, revokeTablePrivileges, schemaExists, setColumnComment, setSchemaAuthorization, setTableAuthorization, setTableComment, setViewAuthorization, streamTableColumns, supportsMetadataDelete, supportsMissingColumnsOnInsert, validateScan
-
-
-
-
Method Detail
-
listSchemaNames
public List<String> listSchemaNames(ConnectorSession session)
- Specified by:
listSchemaNamesin interfaceConnectorMetadata
-
getTableHandle
public ConnectorTableHandle getTableHandle(ConnectorSession connectorSession, SchemaTableName tableName)
- Specified by:
getTableHandlein interfaceConnectorMetadata
-
getTableMetadata
public ConnectorTableMetadata getTableMetadata(ConnectorSession session, ConnectorTableHandle tableHandle)
- Specified by:
getTableMetadatain interfaceConnectorMetadata
-
listTables
public List<SchemaTableName> listTables(ConnectorSession session, Optional<String> schemaName)
- Specified by:
listTablesin interfaceConnectorMetadata
-
getColumnMetadata
public ColumnMetadata getColumnMetadata(ConnectorSession session, ConnectorTableHandle tableHandle, ColumnHandle columnHandle)
- Specified by:
getColumnMetadatain interfaceConnectorMetadata
-
getColumnHandles
public Map<String,ColumnHandle> getColumnHandles(ConnectorSession session, ConnectorTableHandle tableHandle)
- Specified by:
getColumnHandlesin interfaceConnectorMetadata
-
listTableColumns
public Map<SchemaTableName,List<ColumnMetadata>> listTableColumns(ConnectorSession session, SchemaTablePrefix prefix)
- Specified by:
listTableColumnsin interfaceConnectorMetadata
-
usesLegacyTableLayouts
public boolean usesLegacyTableLayouts()
- Specified by:
usesLegacyTableLayoutsin interfaceConnectorMetadata
-
getTableProperties
public ConnectorTableProperties getTableProperties(ConnectorSession session, ConnectorTableHandle table)
- Specified by:
getTablePropertiesin interfaceConnectorMetadata
-
applyLimit
public Optional<LimitApplicationResult<ConnectorTableHandle>> applyLimit(ConnectorSession session, ConnectorTableHandle handle, long limit)
- Specified by:
applyLimitin interfaceConnectorMetadata
-
applyFilter
public Optional<ConstraintApplicationResult<ConnectorTableHandle>> applyFilter(ConnectorSession session, ConnectorTableHandle handle, Constraint constraint)
- Specified by:
applyFilterin interfaceConnectorMetadata
-
defaultPrefixes
public static Set<QualifiedTablePrefix> defaultPrefixes(String catalogName)
-
isTablesEnumeratingTable
public static boolean isTablesEnumeratingTable(InformationSchemaTable table)
-
-