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

    Fields
    Modifier and Type
    Field
    Description
    protected final org.apache.flink.streaming.api.environment.StreamExecutionEnvironment
     

    Fields inherited from class org.apache.flink.table.api.internal.TableEnvironmentImpl

    execEnv, functionCatalog, planner, resourceManager, tableConfig
  • Constructor Summary

    Constructors
    Constructor
    Description
    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 Summary

    Modifier and Type
    Method
    Description
    protected <T> DataStreamQueryOperation<T>
    asQueryOperation(org.apache.flink.streaming.api.datastream.DataStream<T> dataStream, Optional<List<org.apache.flink.table.expressions.Expression>> fields)
     
    void
    attachAsDataStream(List<org.apache.flink.table.operations.ModifyOperation> modifyOperations)
     
    org.apache.flink.streaming.api.environment.StreamExecutionEnvironment
    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.Table
    fromStreamInternal(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.Executor
    lookupExecutor(ClassLoader classLoader, org.apache.flink.streaming.api.environment.StreamExecutionEnvironment executionEnvironment)
     
    protected org.apache.flink.table.operations.QueryOperation
    qualifyQueryOperation(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 void
    validateTimeCharacteristic(boolean isRowtimeDefined)
     
    protected <T> org.apache.flink.table.types.DataType
    wrapWithChangeFlag(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, useModules

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.flink.table.api.TableEnvironment

    executePlan, explainSql

    Methods 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:
      qualifyQueryOperation in class org.apache.flink.table.api.internal.TableEnvironmentImpl
    • attachAsDataStream

      public void attachAsDataStream(List<org.apache.flink.table.operations.ModifyOperation> modifyOperations)