Class RecordEnumeratorCursor<E>

java.lang.Object
org.apache.calcite.avatica.util.AbstractCursor
org.apache.calcite.avatica.util.PositionedCursor<T>
org.apache.calcite.runtime.EnumeratorCursor<E>
org.apache.calcite.runtime.RecordEnumeratorCursor<E>
Type Parameters:
E - Element type
All Implemented Interfaces:
AutoCloseable, org.apache.calcite.avatica.util.Cursor

public class RecordEnumeratorCursor<E> extends EnumeratorCursor<E>
Implementation of Cursor on top of an Enumerator that returns a record for each row. The record is a synthetic class whose fields are all public.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.calcite.avatica.util.PositionedCursor

    org.apache.calcite.avatica.util.PositionedCursor.ArrayGetter, org.apache.calcite.avatica.util.PositionedCursor.FieldGetter, org.apache.calcite.avatica.util.PositionedCursor.ListGetter, org.apache.calcite.avatica.util.PositionedCursor.MapGetter<K>, org.apache.calcite.avatica.util.PositionedCursor.ObjectGetter

    Nested classes/interfaces inherited from class org.apache.calcite.avatica.util.AbstractCursor

    org.apache.calcite.avatica.util.AbstractCursor.AbstractGetter, org.apache.calcite.avatica.util.AbstractCursor.ArrayAccessor, org.apache.calcite.avatica.util.AbstractCursor.Getter, org.apache.calcite.avatica.util.AbstractCursor.SlotGetter, org.apache.calcite.avatica.util.AbstractCursor.StructGetter

    Nested classes/interfaces inherited from interface org.apache.calcite.avatica.util.Cursor

    org.apache.calcite.avatica.util.Cursor.Accessor
  • Field Summary

    Fields inherited from class org.apache.calcite.avatica.util.AbstractCursor

    wasNull
  • Constructor Summary

    Constructors
    Constructor
    Description
    RecordEnumeratorCursor(Enumerator<E> enumerator, Class<E> clazz)
    Creates a RecordEnumeratorCursor.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.apache.calcite.avatica.util.AbstractCursor.Getter
    createGetter(int ordinal)
     

    Methods inherited from class org.apache.calcite.runtime.EnumeratorCursor

    close, current, next

    Methods inherited from class org.apache.calcite.avatica.util.AbstractCursor

    createAccessor, createAccessor, createAccessors, wasNull

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RecordEnumeratorCursor

      public RecordEnumeratorCursor(Enumerator<E> enumerator, Class<E> clazz)
      Creates a RecordEnumeratorCursor.
      Parameters:
      enumerator - Enumerator
      clazz - Element type
  • Method Details

    • createGetter

      protected org.apache.calcite.avatica.util.AbstractCursor.Getter createGetter(int ordinal)
      Specified by:
      createGetter in class org.apache.calcite.avatica.util.AbstractCursor