Class OrphanFilesDetector
- All Implemented Interfaces:
Serializable
,org.apache.flink.api.common.functions.Function
,org.apache.flink.api.common.functions.RichFunction
@Internal
public class OrphanFilesDetector
extends org.apache.flink.streaming.api.functions.co.KeyedCoProcessFunction<String,String,String,String>
A specialized co-process function that performs an anti-join between two streams of file URIs.
Emits every file that exists in the file system but is not referenced in the table metadata, which are considered orphan files. It also handles URI normalization using provided scheme and authority equivalence mappings.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.flink.streaming.api.functions.co.KeyedCoProcessFunction
org.apache.flink.streaming.api.functions.co.KeyedCoProcessFunction.Context, org.apache.flink.streaming.api.functions.co.KeyedCoProcessFunction.OnTimerContext
-
Constructor Summary
ConstructorsConstructorDescriptionOrphanFilesDetector
(DeleteOrphanFiles.PrefixMismatchMode prefixMismatchMode, Map<String, String> equalSchemes, Map<String, String> equalAuthorities) -
Method Summary
Modifier and TypeMethodDescriptionvoid
onTimer
(long timestamp, org.apache.flink.streaming.api.functions.co.KeyedCoProcessFunction<String, String, String, String>.org.apache.flink.streaming.api.functions.co.KeyedCoProcessFunction.OnTimerContext ctx, org.apache.flink.util.Collector<String> out) void
open
(org.apache.flink.api.common.functions.OpenContext openContext) void
processElement1
(String value, org.apache.flink.streaming.api.functions.co.KeyedCoProcessFunction<String, String, String, String>.org.apache.flink.streaming.api.functions.co.KeyedCoProcessFunction.Context context, org.apache.flink.util.Collector<String> collector) void
processElement2
(String value, org.apache.flink.streaming.api.functions.co.KeyedCoProcessFunction<String, String, String, String>.org.apache.flink.streaming.api.functions.co.KeyedCoProcessFunction.Context context, org.apache.flink.util.Collector<String> collector) Methods inherited from class org.apache.flink.api.common.functions.AbstractRichFunction
close, getIterationRuntimeContext, getRuntimeContext, setRuntimeContext
-
Constructor Details
-
OrphanFilesDetector
-
-
Method Details
-
open
- Specified by:
open
in interfaceorg.apache.flink.api.common.functions.RichFunction
- Overrides:
open
in classorg.apache.flink.api.common.functions.AbstractRichFunction
- Throws:
Exception
-
processElement1
-
processElement2
-
onTimer
-