Package io.trino.plugin.elasticsearch
Class ElasticsearchMetadata
java.lang.Object
io.trino.plugin.elasticsearch.ElasticsearchMetadata
- All Implemented Interfaces:
ConnectorMetadata
-
Field Summary
Fields inherited from interface io.trino.spi.connector.ConnectorMetadata
MODIFYING_ROWS_MESSAGE -
Constructor Summary
ConstructorsConstructorDescriptionElasticsearchMetadata(TypeManager typeManager, ElasticsearchClient client, ElasticsearchConfig config) -
Method Summary
Modifier and TypeMethodDescriptionapplyFilter(ConnectorSession session, ConnectorTableHandle table, Constraint constraint) applyLimit(ConnectorSession session, ConnectorTableHandle table, long limit) applyTableFunction(ConnectorSession session, ConnectorTableFunctionHandle handle) static IndexMetadata.FieldelementField(IndexMetadata.Field field) getColumnHandles(ConnectorSession session, ConnectorTableHandle tableHandle) getColumnMetadata(ConnectorSession session, ConnectorTableHandle tableHandle, ColumnHandle columnHandle) getTableHandle(ConnectorSession session, SchemaTableName tableName) getTableMetadata(ConnectorSession session, ConnectorTableHandle table) getTableProperties(ConnectorSession session, ConnectorTableHandle table) protected static booleanisSupportedLikeCall(Call call) protected static StringlikeToRegexp(io.airlift.slice.Slice pattern, Optional<io.airlift.slice.Slice> escape) listSchemaNames(ConnectorSession session) listTableColumns(ConnectorSession session, SchemaTablePrefix prefix) listTables(ConnectorSession session, Optional<String> schemaName) 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, applyProjection, applySample, 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, getInfo, getInsertLayout, getLayoutForTableExecute, getMaterializedView, getMaterializedViewFreshness, getMaterializedViews, getMergeRowIdColumnHandle, getNewTableLayout, getRowChangeParadigm, getSchemaOwner, getSchemaProperties, getSchemaTableName, getStatisticsCollectionMetadata, getStatisticsCollectionMetadataForWrite, getSystemTable, getTableHandle, getTableHandleForExecute, 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, supportsMissingColumnsOnInsert, supportsReportingWrittenBytes, supportsReportingWrittenBytes, truncateTable, validateScan
-
Constructor Details
-
ElasticsearchMetadata
@Inject public ElasticsearchMetadata(TypeManager typeManager, ElasticsearchClient client, ElasticsearchConfig config)
-
-
Method Details
-
listSchemaNames
- Specified by:
listSchemaNamesin interfaceConnectorMetadata
-
getTableHandle
- Specified by:
getTableHandlein interfaceConnectorMetadata
-
getTableMetadata
public ConnectorTableMetadata getTableMetadata(ConnectorSession session, ConnectorTableHandle table) - Specified by:
getTableMetadatain interfaceConnectorMetadata
-
elementField
-
listTables
- Specified by:
listTablesin 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
-
listTableColumns
public Map<SchemaTableName,List<ColumnMetadata>> listTableColumns(ConnectorSession session, SchemaTablePrefix prefix) - Specified by:
listTableColumnsin interfaceConnectorMetadata
-
streamTableColumns
public Iterator<TableColumnsMetadata> streamTableColumns(ConnectorSession session, SchemaTablePrefix prefix) - Specified by:
streamTableColumnsin 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
-
isSupportedLikeCall
-
likeToRegexp
-
applyTableFunction
public Optional<TableFunctionApplicationResult<ConnectorTableHandle>> applyTableFunction(ConnectorSession session, ConnectorTableFunctionHandle handle) - Specified by:
applyTableFunctionin interfaceConnectorMetadata
-