Class ViewReaderUtil
java.lang.Object
io.trino.plugin.hive.ViewReaderUtil
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classClass to decode Hive view definitionsstatic classSupports decoding of Presto viewsstatic interface -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ViewReaderUtil.ViewReadercreateViewReader(SemiTransactionalHiveMetastore metastore, ConnectorSession session, Table table, TypeManager typeManager, BiFunction<ConnectorSession, SchemaTableName, Optional<CatalogSchemaTableName>> tableRedirectionResolver, MetadataProvider metadataProvider, boolean runHiveViewRunAsInvoker, HiveTimestampPrecision hiveViewsTimestampPrecision) static StringencodeViewData(ConnectorViewDefinition definition) static booleanisHiveView(Table table) static booleanisSomeKindOfAView(Table table) Returns true if table represents a Hive view, Trino/Presto view, materialized view or anything else that gets registered using table type "VIRTUAL_VIEW".static booleanisTrinoMaterializedView(Table table) static booleanisTrinoMaterializedView(String tableType, Map<String, String> tableParameters) static booleanisTrinoView(Table table) Returns true when the table represents a "Trino view" (AKA "presto view").static booleanisTrinoView(String tableType, Map<String, String> tableParameters) Returns true when the table represents a "Trino view" (AKA "presto view").
-
Field Details
-
PRESTO_VIEW_FLAG
- See Also:
-
-
Method Details
-
createViewReader
public static ViewReaderUtil.ViewReader createViewReader(SemiTransactionalHiveMetastore metastore, ConnectorSession session, Table table, TypeManager typeManager, BiFunction<ConnectorSession, SchemaTableName, Optional<CatalogSchemaTableName>> tableRedirectionResolver, MetadataProvider metadataProvider, boolean runHiveViewRunAsInvoker, HiveTimestampPrecision hiveViewsTimestampPrecision) -
isSomeKindOfAView
Returns true if table represents a Hive view, Trino/Presto view, materialized view or anything else that gets registered using table type "VIRTUAL_VIEW". Note: this method returns false for a table that represents Hive's own materialized view ("MATERIALIZED_VIEW" table type). Hive own's materialized views are currently treated as ordinary tables by Trino. -
isHiveView
-
isTrinoView
Returns true when the table represents a "Trino view" (AKA "presto view"). Returns false for Hive views or Trino materialized views. -
isTrinoView
-
isTrinoMaterializedView
-
isTrinoMaterializedView
-
encodeViewData
-