Package io.trino.plugin.pinot
Class PinotMetadata
java.lang.Object
io.trino.plugin.pinot.PinotMetadata
- All Implemented Interfaces:
ConnectorMetadata
-
Field Summary
FieldsFields inherited from interface io.trino.spi.connector.ConnectorMetadata
MODIFYING_ROWS_MESSAGE -
Constructor Summary
ConstructorsConstructorDescriptionPinotMetadata(PinotClient pinotClient, PinotConfig pinotConfig, ExecutorService executor, PinotTypeConverter typeConverter) -
Method Summary
Modifier and TypeMethodDescriptionapplyAggregation(ConnectorSession session, ConnectorTableHandle handle, List<AggregateFunction> aggregates, Map<String, ColumnHandle> assignments, List<List<ColumnHandle>> groupingSets) applyFilter(ConnectorSession session, ConnectorTableHandle table, Constraint constraint) applyLimit(ConnectorSession session, ConnectorTableHandle table, long limit) getColumnHandles(ConnectorSession session, ConnectorTableHandle tableHandle) getColumnMetadata(ConnectorSession session, ConnectorTableHandle tableHandle, ColumnHandle columnHandle) getColumnsMetadata(String tableName) getInfo(ConnectorTableHandle table) getPinotColumnHandles(String tableName) getTableHandle(ConnectorSession session, SchemaTableName tableName) getTableMetadata(ConnectorSession session, ConnectorTableHandle table) listSchemaNames(ConnectorSession session) listTableColumns(ConnectorSession session, SchemaTablePrefix prefix) listTables(ConnectorSession session, Optional<String> schemaNameOrNull) static PinotColumnHandletoNonAggregateColumnHandle(PinotColumnHandle columnHandle) 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, applyDelete, applyJoin, applyJoin, 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, getLayoutForTableExecute, getMaterializedView, getMaterializedViewFreshness, getMaterializedViews, getMergeRowIdColumnHandle, getNewTableLayout, getRowChangeParadigm, getSchemaOwner, getSchemaProperties, getSchemaTableName, getStatisticsCollectionMetadata, getStatisticsCollectionMetadataForWrite, getSystemTable, getTableHandle, getTableHandleForExecute, getTableProperties, getTableSchema, getTableStatistics, getUpdateLayout, getView, getViews, grantRoles, grantSchemaPrivileges, grantTablePrivileges, listApplicableRoles, listEnabledRoles, listFunctions, listMaterializedViews, listRoleGrants, listRoles, listTablePrivileges, listViews, makeCompatiblePartitioning, redirectTable, refreshMaterializedView, renameColumn, renameMaterializedView, renameSchema, renameTable, renameView, resolveIndex, revokeRoles, revokeSchemaPrivileges, revokeTablePrivileges, roleExists, schemaExists, setColumnComment, setColumnType, setMaterializedViewProperties, setSchemaAuthorization, setTableAuthorization, setTableComment, setTableProperties, setViewAuthorization, setViewColumnComment, setViewComment, streamTableColumns, supportsMissingColumnsOnInsert, supportsReportingWrittenBytes, supportsReportingWrittenBytes, truncateTable, validateScan
-
Field Details
-
SCHEMA_NAME
- See Also:
-
-
Constructor Details
-
PinotMetadata
@Inject public PinotMetadata(PinotClient pinotClient, PinotConfig pinotConfig, ExecutorService executor, PinotTypeConverter typeConverter)
-
-
Method Details
-
listSchemaNames
- Specified by:
listSchemaNamesin interfaceConnectorMetadata
-
getTableHandle
- 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> schemaNameOrNull) - Specified by:
listTablesin interfaceConnectorMetadata
-
getColumnHandles
public Map<String,ColumnHandle> getColumnHandles(ConnectorSession session, ConnectorTableHandle tableHandle) - Specified by:
getColumnHandlesin interfaceConnectorMetadata
-
getPinotColumnHandles
-
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
-
getInfo
- Specified by:
getInfoin interfaceConnectorMetadata
-
applyLimit
public Optional<LimitApplicationResult<ConnectorTableHandle>> applyLimit(ConnectorSession session, ConnectorTableHandle table, long limit) - Specified by:
applyLimitin interfaceConnectorMetadata
-
applyFilter
public Optional<ConstraintApplicationResult<ConnectorTableHandle>> applyFilter(ConnectorSession session, ConnectorTableHandle table, Constraint constraint) - Specified by:
applyFilterin interfaceConnectorMetadata
-
applyAggregation
public Optional<AggregationApplicationResult<ConnectorTableHandle>> applyAggregation(ConnectorSession session, ConnectorTableHandle handle, List<AggregateFunction> aggregates, Map<String, ColumnHandle> assignments, List<List<ColumnHandle>> groupingSets) - Specified by:
applyAggregationin interfaceConnectorMetadata
-
toNonAggregateColumnHandle
-
getColumnsMetadata
-