Class MaterializedTableManager
- java.lang.Object
-
- org.apache.flink.table.gateway.service.materializedtable.MaterializedTableManager
-
@Internal public class MaterializedTableManager extends Object
Manager is responsible for execute theMaterializedTableOperation.
-
-
Constructor Summary
Constructors Constructor Description MaterializedTableManager(org.apache.flink.configuration.Configuration configuration, URLClassLoader userCodeClassLoader)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ResultFetchercallMaterializedTableOperation(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()ResultFetcherrefreshMaterializedTable(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 Detail
-
MaterializedTableManager
public MaterializedTableManager(org.apache.flink.configuration.Configuration configuration, URLClassLoader userCodeClassLoader)
-
-
Method Detail
-
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)
-
-