org.outerj.daisy.ftindex
Class LuceneHits

java.lang.Object
  extended by org.outerj.daisy.ftindex.LuceneHits
All Implemented Interfaces:
Hits

public class LuceneHits
extends java.lang.Object
implements Hits


Constructor Summary
LuceneHits(org.apache.lucene.search.Hits delegate)
           
 
Method Summary
 long branchId(int n)
           
 long docId(int n)
          Returns the Daisy Document ID for the nth matching document.
 long languageId(int n)
           
 int length()
          Returns the total number of hits available in this set.
 float score(int n)
          Returns the score for the nth document in this set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LuceneHits

public LuceneHits(org.apache.lucene.search.Hits delegate)
Method Detail

docId

public long docId(int n)
           throws java.io.IOException
Description copied from interface: Hits
Returns the Daisy Document ID for the nth matching document.

Specified by:
docId in interface Hits
Throws:
java.io.IOException

branchId

public long branchId(int n)
              throws java.io.IOException
Specified by:
branchId in interface Hits
Throws:
java.io.IOException

languageId

public long languageId(int n)
                throws java.io.IOException
Specified by:
languageId in interface Hits
Throws:
java.io.IOException

length

public int length()
Description copied from interface: Hits
Returns the total number of hits available in this set.

Specified by:
length in interface Hits

score

public float score(int n)
            throws java.io.IOException
Description copied from interface: Hits
Returns the score for the nth document in this set.

Specified by:
score in interface Hits
Throws:
java.io.IOException


Copyright © -2012 . All Rights Reserved.