| Package | Description |
|---|---|
| org.apache.flink.streaming.api.environment | |
| org.apache.flink.streaming.api.functions.source |
| Modifier and Type | Method and Description |
|---|---|
<OUT> DataStreamSource<OUT> |
StreamExecutionEnvironment.readFile(org.apache.flink.api.common.io.FileInputFormat<OUT> inputFormat,
String filePath,
FileProcessingMode watchType,
long interval)
Reads the contents of the user-specified
filePath based on the given FileInputFormat. |
<OUT> DataStreamSource<OUT> |
StreamExecutionEnvironment.readFile(org.apache.flink.api.common.io.FileInputFormat<OUT> inputFormat,
String filePath,
FileProcessingMode watchType,
long interval,
org.apache.flink.api.common.io.FilePathFilter filter)
Deprecated.
Use
FileInputFormat.setFilesFilter(FilePathFilter) to set a filter and
StreamExecutionEnvironment.readFile(FileInputFormat, String, FileProcessingMode,
long) |
<OUT> DataStreamSource<OUT> |
StreamExecutionEnvironment.readFile(org.apache.flink.api.common.io.FileInputFormat<OUT> inputFormat,
String filePath,
FileProcessingMode watchType,
long interval,
org.apache.flink.api.common.typeinfo.TypeInformation<OUT> typeInformation)
Reads the contents of the user-specified
filePath based on the given FileInputFormat. |
| Modifier and Type | Method and Description |
|---|---|
static FileProcessingMode |
FileProcessingMode.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FileProcessingMode[] |
FileProcessingMode.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Constructor and Description |
|---|
ContinuousFileMonitoringFunction(org.apache.flink.api.common.io.FileInputFormat<OUT> format,
FileProcessingMode watchType,
int readerParallelism,
long interval) |
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.