Record Readers
RecordReader implementations — CSV, JSON, image, regex, line, and custom readers
The RecordReader Interface
Method
Description
InputSplit
FileSplit
// All files under a directory
InputSplit split = new FileSplit(new File("/data/train/"));
// Only CSV files, shuffled
InputSplit split = new FileSplit(
new File("/data/train/"),
new String[]{"csv"},
new Random(42)
);
// A single file
InputSplit split = new FileSplit(new File("/data/train.csv"));NumberedFileInputSplit
CollectionInputSplit
InputStreamInputSplit
CSV Readers
CSVRecordReader
CSVSequenceRecordReader
CSVRegexRecordReader
CSVVariableSlidingWindowRecordReader
Text Readers
LineRecordReader
RegexLineRecordReader
RegexSequenceRecordReader
ListStringRecordReader
JSON / XML / YAML Readers
JacksonRecordReader
Image Reader
ImageRecordReader
File Reader
FileRecordReader
Sparse Format Readers
LibSvmRecordReader and SVMLightRecordReader
Collection Readers
CollectionRecordReader
CollectionSequenceRecordReader
Combining Readers
ConcatenatingRecordReader
TransformProcessRecordReader
Adding Listeners
Choosing the Right Reader
Your data
Use
Last updated
Was this helpful?