de.aitools.aq.invertedindex.core
Class IndexSearcher<E extends Value>

java.lang.Object
  extended by de.aitools.aq.invertedindex.core.IndexSearcher<E>

public class IndexSearcher<E extends Value>
extends java.lang.Object

A class to search an inverted index.

Version:
$Id: IndexSearcher.java,v 1.4 2011/01/26 22:22:56 trenkman Exp $
Author:
martin.trenkmann@uni-weimar.de

Constructor Summary
IndexSearcher(java.lang.Class<E> clazz)
           
 
Method Summary
 boolean contains(java.lang.String key)
           
 long getFrequency(java.lang.String key)
           
 IndexMessages.Header getHeader()
           
 Quantile getQuantile(java.lang.String key)
           
 void init(IndexMessages.Configuration config)
           
 Postlist<E> search(java.lang.String key)
           
 Postlist<E> search(java.lang.String key, int length)
           
 Postlist<E> search(java.lang.String key, Quantile.Order order)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexSearcher

public IndexSearcher(java.lang.Class<E> clazz)
              throws java.lang.RuntimeException
Throws:
java.lang.RuntimeException
Method Detail

init

public void init(IndexMessages.Configuration config)
          throws java.lang.RuntimeException
Throws:
java.lang.RuntimeException

contains

public boolean contains(java.lang.String key)

getFrequency

public long getFrequency(java.lang.String key)

getHeader

public IndexMessages.Header getHeader()

getQuantile

public Quantile getQuantile(java.lang.String key)

search

public Postlist<E> search(java.lang.String key)

search

public Postlist<E> search(java.lang.String key,
                          int length)

search

public Postlist<E> search(java.lang.String key,
                          Quantile.Order order)