Class ArrayReaderImpl.ArrayObjectReader

java.lang.Object
org.apache.drill.exec.vector.accessor.reader.AbstractObjectReader
org.apache.drill.exec.vector.accessor.reader.ArrayReaderImpl.ArrayObjectReader
All Implemented Interfaces:
ColumnReader, ObjectReader
Direct Known Subclasses:
DictReaderImpl.DictObjectReader
Enclosing class:
ArrayReaderImpl

public static class ArrayReaderImpl.ArrayObjectReader extends AbstractObjectReader
Object representation of an array reader.
  • Constructor Details

    • ArrayObjectReader

      public ArrayObjectReader(ArrayReaderImpl arrayReader)
  • Method Details

    • array

      public ArrayReader array()
      Specified by:
      array in interface ObjectReader
      Overrides:
      array in class AbstractObjectReader
    • getObject

      public Object getObject()
      Description copied from interface: ColumnReader
      Return the value of the underlying data as a Java object. Primarily for testing
      • Array: Return the entire array as an List of objects. Note, even if the array is scalar, the elements are still returned as a list.
      Returns:
      the value as a Java object
    • getAsString

      public String getAsString()
      Description copied from interface: ColumnReader
      Return the entire object as a string. Primarily for debugging.
      Returns:
      string representation of the object
    • events

      public ReaderEvents events()
      Specified by:
      events in class AbstractObjectReader
    • reader

      public ColumnReader reader()
      Description copied from interface: ObjectReader
      Gets the reader as a generic type, for dynamic programming.
      Specified by:
      reader in interface ObjectReader
      Specified by:
      reader in class AbstractObjectReader
      Returns:
      the untyped reader