Class RecordEnumeratorCursor<E>

  • Type Parameters:
    E - Element type
    All Implemented Interfaces:
    java.lang.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 extends java.lang.Object>, 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 
      Modifier and Type Field Description
      private java.lang.Class<E> clazz  
      • Fields inherited from class org.apache.calcite.avatica.util.AbstractCursor

        wasNull
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.apache.calcite.avatica.util.AbstractCursor.Getter createGetter​(int ordinal)  
      • 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
    • Field Detail

      • clazz

        private final java.lang.Class<E> clazz
    • Constructor Detail

      • RecordEnumeratorCursor

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

      • createGetter

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