public abstract class ActionBase extends Object implements Action
Action
for table.Modifier and Type | Field and Description |
---|---|
protected org.apache.flink.table.api.bridge.java.StreamTableEnvironment |
batchTEnv |
protected Catalog |
catalog |
protected String |
catalogName |
protected Options |
catalogOptions |
protected org.apache.flink.streaming.api.environment.StreamExecutionEnvironment |
env |
protected FlinkCatalog |
flinkCatalog |
Constructor and Description |
---|
ActionBase(String warehouse,
Map<String,String> catalogConfig) |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
catalogConfig() |
protected Catalog.Loader |
catalogLoader() |
protected boolean |
compatibleCheck(List<DataType> actualTypes,
List<DataType> expectedTypes)
Check whether each
DataType of actualTypes is compatible with that of expectedTypes
respectively. |
protected void |
execute(String defaultName) |
protected FlinkCatalog |
initFlinkCatalog() |
protected void |
initFlinkEnv(org.apache.flink.streaming.api.environment.StreamExecutionEnvironment env) |
protected Catalog |
initPaimonCatalog() |
protected List<DataType> |
toPaimonTypes(List<org.apache.flink.table.types.DataType> flinkDataTypes)
|
ActionBase |
withStreamExecutionEnvironment(org.apache.flink.streaming.api.environment.StreamExecutionEnvironment env) |
protected final Options catalogOptions
protected final Catalog catalog
protected final FlinkCatalog flinkCatalog
protected final String catalogName
protected org.apache.flink.streaming.api.environment.StreamExecutionEnvironment env
protected org.apache.flink.table.api.bridge.java.StreamTableEnvironment batchTEnv
public ActionBase withStreamExecutionEnvironment(org.apache.flink.streaming.api.environment.StreamExecutionEnvironment env)
protected Catalog initPaimonCatalog()
protected FlinkCatalog initFlinkCatalog()
protected void initFlinkEnv(org.apache.flink.streaming.api.environment.StreamExecutionEnvironment env)
protected Catalog.Loader catalogLoader()
protected List<DataType> toPaimonTypes(List<org.apache.flink.table.types.DataType> flinkDataTypes)
protected boolean compatibleCheck(List<DataType> actualTypes, List<DataType> expectedTypes)
DataType
of actualTypes is compatible with that of expectedTypes
respectively.@VisibleForTesting public Map<String,String> catalogConfig()
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.