Package io.trino.plugin.hudi
Class HudiMetadata
java.lang.Object
io.trino.plugin.hudi.HudiMetadata
- All Implemented Interfaces:
ConnectorMetadata
-
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 -
Constructor Summary
ConstructorsConstructorDescriptionHudiMetadata(HiveMetastore metastore, TrinoFileSystemFactory fileSystemFactory, 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) getSystemTable(ConnectorSession session, SchemaTableName tableName) 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, addField, applyAggregation, applyDelete, applyJoin, applyJoin, applyLimit, applyProjection, applySample, applyTableFunction, applyTableScanRedirect, applyTopN, 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, finishCreateTable, finishInsert, finishMerge, finishRefreshMaterializedView, finishStatisticsCollection, finishTableExecute, getAggregationFunctionMetadata, getCommonPartitioningHandle, getFunctionDependencies, getFunctionMetadata, getFunctions, getInsertLayout, getInsertWriterScalingOptions, getLayoutForTableExecute, getMaterializedView, getMaterializedViewFreshness, getMaterializedViews, getMaxWriterTasks, getMergeRowIdColumnHandle, getNewTableLayout, getNewTableWriterScalingOptions, getRowChangeParadigm, getSchemaOwner, getSchemaProperties, getStatisticsCollectionMetadata, getStatisticsCollectionMetadataForWrite, getSupportedType, getTableHandle, getTableHandleForExecute, getTableName, getTableProperties, getTableSchema, getTableStatistics, getUpdateLayout, getView, getViews, grantRoles, grantSchemaPrivileges, grantTablePrivileges, listApplicableRoles, listEnabledRoles, listFunctions, listMaterializedViews, listRoleGrants, listRoles, listTableColumns, 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, supportsMissingColumnsOnInsert, truncateTable, validateScan
-
Constructor Details
-
HudiMetadata
public HudiMetadata(HiveMetastore metastore, TrinoFileSystemFactory fileSystemFactory, TypeManager typeManager)
-
-
Method Details
-
listSchemaNames
- Specified by:
listSchemaNamesin interfaceConnectorMetadata
-
getTableHandle
- Specified by:
getTableHandlein interfaceConnectorMetadata
-
getSystemTable
- Specified by:
getSystemTablein 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
-