Package org.apache.calcite.avatica.util
Class PositionedCursor<T>
java.lang.Object
org.apache.calcite.avatica.util.AbstractCursor
org.apache.calcite.avatica.util.PositionedCursor<T>
- Type Parameters:
T- Element type
- All Implemented Interfaces:
AutoCloseable,Cursor
- Direct Known Subclasses:
IteratorCursor
Abstract implementation of
Cursor
that caches its current row.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classImplementation ofAbstractCursor.Getterthat reads from records that are arrays.protected classImplementation ofAbstractCursor.Getterthat reads fields via reflection.protected classImplementation ofAbstractCursor.Getterthat reads items from a list.protected classImplementation ofAbstractCursor.Getterthat reads entries from aMap.protected classImplementation ofAbstractCursor.Getterfor records that consist of a single field.Nested classes/interfaces inherited from class org.apache.calcite.avatica.util.AbstractCursor
AbstractCursor.AbstractGetter, AbstractCursor.ArrayAccessor, AbstractCursor.Getter, AbstractCursor.SlotGetter, AbstractCursor.StructGetterNested classes/interfaces inherited from interface org.apache.calcite.avatica.util.Cursor
Cursor.Accessor -
Field Summary
Fields inherited from class org.apache.calcite.avatica.util.AbstractCursor
wasNull -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.calcite.avatica.util.AbstractCursor
createAccessor, createAccessor, createAccessors, createGetter, next, wasNull
-
Constructor Details
-
PositionedCursor
public PositionedCursor()
-
-
Method Details
-
current
Returns the current row.- Returns:
- current row
- Throws:
NoSuchElementException- if the iteration has no more elements
-