org.galagosearch.core.retrieval.structured
Class ScaleIterator

java.lang.Object
  extended by org.galagosearch.core.retrieval.structured.ScaleIterator
All Implemented Interfaces:
ScoreIterator, StructuredIterator

public class ScaleIterator
extends java.lang.Object
implements ScoreIterator

Author:
trevor

Constructor Summary
ScaleIterator(org.galagosearch.tupleflow.Parameters parameters, ScoreIterator iterator)
           
 
Method Summary
 boolean hasMatch(int document)
           
 boolean isDone()
           
 void movePast(int document)
           
 void moveTo(int document)
           
 int nextCandidate()
           
 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

ScaleIterator

public ScaleIterator(org.galagosearch.tupleflow.Parameters parameters,
                     ScoreIterator iterator)
              throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException
Method Detail

nextCandidate

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

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

reset

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


Copyright © 2009. All Rights Reserved.