[HUDI-1327] Introduce base implemetation of hudi-flink-client (#2176)
This commit is contained in:
@@ -39,7 +39,7 @@ public abstract class HoodieEngineContext {
|
||||
*/
|
||||
private SerializableConfiguration hadoopConf;
|
||||
|
||||
private TaskContextSupplier taskContextSupplier;
|
||||
protected TaskContextSupplier taskContextSupplier;
|
||||
|
||||
public HoodieEngineContext(SerializableConfiguration hadoopConf, TaskContextSupplier taskContextSupplier) {
|
||||
this.hadoopConf = hadoopConf;
|
||||
|
||||
@@ -102,11 +102,11 @@ public abstract class HoodieTable<T extends HoodieRecordPayload, I, K, O> implem
|
||||
this.viewManager = FileSystemViewManager.createViewManager(hadoopConfiguration,
|
||||
config.getViewStorageConfig());
|
||||
this.metaClient = metaClient;
|
||||
this.index = getIndex(config);
|
||||
this.index = getIndex(config, context);
|
||||
this.taskContextSupplier = context.getTaskContextSupplier();
|
||||
}
|
||||
|
||||
protected abstract HoodieIndex<T, I, K, O> getIndex(HoodieWriteConfig config);
|
||||
protected abstract HoodieIndex<T, I, K, O> getIndex(HoodieWriteConfig config, HoodieEngineContext context);
|
||||
|
||||
private synchronized FileSystemViewManager getViewManager() {
|
||||
if (null == viewManager) {
|
||||
|
||||
Reference in New Issue
Block a user