org.tm4j.topicmap.index.text
Class LuceneQueryResultImpl

java.lang.Object
  extended byorg.tm4j.topicmap.index.text.LuceneQueryResultImpl
All Implemented Interfaces:
QueryResult, java.io.Serializable

public class LuceneQueryResultImpl
extends java.lang.Object
implements QueryResult, java.io.Serializable

This is an implementation of QueryResult for the Lucene Full Text Engine

Author:
Harald Kuhn, harald_kuhn at users.sourceforge.net
See Also:
Serialized Form

Constructor Summary
LuceneQueryResultImpl(org.apache.lucene.search.Hits hits, TopicMap map)
           
 
Method Summary
 QueryHit getHit(int i)
          The hit with the given index or an IndexException if this index is not available
 int size()
          The size of the QueryResult
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LuceneQueryResultImpl

public LuceneQueryResultImpl(org.apache.lucene.search.Hits hits,
                             TopicMap map)
Method Detail

getHit

public QueryHit getHit(int i)
                throws IndexException
Description copied from interface: QueryResult
The hit with the given index or an IndexException if this index is not available

Specified by:
getHit in interface QueryResult
Parameters:
i -
Returns:
the QueryHit for the given Index
Throws:
IndexException

size

public int size()
Description copied from interface: QueryResult
The size of the QueryResult

Specified by:
size in interface QueryResult
Returns:
the size of the QueryResult