Class MaterializedTableManager
java.lang.Object
org.apache.flink.table.gateway.service.materializedtable.MaterializedTableManager
Manager is responsible for execute the
MaterializedTableOperation.-
Constructor Summary
ConstructorsConstructorDescriptionMaterializedTableManager(org.apache.flink.configuration.Configuration configuration, URLClassLoader userCodeClassLoader) -
Method Summary
Modifier and TypeMethodDescriptioncallMaterializedTableOperation(OperationExecutor operationExecutor, org.apache.flink.table.gateway.api.operation.OperationHandle handle, org.apache.flink.table.operations.materializedtable.MaterializedTableOperation op, String statement) voidclose()protected static StringgetInsertStatement(org.apache.flink.table.catalog.ObjectIdentifier materializedTableIdentifier, String definitionQuery, Map<String, String> dynamicOptions) Generate insert statement for materialized table.protected static StringgetRefreshStatement(org.apache.flink.table.catalog.ObjectIdentifier tableIdentifier, String definitionQuery, Map<String, String> partitionSpec, Map<String, String> dynamicOptions) voidopen()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, String scheduleTime)
-
Constructor Details
-
MaterializedTableManager
public MaterializedTableManager(org.apache.flink.configuration.Configuration configuration, URLClassLoader userCodeClassLoader)
-
-
Method Details
-
open
- Throws:
Exception
-
close
- 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
-
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.
-