org.galagosearch.core.retrieval.structured
Class MoveIterators

java.lang.Object
  extended by org.galagosearch.core.retrieval.structured.MoveIterators

public class MoveIterators
extends java.lang.Object

Author:
trevor

Constructor Summary
MoveIterators()
           
 
Method Summary
static boolean allSameDocument(ExtentIterator[] iterators)
           
static int findMaximumDocument(ExtentIterator[] iterators)
           
static int findMinimumCandidate(ScoreIterator[] iterators)
           
static int findMinimumDocument(ExtentIterator[] iterators)
           
static int moveAllToSameDocument(ExtentIterator[] iterators)
          Moves all iterators in the array to the same document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MoveIterators

public MoveIterators()
Method Detail

moveAllToSameDocument

public static int moveAllToSameDocument(ExtentIterator[] iterators)
                                 throws java.io.IOException
Moves all iterators in the array to the same document. This method will only stop at documents where all of the iterators have a match. This code assumes that the most selective iterator (the one with the fewest document matches) is the first one.

Returns:
The document number that the iterators are now pointing to, or Integer.MAX_VALUE if one of the iterators is now done.
Throws:
java.io.IOException

allSameDocument

public static boolean allSameDocument(ExtentIterator[] iterators)

findMaximumDocument

public static int findMaximumDocument(ExtentIterator[] iterators)

findMinimumDocument

public static int findMinimumDocument(ExtentIterator[] iterators)

findMinimumCandidate

public static int findMinimumCandidate(ScoreIterator[] iterators)


Copyright © 2009. All Rights Reserved.