java.lang.Object
org.apache.drill.exec.store.easy.json.parser.ValueDef

public class ValueDef extends Object
Description of a JSON value as inferred from looking ahead in the JSON stream. Includes a type (which can be empty for an empty array, or null), and an array size (which is 0 for simple values.)

To be clear, this is the JSON parser's best guess at a field type from the input token stream. This is not a description of the desired data type as JSON can only react to what it sees on input.

  • Field Details

    • UNKNOWN_ARRAY

      public static final ValueDef UNKNOWN_ARRAY
    • UNKNOWN

      public static final ValueDef UNKNOWN
  • Constructor Details

  • Method Details

    • type

      public ValueDef.JsonType type()
    • dimensions

      public int dimensions()
    • isArray

      public boolean isArray()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • jsonTypeFor

      public static ValueDef.JsonType jsonTypeFor(com.fasterxml.jackson.core.JsonToken token)