org.galagosearch.core.index
Class SparseFloatListReader.Iterator

java.lang.Object
  extended by org.galagosearch.core.index.SparseFloatListReader.Iterator
All Implemented Interfaces:
IndexIterator, ScoreIterator, StructuredIterator
Enclosing class:
SparseFloatListReader

public class SparseFloatListReader.Iterator
extends java.lang.Object
implements ScoreIterator, IndexIterator


Constructor Summary
SparseFloatListReader.Iterator(IndexReader.Iterator iterator)
           
 
Method Summary
 java.lang.String currentTerm()
           
 java.lang.String getRecordString()
           
 boolean hasMatch(int document)
           
 boolean isDone()
           
 void movePast(int document)
           
 void moveTo(int document)
           
 int nextCandidate()
           
 boolean nextRecord()
           
 boolean nextTerm()
           
 void reset()
           
 double score(int document, int length)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SparseFloatListReader.Iterator

public SparseFloatListReader.Iterator(IndexReader.Iterator iterator)
                               throws java.io.IOException
Throws:
java.io.IOException
Method Detail

getRecordString

public java.lang.String getRecordString()
Specified by:
getRecordString in interface IndexIterator

nextRecord

public boolean nextRecord()
                   throws java.io.IOException
Specified by:
nextRecord in interface IndexIterator
Throws:
java.io.IOException

reset

public void reset()
           throws java.io.IOException
Specified by:
reset in interface ScoreIterator
Specified by:
reset in interface StructuredIterator
Throws:
java.io.IOException

nextCandidate

public int nextCandidate()
Specified by:
nextCandidate in interface ScoreIterator

currentTerm

public java.lang.String currentTerm()

nextTerm

public boolean nextTerm()
                 throws java.io.IOException
Throws:
java.io.IOException

hasMatch

public boolean hasMatch(int document)
Specified by:
hasMatch in interface ScoreIterator

moveTo

public void moveTo(int document)
            throws java.io.IOException
Specified by:
moveTo in interface ScoreIterator
Throws:
java.io.IOException

movePast

public void movePast(int document)
              throws java.io.IOException
Specified by:
movePast in interface ScoreIterator
Throws:
java.io.IOException

score

public double score(int document,
                    int length)
Specified by:
score in interface ScoreIterator

isDone

public boolean isDone()
Specified by:
isDone in interface ScoreIterator


Copyright © 2009. All Rights Reserved.