Class SimpleArrayListener
java.lang.Object
org.apache.drill.exec.store.easy.json.loader.SimpleArrayListener
- All Implemented Interfaces:
ArrayListener
- Direct Known Subclasses:
SimpleArrayListener.StructureArrayListener
Base class for scalar and object arrays. Represents the array
behavior of a field.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Constructor Summary
-
Method Summary
-
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 interfaceArrayListener
-
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 interfaceArrayListener
-
onElementEnd
public void onElementEnd()Description copied from interface:ArrayListener
Called after each element of the array.- Specified by:
onElementEnd
in interfaceArrayListener
-
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 interfaceArrayListener
-