Class GenericAccessor

java.lang.Object
org.apache.drill.exec.vector.accessor.AbstractSqlAccessor
org.apache.drill.exec.vector.accessor.GenericAccessor
All Implemented Interfaces:
SqlAccessor

public class GenericAccessor extends AbstractSqlAccessor
  • Constructor Details

    • GenericAccessor

      public GenericAccessor(ValueVector v)
  • Method Details

    • getObjectClass

      public Class<?> getObjectClass()
      Description copied from interface: SqlAccessor
      Reports the class returned by getObject() of this accessor.

      (Is for {@link ResultSetMetaData#getColumnClassName(...)}.)

    • isNull

      public boolean isNull(int index)
      Description copied from interface: SqlAccessor
      Reports whether the logical value is a SQL NULL.
      Specified by:
      isNull in interface SqlAccessor
      Specified by:
      isNull in class AbstractSqlAccessor
    • getObject

      public Object getObject(int index) throws InvalidAccessException
      Description copied from interface: SqlAccessor
      Throws:
      InvalidAccessException
    • getType

      public TypeProtos.MajorType getType()
      Description copied from interface: SqlAccessor
      Reports the (native) type of data accessed by this accessor.

      (Some implementations may support more than just the minimum getType(...) method implied by the type.