public class ListHiveFilesFunction extends CopyProcessFunction<org.apache.flink.api.java.tuple.Tuple2<Identifier,Identifier>,CloneFileInfo>
dataFileSerializer, hiveCatalog, sourceCatalogConfig, tableCache, targetCatalog, targetCatalogConfig
Constructor and Description |
---|
ListHiveFilesFunction(Map<String,String> sourceCatalogConfig,
Map<String,String> targetCatalogConfig,
String whereSql) |
Modifier and Type | Method and Description |
---|---|
static PartitionPredicate |
getPartitionPredicate(String whereSql,
RowType partitionType,
Identifier tableId) |
void |
processElement(org.apache.flink.api.java.tuple.Tuple2<Identifier,Identifier> tuple,
org.apache.flink.streaming.api.functions.ProcessFunction.Context context,
org.apache.flink.util.Collector<CloneFileInfo> collector) |
close, getTable, open
public void processElement(org.apache.flink.api.java.tuple.Tuple2<Identifier,Identifier> tuple, org.apache.flink.streaming.api.functions.ProcessFunction.Context context, org.apache.flink.util.Collector<CloneFileInfo> collector) throws Exception
processElement
in class org.apache.flink.streaming.api.functions.ProcessFunction<org.apache.flink.api.java.tuple.Tuple2<Identifier,Identifier>,CloneFileInfo>
Exception
@VisibleForTesting @Nullable public static PartitionPredicate getPartitionPredicate(@Nullable String whereSql, RowType partitionType, Identifier tableId) throws Exception
Exception
Copyright © 2023–2025 The Apache Software Foundation. All rights reserved.