Package io.trino.plugin.redis
Class RedisMetadata
- java.lang.Object
-
- io.trino.plugin.redis.RedisMetadata
-
- All Implemented Interfaces:
ConnectorMetadata
public class RedisMetadata extends Object implements ConnectorMetadata
Manages the Redis connector specific metadata information. The Connector provides an additional set of columns for each table that are created as hidden columns. SeeRedisInternalFieldDescriptionfor a list of additional columns.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,ColumnHandle>getColumnHandles(ConnectorSession session, ConnectorTableHandle tableHandle)ColumnMetadatagetColumnMetadata(ConnectorSession session, ConnectorTableHandle tableHandle, ColumnHandle columnHandle)RedisTableHandlegetTableHandle(ConnectorSession session, SchemaTableName schemaTableName)ConnectorTableMetadatagetTableMetadata(ConnectorSession session, ConnectorTableHandle tableHandle)ConnectorTablePropertiesgetTableProperties(ConnectorSession session, ConnectorTableHandle tableHandle)List<String>listSchemaNames(ConnectorSession session)Map<SchemaTableName,List<ColumnMetadata>>listTableColumns(ConnectorSession session, SchemaTablePrefix prefix)List<SchemaTableName>listTables(ConnectorSession session, Optional<String> schemaName)booleanusesLegacyTableLayouts()-
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, beginTableExecute, beginUpdate, cleanupQuery, createMaterializedView, createRole, createSchema, createTable, createView, delegateMaterializedViewRefreshToConnector, denySchemaPrivileges, denyTablePrivileges, dropColumn, dropMaterializedView, dropRole, dropSchema, dropTable, dropView, executeDelete, finishCreateTable, finishDelete, finishInsert, finishRefreshMaterializedView, finishStatisticsCollection, finishTableExecute, finishUpdate, getCommonPartitioningHandle, getDeleteRowIdColumnHandle, getInfo, getInfo, getInsertLayout, getLayoutForTableExecute, getMaterializedView, getMaterializedViewFreshness, getMaterializedViews, getNewTableLayout, getSchemaOwner, getSchemaProperties, getStatisticsCollectionMetadata, getStatisticsCollectionMetadataForWrite, getSystemTable, getTableHandle, getTableHandleForExecute, getTableHandleForStatisticsCollection, getTableLayout, getTableLayouts, getTableSchema, getTableStatistics, getUpdateRowIdColumnHandle, getView, getViews, grantRoles, grantSchemaPrivileges, grantTablePrivileges, isSupportedVersionType, listAllRoleGrants, listApplicableRoles, listEnabledRoles, listMaterializedViews, listRoleGrants, listRoles, listTablePrivileges, listViews, makeCompatiblePartitioning, makeCompatiblePartitioning, metadataDelete, redirectTable, refreshMaterializedView, renameColumn, renameMaterializedView, renameSchema, renameTable, renameView, resolveIndex, revokeRoles, revokeSchemaPrivileges, revokeTablePrivileges, roleExists, schemaExists, setColumnComment, setSchemaAuthorization, setTableAuthorization, setTableComment, setTableProperties, setViewAuthorization, streamTableColumns, supportsMetadataDelete, supportsMissingColumnsOnInsert, truncateTable, validateScan
-
-
-
-
Method Detail
-
listSchemaNames
public List<String> listSchemaNames(ConnectorSession session)
- Specified by:
listSchemaNamesin interfaceConnectorMetadata
-
getTableHandle
public RedisTableHandle getTableHandle(ConnectorSession session, SchemaTableName schemaTableName)
- 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
-
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
-
getColumnMetadata
public ColumnMetadata getColumnMetadata(ConnectorSession session, ConnectorTableHandle tableHandle, ColumnHandle columnHandle)
- Specified by:
getColumnMetadatain interfaceConnectorMetadata
-
usesLegacyTableLayouts
public boolean usesLegacyTableLayouts()
- Specified by:
usesLegacyTableLayoutsin interfaceConnectorMetadata
-
getTableProperties
public ConnectorTableProperties getTableProperties(ConnectorSession session, ConnectorTableHandle tableHandle)
- Specified by:
getTablePropertiesin interfaceConnectorMetadata
-
-