Package io.trino.plugin.hudi
Class HudiMetadata
java.lang.Object
io.trino.plugin.hudi.HudiMetadata
- All Implemented Interfaces:
ConnectorMetadata
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHudiMetadata(HiveMetastore metastore, HdfsEnvironment hdfsEnvironment, TypeManager typeManager) -
Method Summary
Modifier and TypeMethodDescriptionapplyFilter(ConnectorSession session, ConnectorTableHandle tableHandle, Constraint constraint) getColumnHandles(ConnectorSession session, ConnectorTableHandle tableHandle) getColumnMetadata(ConnectorSession session, ConnectorTableHandle tableHandle, ColumnHandle columnHandle) getInfo(ConnectorTableHandle table) getTableHandle(ConnectorSession session, SchemaTableName tableName) getTableMetadata(ConnectorSession session, ConnectorTableHandle table) listSchemaNames(ConnectorSession session) listTables(ConnectorSession session, Optional<String> optionalSchemaName) streamTableColumns(ConnectorSession session, SchemaTablePrefix prefix) 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, applyAggregation, applyDelete, applyJoin, applyJoin, applyLimit, applyProjection, applySample, applyTableFunction, applyTableScanRedirect, applyTopN, beginCreateTable, beginDelete, beginInsert, beginMerge, beginQuery, beginRefreshMaterializedView, beginStatisticsCollection, beginTableExecute, beginUpdate, cleanupQuery, createMaterializedView, createRole, createSchema, createTable, createView, delegateMaterializedViewRefreshToConnector, denySchemaPrivileges, denyTablePrivileges, dropColumn, dropMaterializedView, dropRole, dropSchema, dropTable, dropView, executeDelete, executeTableExecute, finishCreateTable, finishDelete, finishInsert, finishMerge, finishRefreshMaterializedView, finishStatisticsCollection, finishTableExecute, finishUpdate, getAggregationFunctionMetadata, getCommonPartitioningHandle, getDeleteRowIdColumnHandle, getFunctionDependencies, getFunctionMetadata, getFunctions, getInsertLayout, getLayoutForTableExecute, getMaterializedView, getMaterializedViewFreshness, getMaterializedViews, getMergeRowIdColumnHandle, getNewTableLayout, getRowChangeParadigm, getSchemaOwner, getSchemaProperties, getSchemaTableName, getStatisticsCollectionMetadata, getStatisticsCollectionMetadataForWrite, getSystemTable, getTableHandle, getTableHandleForExecute, getTableProperties, getTableSchema, getTableStatistics, getUpdateLayout, getUpdateRowIdColumnHandle, getView, getViews, grantRoles, grantSchemaPrivileges, grantTablePrivileges, listApplicableRoles, listEnabledRoles, listFunctions, listMaterializedViews, listRoleGrants, listRoles, listTableColumns, listTablePrivileges, listViews, makeCompatiblePartitioning, redirectTable, refreshMaterializedView, renameColumn, renameMaterializedView, renameSchema, renameTable, renameView, resolveIndex, revokeRoles, revokeSchemaPrivileges, revokeTablePrivileges, roleExists, schemaExists, setColumnComment, setMaterializedViewProperties, setSchemaAuthorization, setTableAuthorization, setTableComment, setTableProperties, setViewAuthorization, setViewColumnComment, setViewComment, supportsMissingColumnsOnInsert, supportsReportingWrittenBytes, supportsReportingWrittenBytes, truncateTable, validateScan
-
Field Details
-
log
public static final io.airlift.log.Logger log
-
-
Constructor Details
-
HudiMetadata
public HudiMetadata(HiveMetastore metastore, HdfsEnvironment hdfsEnvironment, TypeManager typeManager)
-
-
Method Details
-
listSchemaNames
- Specified by:
listSchemaNamesin interfaceConnectorMetadata
-
getTableHandle
- Specified by:
getTableHandlein interfaceConnectorMetadata
-
getTableMetadata
public ConnectorTableMetadata getTableMetadata(ConnectorSession session, ConnectorTableHandle table) - Specified by:
getTableMetadatain interfaceConnectorMetadata
-
applyFilter
public Optional<ConstraintApplicationResult<ConnectorTableHandle>> applyFilter(ConnectorSession session, ConnectorTableHandle tableHandle, Constraint constraint) - Specified by:
applyFilterin interfaceConnectorMetadata
-
getColumnHandles
public Map<String,ColumnHandle> getColumnHandles(ConnectorSession session, ConnectorTableHandle tableHandle) - Specified by:
getColumnHandlesin interfaceConnectorMetadata
-
getColumnMetadata
public ColumnMetadata getColumnMetadata(ConnectorSession session, ConnectorTableHandle tableHandle, ColumnHandle columnHandle) - Specified by:
getColumnMetadatain interfaceConnectorMetadata
-
getInfo
- Specified by:
getInfoin interfaceConnectorMetadata
-
listTables
public List<SchemaTableName> listTables(ConnectorSession session, Optional<String> optionalSchemaName) - Specified by:
listTablesin interfaceConnectorMetadata
-
streamTableColumns
public Iterator<TableColumnsMetadata> streamTableColumns(ConnectorSession session, SchemaTablePrefix prefix) - Specified by:
streamTableColumnsin interfaceConnectorMetadata
-