Class ResultSetIterator
java.lang.Object
com.oracle.labs.mlrg.olcut.util.IOSpliterator<ColumnarIterator.Row>
org.tribuo.data.columnar.ColumnarIterator
org.tribuo.data.sql.ResultSetIterator
- All Implemented Interfaces:
Iterator<ColumnarIterator.Row>,Spliterator<ColumnarIterator.Row>
An iterator over a ResultSet returned from JDBC.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.tribuo.data.columnar.ColumnarIterator
ColumnarIterator.RowNested classes/interfaces inherited from interface java.util.Spliterator
Spliterator.OfDouble, Spliterator.OfInt, Spliterator.OfLong, Spliterator.OfPrimitive<T, T_CONS, T_SPLITR extends Spliterator.OfPrimitive<T,T_CONS, T_SPLITR>> -
Field Summary
Fields inherited from class org.tribuo.data.columnar.ColumnarIterator
currentRow, fieldsFields inherited from class com.oracle.labs.mlrg.olcut.util.IOSpliterator
DEFAULT_BATCH_SIZE, DEFAULT_CHARACTERISTICSFields inherited from interface java.util.Spliterator
CONCURRENT, DISTINCT, IMMUTABLE, NONNULL, ORDERED, SIZED, SORTED, SUBSIZED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Optional<ColumnarIterator.Row> getRow()Returns the next row of data based on internal state stored by the implementor, orOptional.empty()if there is no more data.Methods inherited from class org.tribuo.data.columnar.ColumnarIterator
forEachRemaining, getFields, hasNext, next, tryAdvanceMethods inherited from class com.oracle.labs.mlrg.olcut.util.IOSpliterator
characteristics, estimateSize, trySplitMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Spliterator
getComparator, getExactSizeIfKnown, hasCharacteristics
-
Constructor Details
-
ResultSetIterator
- Throws:
SQLException
-
ResultSetIterator
- Throws:
SQLException
-
-
Method Details
-
getRow
Description copied from class:ColumnarIteratorReturns the next row of data based on internal state stored by the implementor, orOptional.empty()if there is no more data.- Specified by:
getRowin classColumnarIterator- Returns:
- The next row of data or None.
-