Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
CsvReaderFormat
✓ org.apache.flink.formats.csv.CsvReaderFormat
Creates a CSV reader format for Flink.
import org.apache.flink.formats.csv.CsvReaderFormat;
import org.apache.flink.api.common.typeinfo.Types;
import org.apache.flink.connector.file.src.FileSource;
import org.apache.flink.core.fs.Path;
public class Example {
public static void main(String[] args) throws Exception {
CsvReaderFormat<String> csvFormat = CsvReaderFormat.forPojo(String.class);
FileSource<String> source = FileSource.forRecordStreamFormat(csvFormat, new Path("file.csv")).build();
System.out.println("CSV source created");
}
}
Debug
Known issues
No known issues recorded.
Audit
Dependencies
No dependency data recorded yet.