Class JsonStructureOptions
java.lang.Object
org.apache.drill.exec.store.easy.json.parser.JsonStructureOptions
- Direct Known Subclasses:
JsonLoaderOptions
Input to the JSON structure parser which defines guidelines
for low-level parsing as well as listeners for higher-level
semantics.
-
Field Summary
Modifier and TypeFieldDescriptionboolean
Allow Infinity and NaN for float values.boolean
boolean
This property works only whenskipMalformedRecords
enabled.boolean
If true, the structure parser will attempt to recover from JSON syntax errors by starting over at the next record boundary.boolean
Describes whether or not this reader can unwrap a single root array record and treat it like a set of distinct records. -
Constructor Summary
-
Method Summary
-
Field Details
-
allowNanInf
public boolean allowNanInfAllow Infinity and NaN for float values. -
skipOuterList
public boolean skipOuterListDescribes whether or not this reader can unwrap a single root array record and treat it like a set of distinct records. -
skipMalformedRecords
public boolean skipMalformedRecordsIf true, the structure parser will attempt to recover from JSON syntax errors by starting over at the next record boundary. The Jackson parser has limited recovery abilities. At present, recover can consume two or three valid records before it stabilizes. -
skipMalformedDocument
public boolean skipMalformedDocumentThis property works only whenskipMalformedRecords
enabled. If true,TokenIterator.RecoverableJsonException
will be populated for the case of malformed empty document, so it will be possible to handle this exception by caller. -
enableEscapeAnyChar
public boolean enableEscapeAnyChar
-
-
Constructor Details
-
JsonStructureOptions
public JsonStructureOptions() -
JsonStructureOptions
-