Interface ObjectFlattener<T>
-
public interface ObjectFlattener<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<String,Object>
flatten(T obj)
Transforms an input row object into aMap
, likely based on the instructions in someJSONPathSpec
.Map<String,Object>
toMap(T obj)
-
-
-
Method Detail
-
flatten
Map<String,Object> flatten(T obj)
Transforms an input row object into aMap
, likely based on the instructions in someJSONPathSpec
. This method is used in normal ingestion to extract values into a map to translate into anInputRow
-
toMap
Map<String,Object> toMap(T obj)
Completely transforms an input row into aMap
, including translating all nested structure into plain java objects such asMap
andList
. This method should translate everything as much as possible, ignoring any instructions inJSONPathSpec
which might otherwise limit the amount of transformation done. This method is used by the ingestion "sampler" to provide a "raw" JSON form of the original input data, regardless of actual format, so that it can use "inline" JSON datasources and reduce sampling overhead.
-
-