edu.umd.cloud9.example.ir
Class BooleanRetrieval
java.lang.Object
edu.umd.cloud9.example.ir.BooleanRetrieval
public class BooleanRetrieval
- extends Object
BooleanRetrieval
public BooleanRetrieval(String indexPath,
String collectionPath,
FileSystem fs)
throws IOException
- Throws:
IOException
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