com.atlassian.confluence.search.v2.lucene
Class WrappedHitImpl

java.lang.Object
  extended by com.atlassian.confluence.search.v2.lucene.WrappedHitImpl
All Implemented Interfaces:
WrappedHit

public class WrappedHitImpl
extends Object
implements WrappedHit


Constructor Summary
WrappedHitImpl(org.apache.lucene.search.Hit hit)
           
 
Method Summary
 String get(String s)
           
 float getBoost()
           
 org.apache.lucene.document.Document getDocument()
           
 int getId()
           
 org.apache.lucene.search.Hit getRawHit()
          Get the Lucene hit object, unwrapped.
 float getScore()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WrappedHitImpl

public WrappedHitImpl(org.apache.lucene.search.Hit hit)
Method Detail

getDocument

public org.apache.lucene.document.Document getDocument()
                                                throws org.apache.lucene.index.CorruptIndexException,
                                                       IOException
Specified by:
getDocument in interface WrappedHit
Throws:
org.apache.lucene.index.CorruptIndexException
IOException
See Also:
Hit.getDocument()

getScore

public float getScore()
               throws IOException
Specified by:
getScore in interface WrappedHit
Throws:
IOException
See Also:
Hit.getScore()

getId

public int getId()
          throws IOException
Specified by:
getId in interface WrappedHit
Throws:
IOException
See Also:
Hit.getId()

getBoost

public float getBoost()
               throws org.apache.lucene.index.CorruptIndexException,
                      IOException
Specified by:
getBoost in interface WrappedHit
Throws:
org.apache.lucene.index.CorruptIndexException
IOException
See Also:
Hit.getBoost()

get

public String get(String s)
           throws org.apache.lucene.index.CorruptIndexException,
                  IOException
Specified by:
get in interface WrappedHit
Throws:
org.apache.lucene.index.CorruptIndexException
IOException
See Also:
Hit.get(java.lang.String)

getRawHit

public org.apache.lucene.search.Hit getRawHit()
Description copied from interface: WrappedHit
Get the Lucene hit object, unwrapped.

Specified by:
getRawHit in interface WrappedHit
Returns:
the Lucene hit object.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2003-2011 Atlassian. All Rights Reserved.