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 TypeMethodDescriptionlonggetRow()Return the current row number within this file.booleanhasNext()iterator()next()intExpert: Returns the next length in an array column.Expert: Returns the next value in a column.voidremove()voidseek(long r) Seek to the named row.voidSeek to the named value.voidstartRow()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, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods 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:
iteratorin interfaceIterable<T extends Comparable>
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIterator<T extends Comparable>
-
next
- Specified by:
nextin 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:
removein interfaceIterator<T extends Comparable>
-