Class MaterializedTableManager

java.lang.Object
org.apache.flink.table.gateway.service.materializedtable.MaterializedTableManager

@Internal public class MaterializedTableManager extends Object
Manager is responsible for execute the MaterializedTableOperation.
  • Constructor Details

    • MaterializedTableManager

      public MaterializedTableManager(org.apache.flink.configuration.Configuration configuration, URLClassLoader userCodeClassLoader)
  • Method Details

    • open

      public void open() throws Exception
      Throws:
      Exception
    • close

      public void close() throws Exception
      Throws:
      Exception
    • callMaterializedTableOperation

      public ResultFetcher callMaterializedTableOperation(OperationExecutor operationExecutor, org.apache.flink.table.gateway.api.operation.OperationHandle handle, org.apache.flink.table.operations.materializedtable.MaterializedTableOperation op, String statement)
    • refreshMaterializedTable

      public ResultFetcher refreshMaterializedTable(OperationExecutor operationExecutor, org.apache.flink.table.gateway.api.operation.OperationHandle handle, org.apache.flink.table.catalog.ObjectIdentifier materializedTableIdentifier, Map<String,String> staticPartitions, Map<String,String> dynamicOptions, boolean isPeriodic, @Nullable String scheduleTime)
    • getRefreshStatement

      @VisibleForTesting protected static String getRefreshStatement(org.apache.flink.table.catalog.ObjectIdentifier tableIdentifier, String definitionQuery, Map<String,String> partitionSpec, Map<String,String> dynamicOptions)
    • getInsertStatement

      @VisibleForTesting protected static String getInsertStatement(org.apache.flink.table.catalog.ObjectIdentifier materializedTableIdentifier, String definitionQuery, Map<String,String> dynamicOptions)
      Generate insert statement for materialized table.