Package org.apache.calcite.runtime
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
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
ConstructorDescriptionRecordEnumeratorCursor
(Enumerator<E> enumerator, Class<E> clazz) Creates a RecordEnumeratorCursor. -
Method Summary
Modifier and TypeMethodDescriptionprotected 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
-
Constructor Details
-
RecordEnumeratorCursor
Creates a RecordEnumeratorCursor.- Parameters:
enumerator
- Enumeratorclazz
- Element type
-
-
Method Details
-
createGetter
protected org.apache.calcite.avatica.util.AbstractCursor.Getter createGetter(int ordinal) - Specified by:
createGetter
in classorg.apache.calcite.avatica.util.AbstractCursor
-