public class BinTableReader extends Object implements Reader
This class implements the iterable and iterator interfaces which allow for such nice things as
for(OptionalTypesMap p : binTableReader){ assertTrue(p.containsKey("Data")); }
The next() and the getNextRow() methods deliver a map with the data from one row in the table.
Created by mackaiver on 18/11/16.
| Modifier and Type | Method and Description |
|---|---|
static BinTableReader |
forBinTable(BinTable binTable) |
OptionalTypesMap<String,Serializable> |
getNextRow()
Get the data from the next row.
|
boolean |
hasNext()
Check whether there is another row to return from this heap
|
void |
skipRows(int amount)
Skips the given number of rows.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining, removeforEach, spliteratorpublic boolean hasNext()
hasNext in interface ReaderhasNext in interface Iterator<OptionalTypesMap<String,Serializable>>public static BinTableReader forBinTable(BinTable binTable)
public OptionalTypesMap<String,Serializable> getNextRow() throws IOException
ReaderReaders implementing this interface have to overwrite this method.
getNextRow in interface ReaderIOException - if some IO error occurspublic void skipRows(int amount)
throws IOException
skipRows in interface Readeramount - The amount of rows to skip.IOExceptionCopyright © 2019. All rights reserved.