Uses of Interface
org.apache.drill.exec.store.easy.json.parser.ElementParser
Package
Description
Provides parsing for Mongo extended types which are generally of the form
{ "$type": value }
.-
Uses of ElementParser in org.apache.drill.exec.store.easy.json.extended
Modifier and TypeClassDescriptionclass
class
Parsers a binary.class
Parses a Mongo date in the V1 format:class
Parsers a Mongo extended type of the form: -
Uses of ElementParser in org.apache.drill.exec.store.easy.json.loader
Modifier and TypeClassDescriptionclass
Represents a run of empty arrays for which we have no type information.class
Parser for a field that contains only nulls.class
Accepts { name : value ...class
Parser which accepts all JSON values and converts them to actions on a UNION vector writer.Modifier and TypeMethodDescriptionBaseFieldFactory.buildOuterArrays
(ObjectWriter writer, int dims, Function<ObjectWriter, ElementParser> innerCreator) Create layers of repeated list listeners around the type-specific array.FieldFactory.fieldParser
(FieldDefn fieldDefn) Create a parser for a field.InferredFieldFactory.fieldParser
(FieldDefn fieldDefn) Build a column and its listener based on a look-ahead hint.ProvidedFieldFactory.fieldParser
(FieldDefn fieldDefn) Build a column and its listener based a provided schema.BaseFieldFactory.forceArrayResolution
(FieldDefn fieldDefn) FieldFactory.forceArrayResolution
(FieldDefn fieldDefn) InferredFieldFactory.forceArrayResolution
(FieldDefn fieldDefn) BaseFieldFactory.forceNullResolution
(FieldDefn fieldDefn) FieldFactory.forceNullResolution
(FieldDefn fieldDefn) InferredFieldFactory.forceNullResolution
(FieldDefn fieldDefn) BaseFieldFactory.ignoredFieldParser()
FieldFactory.ignoredFieldParser()
BaseFieldFactory.multiDimObjectArrayFor
(ObjectWriter writer, int dims, TupleMetadata providedSchema) Create a repeated list listener for a Map.protected ElementParser
BaseFieldFactory.multiDimScalarArrayFor
(ObjectWriter writer, int dims) Create a repeated list listener for a scalar value.protected ElementParser
BaseFieldFactory.multiDimVariantArrayParserFor
(ObjectWriter writer, int dims) Create a repeated list listener for a variant.protected ElementParser
BaseFieldFactory.objectArrayParserFor
(FieldDefn fieldDefn, ColumnMetadata colSchema, TupleMetadata providedSchema) Create a map array column and its associated parsers and listeners for the given column schema and optional provided schema.protected ElementParser
BaseFieldFactory.objectArrayParserFor
(ArrayWriter arrayWriter, TupleMetadata providedSchema) InferredFieldFactory.objectArrayParserFor
(FieldDefn fieldDefn) Create a map array column and its associated object array listener for the given key.BaseFieldFactory.objectParserFor
(FieldDefn fieldDefn) Create a map column and its associated object value listener for the a JSON object value given the value's key.protected ElementParser
BaseFieldFactory.objectParserFor
(FieldDefn fieldDefn, ColumnMetadata colSchema, TupleMetadata providedSchema) Create a map column and its associated object value listener for the given key and optional provided schema.protected ElementParser
BaseFieldFactory.objectParserFor
(TupleWriter writer, TupleMetadata providedSchema) TupleParser.onField
(String key, TokenIterator tokenizer) protected ElementParser
EmptyArrayFieldParser.resolve
(TokenIterator tokenizer) The column type is now known from context.protected ElementParser
NullFieldParser.resolve
(TokenIterator tokenizer) The column type is now known from context.TupleParser.resolveArray
(String key, TokenIterator tokenizer) TupleParser.resolveField
(String key, TokenIterator tokenizer) protected ElementParser
BaseFieldFactory.scalarArrayParserFor
(ValueParser element) protected ElementParser
BaseFieldFactory.scalarArrayParserFor
(ArrayWriter writer) protected ElementParser
BaseFieldFactory.variantArrayParserFor
(ArrayWriter arrayWriter) Create a variant array (LIST) column and its associated parser given a column schema.protected ElementParser
BaseFieldFactory.variantParserFor
(VariantWriter writer) Create a variant (UNION) column and its associated parser given a column schema.Modifier and TypeMethodDescriptionBaseFieldFactory.buildOuterArrays
(ObjectWriter writer, int dims, Function<ObjectWriter, ElementParser> innerCreator) Create layers of repeated list listeners around the type-specific array. -
Uses of ElementParser in org.apache.drill.exec.store.easy.json.parser
Modifier and TypeClassDescriptionclass
Abstract base class for all JSON element parsers.class
Parses a JSON array, which consists of a list of elements, represented by aValueListener
.class
static class
class
Parse and ignore an unprojected value.class
Represents an empty array: the case where the parser has seen only[]
, but no array elements which would indicate the type.class
class
Parses an arbitrary JSON value (which can be a subtree of any complexity) into a JSON string.class
Parses nulls.class
Parses a JSON object:{ name : value ...
class
class
static class
Parsestrue | false | null | integer | float | string |
embedded-object
and simply passes the value token on to the listener.static class
Parsestrue | false | null | integer | float | string |
embedded-objectclass
Parses a JSON value.Modifier and TypeMethodDescriptionFieldParserFactory.arrayValueParser
(ArrayListener arrayListener, ElementParser elementParser) ArrayParser.elementParser()
ObjectParser.fieldParser
(String key) FieldParserFactory.ignoredFieldParser()
FieldParserFactory.objectValueParser
(ObjectParser objParser) protected abstract ElementParser
ObjectParser.onField
(String key, TokenIterator tokenizer) The structure parser has just encountered a new field for this object.ObjectParser.replaceFieldParser
(String key, ElementParser fieldParser) protected abstract ElementParser
EmptyArrayParser.resolve
(TokenIterator tokenizer) Replace this parser with a new parser based on the current parse context.protected abstract ElementParser
NullValueParser.resolve
(TokenIterator tokenizer) Replace this parser with a new parser based on the current parse context.FieldParserFactory.scalarArrayValueParser
(ArrayListener arrayListener, ElementParser elementParser) Modifier and TypeMethodDescriptionFieldParserFactory.arrayValueParser
(ArrayListener arrayListener, ElementParser elementParser) ObjectParser.replaceFieldParser
(String key, ElementParser fieldParser) FieldParserFactory.scalarArrayValueParser
(ArrayListener arrayListener, ElementParser elementParser) ModifierConstructorDescriptionArrayParser
(JsonStructureParser structParser, ArrayListener arrayListener, ElementParser elementParser)