Class ListFileSystemFiles
- All Implemented Interfaces:
Serializable
,org.apache.flink.api.common.functions.Function
,org.apache.flink.api.common.functions.RichFunction
@Internal
public class ListFileSystemFiles
extends org.apache.flink.streaming.api.functions.ProcessFunction<Trigger,String>
Recursively lists the files in the `location` directory. Hidden files, and files younger than the
`minAgeMs` are omitted in the result.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.flink.streaming.api.functions.ProcessFunction
org.apache.flink.streaming.api.functions.ProcessFunction.Context, org.apache.flink.streaming.api.functions.ProcessFunction.OnTimerContext
-
Constructor Summary
ConstructorsConstructorDescriptionListFileSystemFiles
(String taskName, int taskIndex, TableLoader tableLoader, String location, long minAgeMs, boolean usePrefixListing) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
open
(org.apache.flink.api.common.functions.OpenContext openContext) void
processElement
(Trigger trigger, org.apache.flink.streaming.api.functions.ProcessFunction<Trigger, String>.org.apache.flink.streaming.api.functions.ProcessFunction.Context ctx, org.apache.flink.util.Collector<String> out) Methods inherited from class org.apache.flink.streaming.api.functions.ProcessFunction
onTimer
Methods inherited from class org.apache.flink.api.common.functions.AbstractRichFunction
getIterationRuntimeContext, getRuntimeContext, setRuntimeContext
-
Constructor Details
-
ListFileSystemFiles
public ListFileSystemFiles(String taskName, int taskIndex, TableLoader tableLoader, String location, long minAgeMs, boolean usePrefixListing)
-
-
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
-
processElement
-
close
- Specified by:
close
in interfaceorg.apache.flink.api.common.functions.RichFunction
- Overrides:
close
in classorg.apache.flink.api.common.functions.AbstractRichFunction
- Throws:
Exception
-