Package io.trino.plugin.pinot
Class PinotMetadata
- java.lang.Object
-
- io.trino.plugin.pinot.PinotMetadata
-
- All Implemented Interfaces:
ConnectorMetadata
public class PinotMetadata extends Object implements ConnectorMetadata
-
-
Field Summary
Fields Modifier and Type Field Description static StringPINOT_COLUMN_NAME_PROPERTYstatic StringSCHEMA_NAME
-
Constructor Summary
Constructors Constructor Description PinotMetadata(PinotClient pinotClient, PinotConfig pinotConfig, ExecutorService executor)
-
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, applyDelete, applyJoin, applyProjection, applySample, applyTableFunction, applyTableScanRedirect, applyTopN, beginCreateTable, beginDelete, beginInsert, 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, finishRefreshMaterializedView, finishStatisticsCollection, finishTableExecute, finishUpdate, getCommonPartitioningHandle, getDeleteRowIdColumnHandle, getInsertLayout, getLayoutForTableExecute, getMaterializedView, getMaterializedViewFreshness, getMaterializedViews, getNewTableLayout, getSchemaOwner, getSchemaProperties, getSchemaTableName, getStatisticsCollectionMetadata, getStatisticsCollectionMetadataForWrite, getSystemTable, getTableHandle, getTableHandleForExecute, getTableHandleForStatisticsCollection, getTableSchema, getTableStatistics, getTableStatistics, getUpdateRowIdColumnHandle, getView, getViews, grantRoles, grantSchemaPrivileges, grantTablePrivileges, isSupportedVersionType, listAllRoleGrants, listApplicableRoles, listEnabledRoles, listMaterializedViews, listRoleGrants, listRoles, listTablePrivileges, listViews, makeCompatiblePartitioning, redirectTable, refreshMaterializedView, renameColumn, renameMaterializedView, renameSchema, renameTable, renameView, resolveIndex, revokeRoles, revokeSchemaPrivileges, revokeTablePrivileges, roleExists, schemaExists, setColumnComment, setMaterializedViewProperties, setSchemaAuthorization, setTableAuthorization, setTableComment, setTableProperties, setViewAuthorization, streamTableColumns, supportsMissingColumnsOnInsert, supportsReportingWrittenBytes, supportsReportingWrittenBytes, truncateTable, validateScan
-
-
-
-
Field Detail
-
PINOT_COLUMN_NAME_PROPERTY
public static final String PINOT_COLUMN_NAME_PROPERTY
- See Also:
- Constant Field Values
-
SCHEMA_NAME
public static final String SCHEMA_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PinotMetadata
@Inject public PinotMetadata(PinotClient pinotClient, PinotConfig pinotConfig, ExecutorService executor)
-
-
Method Detail
-
listSchemaNames
public List<String> listSchemaNames(ConnectorSession session)
- Specified by:
listSchemaNamesin interfaceConnectorMetadata
-
getTableHandle
public PinotTableHandle 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> schemaNameOrNull)
- Specified by:
listTablesin interfaceConnectorMetadata
-
getColumnHandles
public Map<String,ColumnHandle> getColumnHandles(ConnectorSession session, ConnectorTableHandle tableHandle)
- Specified by:
getColumnHandlesin interfaceConnectorMetadata
-
getPinotColumnHandles
public Map<String,ColumnHandle> getPinotColumnHandles(String tableName)
-
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
public Optional<Object> getInfo(ConnectorTableHandle table)
- Specified by:
getInfoin interfaceConnectorMetadata
-
getTableProperties
public ConnectorTableProperties getTableProperties(ConnectorSession session, ConnectorTableHandle table)
- Specified by:
getTablePropertiesin 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
-
getColumnsMetadata
public List<ColumnMetadata> getColumnsMetadata(String tableName)
-
-