public interface ObjectFlattener<T>
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
flatten(T obj)
Transforms an input row object into a
Map, likely based on the instructions in some JSONPathSpec. |
Map<String,Object> |
toMap(T obj)
|
Map<String,Object> flatten(T obj)
Map, likely based on the instructions in some JSONPathSpec.
This method is used in normal ingestion to extract values into a map to translate into an
InputRowMap<String,Object> toMap(T obj)
Map, including translating all nested structure into plain java
objects such as Map and List. This method should translate everything as much as
possible, ignoring any instructions in JSONPathSpec 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.Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.