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, wait
forEachRemaining, remove
forEach, spliterator
public boolean hasNext()
hasNext
in interface Reader
hasNext
in interface Iterator<OptionalTypesMap<String,Serializable>>
public static BinTableReader forBinTable(BinTable binTable)
public OptionalTypesMap<String,Serializable> getNextRow() throws IOException
Reader
Readers implementing this interface have to overwrite this method.
getNextRow
in interface Reader
IOException
- if some IO error occurspublic void skipRows(int amount) throws IOException
skipRows
in interface Reader
amount
- The amount of rows to skip.IOException
Copyright © 2019. All rights reserved.