public static interface JsonRecordReader.Handler
Modifier and Type | Method and Description |
---|---|
void |
handle(Map<String,Object> record,
String path) |
void handle(Map<String,Object> record, String path)
record
- The record map. The key is the field name as provided in
the addField() methods. The value can be a single String (for single
valued fields) or a List<String> (for multiValued).
This map is mutable. DO NOT alter the map or store it for later use.
If it must be stored, make a deep copy before doing sopath
- The forEach path for which this record is being emitted
If there is any change all parsing will be aborted and the Exception
is propagated upCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.