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:
java.lang.AutoCloseable,Cursor
- Direct Known Subclasses:
IteratorCursor
public abstract class PositionedCursor<T> extends AbstractCursor
Abstract implementation ofCursorthat caches its current row.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classPositionedCursor.ArrayGetterImplementation ofAbstractCursor.Getterthat reads from records that are arrays.protected classPositionedCursor.FieldGetterImplementation ofAbstractCursor.Getterthat reads fields via reflection.protected classPositionedCursor.ListGetterImplementation ofAbstractCursor.Getterthat reads items from a list.protected classPositionedCursor.MapGetter<K>Implementation ofAbstractCursor.Getterthat reads entries from aMap.protected classPositionedCursor.ObjectGetterImplementation ofAbstractCursor.Getterfor records that consist of a single field.-
Nested classes/interfaces inherited from class org.apache.calcite.avatica.util.AbstractCursor
AbstractCursor.AbstractGetter, AbstractCursor.AccessorImpl, AbstractCursor.ArrayAccessor, AbstractCursor.Getter, AbstractCursor.NumberAccessor, AbstractCursor.SlotGetter, AbstractCursor.StructGetter
-
Nested 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 Constructor Description PositionedCursor()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description protected abstract Tcurrent()Returns the current row.-
Methods inherited from class org.apache.calcite.avatica.util.AbstractCursor
createAccessor, createAccessor, createAccessors, createGetter, intToTime, longToTimestamp, next, wasNull
-
-
-
-
Method Detail
-
current
protected abstract T current()
Returns the current row.- Returns:
- current row
- Throws:
java.util.NoSuchElementException- if the iteration has no more elements
-
-