Class SimpleArrayListener

java.lang.Object
org.apache.drill.exec.store.easy.json.loader.SimpleArrayListener
All Implemented Interfaces:
ArrayListener
Direct Known Subclasses:
SimpleArrayListener.StructureArrayListener

public class SimpleArrayListener extends Object implements ArrayListener
Base class for scalar and object arrays. Represents the array behavior of a field.
  • Constructor Details

    • SimpleArrayListener

      public SimpleArrayListener()
  • Method Details

    • onStart

      public void onStart()
      Description copied from interface: ArrayListener
      Called at the entrance to each level (dimension) of an array. That is, called when the structure parser accepts the [ token.
      Specified by:
      onStart in interface ArrayListener
    • onElementStart

      public void onElementStart()
      Description copied from interface: ArrayListener
      Called for each element of the array. The array element is represented by its own listener which receives the value of the element (if scalar) or element events (if structured.)
      Specified by:
      onElementStart in interface ArrayListener
    • onElementEnd

      public void onElementEnd()
      Description copied from interface: ArrayListener
      Called after each element of the array.
      Specified by:
      onElementEnd in interface ArrayListener
    • onEnd

      public void onEnd()
      Description copied from interface: ArrayListener
      Called at the end of a set of values for an array. That is, called when the structure parser accepts the ] token.
      Specified by:
      onEnd in interface ArrayListener