private class BoostSet.LineIter
extends Object
Modifier and Type | Field and Description |
---|---|
(package private) boolean |
done |
(package private) float |
lineBoost |
(package private) String |
lineKey |
(package private) String |
prevLineKey |
(package private) BufferedReader |
reader |
Constructor and Description |
---|
LineIter(BufferedReader reader)
Construct from a reader
|
Modifier and Type | Method and Description |
---|---|
(package private) float |
boost()
Get the boost factor of the current line
|
(package private) void |
close()
Clean up
|
(package private) boolean |
done()
Returns true if no more lines to read
|
(package private) String |
key()
Get the document key of the current line
|
(package private) void |
next()
Advance to the next line
|
private void |
readLine()
Read the next line in the file
|
BufferedReader reader
boolean done
String prevLineKey
String lineKey
float lineBoost
LineIter(BufferedReader reader) throws IOException
IOException
boolean done()
String key()
float boost()
void next() throws IOException
IOException
void close() throws IOException
IOException
private void readLine() throws IOException
IOException