edu.umd.cloud9.example.ir
Class BooleanRetrieval

java.lang.Object
  extended by edu.umd.cloud9.example.ir.BooleanRetrieval

public class BooleanRetrieval
extends Object


Constructor Summary
BooleanRetrieval(String indexPath, String collectionPath, FileSystem fs)
           
 
Method Summary
 Set<Integer> fetchDocumentSet(String term)
           
 String fetchLine(long offset)
           
 ArrayListWritable<PairOfInts> fetchPostings(String term)
           
static void main(String[] args)
           
 void performAND()
           
 void performOR()
           
 void pushTerm(String term)
           
 void runQuery(String q)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BooleanRetrieval

public BooleanRetrieval(String indexPath,
                        String collectionPath,
                        FileSystem fs)
                 throws IOException
Throws:
IOException
Method Detail

runQuery

public void runQuery(String q)
              throws IOException
Throws:
IOException

pushTerm

public void pushTerm(String term)
              throws IOException
Throws:
IOException

performAND

public void performAND()

performOR

public void performOR()

fetchDocumentSet

public Set<Integer> fetchDocumentSet(String term)
                              throws IOException
Throws:
IOException

fetchPostings

public ArrayListWritable<PairOfInts> fetchPostings(String term)
                                            throws IOException
Throws:
IOException

fetchLine

public String fetchLine(long offset)
                 throws IOException
Throws:
IOException

main

public static void main(String[] args)
                 throws IOException
Throws:
IOException