Class AbstractStreamTableEnvironmentImpl
java.lang.Object
org.apache.flink.table.api.internal.TableEnvironmentImpl
org.apache.flink.table.api.bridge.internal.AbstractStreamTableEnvironmentImpl
- All Implemented Interfaces:
org.apache.flink.table.api.internal.TableEnvironmentInternal,org.apache.flink.table.api.TableEnvironment
@Internal
public abstract class AbstractStreamTableEnvironmentImpl
extends org.apache.flink.table.api.internal.TableEnvironmentImpl
Abstract class to implement a
StreamTableEnvironment.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.apache.flink.streaming.api.environment.StreamExecutionEnvironmentFields inherited from class org.apache.flink.table.api.internal.TableEnvironmentImpl
execEnv, functionCatalog, planner, resourceManager, tableConfig -
Constructor Summary
ConstructorsConstructorDescriptionAbstractStreamTableEnvironmentImpl(org.apache.flink.table.catalog.CatalogManager catalogManager, org.apache.flink.table.module.ModuleManager moduleManager, org.apache.flink.table.resource.ResourceManager resourceManager, org.apache.flink.table.api.TableConfig tableConfig, org.apache.flink.table.delegation.Executor executor, org.apache.flink.table.catalog.FunctionCatalog functionCatalog, org.apache.flink.table.delegation.Planner planner, boolean isStreamingMode, org.apache.flink.streaming.api.environment.StreamExecutionEnvironment executionEnvironment) -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> DataStreamQueryOperation<T>asQueryOperation(org.apache.flink.streaming.api.datastream.DataStream<T> dataStream, Optional<List<org.apache.flink.table.expressions.Expression>> fields) voidattachAsDataStream(List<org.apache.flink.table.operations.ModifyOperation> modifyOperations) org.apache.flink.streaming.api.environment.StreamExecutionEnvironmentexecEnv()This is a temporary workaround for Python API.protected <T> org.apache.flink.api.common.typeinfo.TypeInformation<T>extractTypeInformation(org.apache.flink.table.api.Table table, Class<T> clazz) protected <T> org.apache.flink.table.api.TablefromStreamInternal(org.apache.flink.streaming.api.datastream.DataStream<T> dataStream, org.apache.flink.table.api.Schema schema, String viewPath, org.apache.flink.table.connector.ChangelogMode changelogMode) static org.apache.flink.table.delegation.ExecutorlookupExecutor(ClassLoader classLoader, org.apache.flink.streaming.api.environment.StreamExecutionEnvironment executionEnvironment) protected org.apache.flink.table.operations.QueryOperationqualifyQueryOperation(org.apache.flink.table.catalog.ObjectIdentifier identifier, org.apache.flink.table.operations.QueryOperation queryOperation) protected <T> org.apache.flink.streaming.api.datastream.DataStream<T>toStreamInternal(org.apache.flink.table.api.Table table, org.apache.flink.table.catalog.SchemaTranslator.ProducingResult schemaTranslationResult, org.apache.flink.table.connector.ChangelogMode changelogMode) protected <T> org.apache.flink.streaming.api.datastream.DataStream<T>toStreamInternal(org.apache.flink.table.api.Table table, org.apache.flink.table.operations.ModifyOperation modifyOperation) protected voidvalidateTimeCharacteristic(boolean isRowtimeDefined) protected <T> org.apache.flink.table.types.DataTypewrapWithChangeFlag(org.apache.flink.api.common.typeinfo.TypeInformation<T> outputType) Methods inherited from class org.apache.flink.table.api.internal.TableEnvironmentImpl
compilePlan, compilePlanSql, create, create, createCatalog, createFunction, createFunction, createFunction, createFunction, createStatementSet, createTable, createTable, createTable, createTemporaryFunction, createTemporaryFunction, createTemporaryFunction, createTemporarySystemFunction, createTemporarySystemFunction, createTemporarySystemFunction, createTemporaryTable, createTemporaryTable, createTemporaryView, createView, createView, dropFunction, dropTable, dropTable, dropTemporaryFunction, dropTemporarySystemFunction, dropTemporaryTable, dropTemporaryView, dropView, dropView, executeCachedPlanInternal, executeInternal, executeInternal, executePlan, executeSql, explainInternal, explainPlan, explainSql, from, from, fromTableSource, fromValues, fromValues, fromValues, fromValues, fromValues, fromValues, generatePipelineFromQueryOperation, getCatalog, getCatalogManager, getCompletionHints, getConfig, getCurrentCatalog, getCurrentDatabase, getOperationTreeBuilder, getParser, getPlanner, listCatalogs, listDatabases, listFullModules, listFunctions, listModules, listTables, listTables, listTemporaryTables, listTemporaryViews, listUserDefinedFunctions, listViews, loadModule, loadPlan, registerCatalog, registerFunction, registerTable, scan, sqlQuery, translate, unloadModule, useCatalog, useDatabase, useModulesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.flink.table.api.TableEnvironment
executePlan, explainSqlMethods inherited from interface org.apache.flink.table.api.internal.TableEnvironmentInternal
explainInternal
-
Field Details
-
executionEnvironment
protected final org.apache.flink.streaming.api.environment.StreamExecutionEnvironment executionEnvironment
-
-
Constructor Details
-
AbstractStreamTableEnvironmentImpl
public AbstractStreamTableEnvironmentImpl(org.apache.flink.table.catalog.CatalogManager catalogManager, org.apache.flink.table.module.ModuleManager moduleManager, org.apache.flink.table.resource.ResourceManager resourceManager, org.apache.flink.table.api.TableConfig tableConfig, org.apache.flink.table.delegation.Executor executor, org.apache.flink.table.catalog.FunctionCatalog functionCatalog, org.apache.flink.table.delegation.Planner planner, boolean isStreamingMode, org.apache.flink.streaming.api.environment.StreamExecutionEnvironment executionEnvironment)
-
-
Method Details
-
lookupExecutor
public static org.apache.flink.table.delegation.Executor lookupExecutor(ClassLoader classLoader, org.apache.flink.streaming.api.environment.StreamExecutionEnvironment executionEnvironment) -
fromStreamInternal
protected <T> org.apache.flink.table.api.Table fromStreamInternal(org.apache.flink.streaming.api.datastream.DataStream<T> dataStream, @Nullable org.apache.flink.table.api.Schema schema, @Nullable String viewPath, org.apache.flink.table.connector.ChangelogMode changelogMode) -
toStreamInternal
protected <T> org.apache.flink.streaming.api.datastream.DataStream<T> toStreamInternal(org.apache.flink.table.api.Table table, org.apache.flink.table.catalog.SchemaTranslator.ProducingResult schemaTranslationResult, @Nullable org.apache.flink.table.connector.ChangelogMode changelogMode) -
toStreamInternal
protected <T> org.apache.flink.streaming.api.datastream.DataStream<T> toStreamInternal(org.apache.flink.table.api.Table table, org.apache.flink.table.operations.ModifyOperation modifyOperation) -
execEnv
@Internal public org.apache.flink.streaming.api.environment.StreamExecutionEnvironment execEnv()This is a temporary workaround for Python API. Python API should not use StreamExecutionEnvironment at all. -
extractTypeInformation
protected <T> org.apache.flink.api.common.typeinfo.TypeInformation<T> extractTypeInformation(org.apache.flink.table.api.Table table, Class<T> clazz) -
wrapWithChangeFlag
protected <T> org.apache.flink.table.types.DataType wrapWithChangeFlag(org.apache.flink.api.common.typeinfo.TypeInformation<T> outputType) -
asQueryOperation
protected <T> DataStreamQueryOperation<T> asQueryOperation(org.apache.flink.streaming.api.datastream.DataStream<T> dataStream, Optional<List<org.apache.flink.table.expressions.Expression>> fields) -
validateTimeCharacteristic
protected void validateTimeCharacteristic(boolean isRowtimeDefined) -
qualifyQueryOperation
protected org.apache.flink.table.operations.QueryOperation qualifyQueryOperation(org.apache.flink.table.catalog.ObjectIdentifier identifier, org.apache.flink.table.operations.QueryOperation queryOperation) - Overrides:
qualifyQueryOperationin classorg.apache.flink.table.api.internal.TableEnvironmentImpl
-
attachAsDataStream
public void attachAsDataStream(List<org.apache.flink.table.operations.ModifyOperation> modifyOperations)
-