Package io.trino.plugin.redis
Class RedisMetadata
java.lang.Object
io.trino.plugin.redis.RedisMetadata
- All Implemented Interfaces:
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. See
RedisInternalFieldDescription for a list
of additional columns.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.trino.spi.connector.ConnectorMetadata
ConnectorMetadata.Helper -
Field Summary
Fields inherited from interface io.trino.spi.connector.ConnectorMetadata
MODIFYING_ROWS_MESSAGE -
Method Summary
Modifier and TypeMethodDescriptionapplyFilter(ConnectorSession session, ConnectorTableHandle table, Constraint constraint) getColumnHandles(ConnectorSession session, ConnectorTableHandle tableHandle) getColumnMetadata(ConnectorSession session, ConnectorTableHandle tableHandle, ColumnHandle columnHandle) getTableHandle(ConnectorSession session, SchemaTableName schemaTableName) getTableMetadata(ConnectorSession session, ConnectorTableHandle tableHandle) listSchemaNames(ConnectorSession session) listTableColumns(ConnectorSession session, SchemaTablePrefix prefix) listTables(ConnectorSession session, Optional<String> schemaName) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.trino.spi.connector.ConnectorMetadata
addColumn, addField, applyAggregation, applyDelete, applyJoin, applyJoin, applyLimit, applyProjection, applySample, applyTableFunction, applyTableScanRedirect, applyTopN, applyUpdate, beginCreateTable, beginInsert, beginMerge, beginQuery, beginRefreshMaterializedView, beginStatisticsCollection, beginTableExecute, cleanupQuery, createMaterializedView, createRole, createSchema, createTable, createView, delegateMaterializedViewRefreshToConnector, denySchemaPrivileges, denyTablePrivileges, dropColumn, dropField, dropMaterializedView, dropRole, dropSchema, dropTable, dropView, executeDelete, executeTableExecute, executeUpdate, finishCreateTable, finishInsert, finishMerge, finishRefreshMaterializedView, finishStatisticsCollection, finishTableExecute, getAggregationFunctionMetadata, getCommonPartitioningHandle, getFunctionDependencies, getFunctionMetadata, getFunctions, getInfo, getInsertLayout, getInsertWriterScalingOptions, getLayoutForTableExecute, getMaterializedView, getMaterializedViewFreshness, getMaterializedViews, getMaxWriterTasks, getMergeRowIdColumnHandle, getNewTableLayout, getNewTableWriterScalingOptions, getRowChangeParadigm, getSchemaOwner, getSchemaProperties, getStatisticsCollectionMetadata, getStatisticsCollectionMetadataForWrite, getSupportedType, getSystemTable, getTableHandle, getTableHandleForExecute, getTableName, getTableProperties, getTableSchema, getTableStatistics, getUpdateLayout, getView, getViews, grantRoles, grantSchemaPrivileges, grantTablePrivileges, listApplicableRoles, listEnabledRoles, listFunctions, listMaterializedViews, listRoleGrants, listRoles, listTablePrivileges, listViews, makeCompatiblePartitioning, redirectTable, refreshMaterializedView, renameColumn, renameField, renameMaterializedView, renameSchema, renameTable, renameView, resolveIndex, revokeRoles, revokeSchemaPrivileges, revokeTablePrivileges, roleExists, schemaExists, setColumnComment, setColumnType, setFieldType, setMaterializedViewColumnComment, setMaterializedViewProperties, setSchemaAuthorization, setTableAuthorization, setTableComment, setTableProperties, setViewAuthorization, setViewColumnComment, setViewComment, streamRelationColumns, streamRelationComments, streamTableColumns, supportsMissingColumnsOnInsert, truncateTable, validateScan
-
Method Details
-
listSchemaNames
- Specified by:
listSchemaNamesin interfaceConnectorMetadata
-
getTableHandle
- Specified by:
getTableHandlein interfaceConnectorMetadata
-
getTableMetadata
public ConnectorTableMetadata getTableMetadata(ConnectorSession session, ConnectorTableHandle tableHandle) - Specified by:
getTableMetadatain interfaceConnectorMetadata
-
listTables
- Specified by:
listTablesin interfaceConnectorMetadata
-
getColumnHandles
public Map<String,ColumnHandle> getColumnHandles(ConnectorSession session, ConnectorTableHandle tableHandle) - Specified by:
getColumnHandlesin interfaceConnectorMetadata
-
applyFilter
public Optional<ConstraintApplicationResult<ConnectorTableHandle>> applyFilter(ConnectorSession session, ConnectorTableHandle table, Constraint constraint) - Specified by:
applyFilterin 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
-