Class JsonLoaderOptions
java.lang.Object
org.apache.drill.exec.store.easy.json.parser.JsonStructureOptions
org.apache.drill.exec.store.easy.json.loader.JsonLoaderOptions
Extends the 
JsonStructureOptions class, which provides
 JSON syntactic options, with a number of semantic options enforced
 at the JSON loader level.- 
Field SummaryFieldsModifier and TypeFieldDescriptionbooleanJSON returns values as typed tokens.booleanDrill prior to version 1.18 would read a null string array element as the string "null".booleanEnable support for Mongo-style extended types:
 { field: { "$type": value }, ...Type to use for a field which contains all nulls, or all empty arrays.booleanForces all numbers to be double, even if the first number that appears is an integer.booleanbooleanIf a field contains all nulls, all empty arrays, or the first non-empty array contains a null ([ null, ... ], then the default action is to read the column as JSON: literally convert the values (of any JSON complexity) to JSON string of that structure.Fields inherited from class org.apache.drill.exec.store.easy.json.parser.JsonStructureOptionsallowNanInf, enableEscapeAnyChar, skipMalformedDocument, skipMalformedRecords, skipOuterList
- 
Constructor SummaryConstructors
- 
Method Summary
- 
Field Details- 
allTextModepublic boolean allTextModeJSON returns values as typed tokens. IfallTextModeis set, the structure parser converts all scalars (exceptnull) to text and forwards the values to the listener as text. Implements Drill's "all-text mode" for JSON.
- 
readNumbersAsDoublepublic boolean readNumbersAsDoubleForces all numbers to be double, even if the first number that appears is an integer.
- 
unionEnabledpublic boolean unionEnabled
- 
classicArrayNullspublic boolean classicArrayNullsDrill prior to version 1.18 would read a null string array element as the string "null". Drill 1.18 and later reads the same token as a blank string. This flag forces the pre-1.18 behavior.For {a: [null]}- If true: --> "null"
- if false: --> ""
 
- 
unknownsAsJsonpublic boolean unknownsAsJsonIf a field contains all nulls, all empty arrays, or the first non-empty array contains a null ([ null, ... ], then the default action is to read the column as JSON: literally convert the values (of any JSON complexity) to JSON string of that structure. Iffalse, then uses the default type.
- 
nullTypeType to use for a field which contains all nulls, or all empty arrays. Also the default type for an array that starts with thenullvalue, ifunknownsAsJsonisfalse.
- 
enableExtendedTypespublic boolean enableExtendedTypesEnable support for Mongo-style extended types:
 { field: { "$type": value }, ... }invalid input: '<'?code>
 
- 
- 
Constructor Details- 
JsonLoaderOptionspublic JsonLoaderOptions()
- 
JsonLoaderOptions
 
-