|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectslib.utils.impl.QueryFileIterator
public class QueryFileIterator
Query Iterator implementing the QueryIterator
interface used to
iterate through the queries defined in a tabular delimited file i.e. e1\te2
Constructor Summary | |
---|---|
QueryFileIterator(String filepath)
Constructor of a QueryFileIterator |
|
QueryFileIterator(String filepath,
String uriPrefix)
Constructor of a QueryFileIterator |
Method Summary | |
---|---|
void |
close()
Close the opened repository |
long |
getNumberQueries()
|
boolean |
hasNext()
|
QueryEntry |
next()
Note the Query Entry returned can be equal to null if the line is not in agreement with the expectations i.e. |
List<QueryEntry> |
nextValids(int nbValues)
Return a List containing the next valid queries. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QueryFileIterator(String filepath) throws IOException
QueryFileIterator
filepath
- the file to load as repository
IOException
- if an IO exception appendspublic QueryFileIterator(String filepath, String uriPrefix) throws IOException
QueryFileIterator
filepath
- the file to load as repositoryuriPrefix
-
IOException
- if an IO exception appendsMethod Detail |
---|
public boolean hasNext()
hasNext
in interface QueryIterator
public QueryEntry next()
next
in interface QueryIterator
QueryEntry
.
Also return null if the row repository do not
correspond to a well formed entry.public void close() throws IOException
QueryIterator
close
in interface QueryIterator
IOException
public List<QueryEntry> nextValids(int nbValues)
QueryIterator
nextValids
in interface QueryIterator
nbValues
- the number of values the query list must contains.
QueryEntry
public long getNumberQueries() throws Exception
getNumberQueries
in interface QueryIterator
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |