public class JsonPathRowRecordReader extends AbstractJsonRowRecordReader
| Modifier and Type | Field and Description |
|---|---|
private InputStream |
in |
private LinkedHashMap<String,com.jayway.jsonpath.JsonPath> |
jsonPaths |
private org.apache.nifi.logging.ComponentLog |
logger |
private RecordSchema |
schema |
private static com.jayway.jsonpath.Configuration |
STRICT_PROVIDER_CONFIGURATION |
| Constructor and Description |
|---|
JsonPathRowRecordReader(LinkedHashMap<String,com.jayway.jsonpath.JsonPath> jsonPaths,
RecordSchema schema,
InputStream in,
org.apache.nifi.logging.ComponentLog logger,
String dateFormat,
String timeFormat,
String timestampFormat) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected Object |
convert(Object value,
DataType dataType,
String fieldName) |
protected Object |
convert(Object value,
DataType dataType,
String fieldName,
Object defaultValue) |
protected Record |
convertJsonNodeToRecord(com.fasterxml.jackson.databind.JsonNode jsonNode,
RecordSchema schema,
boolean coerceTypes,
boolean dropUnknownFields) |
RecordSchema |
getSchema() |
getCapturedFields, getLazyDateFormat, getLazyTimeFormat, getLazyTimestampFormat, getNextJsonNode, getRawNodeValue, getRawNodeValue, nextRecordclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateRecordSet, nextRecordprivate static final com.jayway.jsonpath.Configuration STRICT_PROVIDER_CONFIGURATION
private final org.apache.nifi.logging.ComponentLog logger
private final LinkedHashMap<String,com.jayway.jsonpath.JsonPath> jsonPaths
private final InputStream in
private RecordSchema schema
public JsonPathRowRecordReader(LinkedHashMap<String,com.jayway.jsonpath.JsonPath> jsonPaths, RecordSchema schema, InputStream in, org.apache.nifi.logging.ComponentLog logger, String dateFormat, String timeFormat, String timestampFormat) throws MalformedRecordException, IOException
MalformedRecordExceptionIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class AbstractJsonRowRecordReaderIOExceptionpublic RecordSchema getSchema()
protected Record convertJsonNodeToRecord(com.fasterxml.jackson.databind.JsonNode jsonNode, RecordSchema schema, boolean coerceTypes, boolean dropUnknownFields)
convertJsonNodeToRecord in class AbstractJsonRowRecordReaderCopyright © 2023 Apache NiFi Project. All rights reserved.