November 2019
Intermediate to advanced
304 pages
8h 40m
English
JacksonRecordReader is a record reader that uses the Jackson API. Just like JacksonLineRecordReader, it also supports JSON, XML, and YAML formats. For JacksonRecordReader, the user needs to provide a list of fields to read from the JSON/XML/YAML file. This may look complicated, but it allows us to parse the files under the following conditions:
JacksonRecordReader can also be used with PathLabelGenerator to append the label based on the file path.