Package org.apache.drill.exec.store.easy.json.parser
package org.apache.drill.exec.store.easy.json.parser
-
ClassDescriptionAbstract base class for all JSON element parsers.Represents one level within array.Parses a JSON array, which consists of a list of elements, represented by a
ValueListener
.Parse and ignore an unprojected value.Parser for a JSON element.Represents an empty array: the case where the parser has seen only[]
, but no array elements which would indicate the type.To avoid coupling the JSON structure parser with Drill's error reporting mechanism, the caller passes in an instance of this error factory which will build the required errors, including filling in caller-specific context.Creates a field parser given a field description and an optional field listener.Input to the JSON structure parser which defines guidelines for low-level parsing as well as listeners for higher-level semantics.Parser for a subset of the jsonlines format.Parses an arbitrary JSON value (which can be a subtree of any complexity) into a JSON string.Optional custom parser for the portion of a JSON message that surrounds the data "payload".Parses nulls.Parses a JSON object:{ name : value ...
The root parsers are special: they must detect EOF.Parser for data embedded within a message structure which is encoded as an array of objects.Parser for data embedded within a message structure which is encoded as a single JSON object.Parser for a compliant JSON data set which consists of an array at the top level, where each element of the array is a JSON object that represents a data record.Parser for a jsonlines-style data set which consists of a series of objects.Parsestrue | false | null | integer | float | string |
embedded-object
and simply passes the value token on to the listener.Parsestrue | false | null | integer | float | string |
embedded-objectA message parser which accepts a path to the data encoded as a slash-separated string.Internal exception to unwind the stack when a syntax error is detected within a record.Description of a JSON value as inferred from looking ahead in the JSON stream.Description of JSON types as derived from JSON tokens.Constructs aValueDef
by looking ahead on the input stream.Represents a JSON scalar value, either a direct object field, or level within an array.Parses a JSON value.