Class VarCharListener

java.lang.Object
org.apache.drill.exec.store.easy.json.values.ScalarListener
org.apache.drill.exec.store.easy.json.values.VarCharListener
All Implemented Interfaces:
ValueListener

public class VarCharListener extends ScalarListener
Value listener for JSON string values. Allows conversion from other scalar types using the Java toString() semantics. Use the "text-mode" hint in a provided schema to get the literal JSON value.
  • Constructor Details

  • Method Details

    • onValue

      public void onValue(com.fasterxml.jackson.core.JsonToken token, TokenIterator tokenizer)
      Description copied from interface: ValueListener
      Called for a JSON scalar token.
      Specified by:
      onValue in interface ValueListener
      Overrides:
      onValue in class ScalarListener
      Parameters:
      token - the scalar token
      tokenizer - provides access to the value of the token
    • onText

      public void onText(String value)
      Description copied from interface: ValueListener
      Called when a parser converts a JSON structure to text rather than delivering the token directly.
      Specified by:
      onText in interface ValueListener
      Overrides:
      onText in class ScalarListener
      Parameters:
      value - the string value of the parsed token or structure
    • setArrayNull

      protected void setArrayNull()
      Overrides:
      setArrayNull in class ScalarListener