Package org.apache.trevni
Class ColumnValues<T extends Comparable>
java.lang.Object
org.apache.trevni.ColumnValues<T>
An iterator over column values.
-
Method Summary
Modifier and TypeMethodDescriptionlong
getRow()
Return the current row number within this file.boolean
hasNext()
iterator()
next()
int
Expert: Returns the next length in an array column.Expert: Returns the next value in a column.void
remove()
void
seek
(long r) Seek to the named row.void
Seek to the named value.void
startRow()
Expert: Must be called before any calls tonextLength()
ornextValue()
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Method Details
-
getRow
public long getRow()Return the current row number within this file. -
seek
Seek to the named row.- Throws:
IOException
-
seek
Seek to the named value.- Throws:
IOException
-
iterator
- Specified by:
iterator
in interfaceIterable<T extends Comparable>
-
hasNext
public boolean hasNext()- Specified by:
hasNext
in interfaceIterator<T extends Comparable>
-
next
- Specified by:
next
in interfaceIterator<T extends Comparable>
-
startRow
Expert: Must be called before any calls tonextLength()
ornextValue()
.- Throws:
IOException
-
nextLength
Expert: Returns the next length in an array column.- Throws:
IOException
-
nextValue
Expert: Returns the next value in a column.- Throws:
IOException
-
remove
public void remove()- Specified by:
remove
in interfaceIterator<T extends Comparable>
-