Package io.trino.plugin.localfile
Class LocalFileMetadata
- java.lang.Object
-
- io.trino.plugin.localfile.LocalFileMetadata
-
- All Implemented Interfaces:
ConnectorMetadata
public class LocalFileMetadata extends Object implements ConnectorMetadata
-
-
Field Summary
Fields Modifier and Type Field Description static StringPRESTO_LOGS_SCHEMAstatic ColumnMetadataSERVER_ADDRESS_COLUMN
-
Constructor Summary
Constructors Constructor Description LocalFileMetadata(LocalFileTables localFileTables)
-
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, 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
-
-
-
-
Field Detail
-
PRESTO_LOGS_SCHEMA
public static final String PRESTO_LOGS_SCHEMA
- See Also:
- Constant Field Values
-
SERVER_ADDRESS_COLUMN
public static final ColumnMetadata SERVER_ADDRESS_COLUMN
-
-
Constructor Detail
-
LocalFileMetadata
@Inject public LocalFileMetadata(LocalFileTables localFileTables)
-
-
Method Detail
-
listSchemaNames
public List<String> listSchemaNames(ConnectorSession session)
- Specified by:
listSchemaNamesin interfaceConnectorMetadata
-
getTableHandle
public ConnectorTableHandle getTableHandle(ConnectorSession session, SchemaTableName tableName)
- Specified by:
getTableHandlein interfaceConnectorMetadata
-
getTableMetadata
public ConnectorTableMetadata getTableMetadata(ConnectorSession session, ConnectorTableHandle table)
- 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 table)
- Specified by:
getColumnHandlesin interfaceConnectorMetadata
-
getColumnMetadata
public ColumnMetadata getColumnMetadata(ConnectorSession session, ConnectorTableHandle tableHandle, ColumnHandle columnHandle)
- Specified by:
getColumnMetadatain 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 tableHandle)
- Specified by:
getTablePropertiesin interfaceConnectorMetadata
-
applyFilter
public Optional<ConstraintApplicationResult<ConnectorTableHandle>> applyFilter(ConnectorSession session, ConnectorTableHandle table, Constraint constraint)
- Specified by:
applyFilterin interfaceConnectorMetadata
-
-