com.liferay.util.lucene
Class HitsImpl

java.lang.Object
  extended bycom.liferay.util.lucene.HitsImpl
All Implemented Interfaces:
com.liferay.portal.kernel.search.Hits, java.io.Serializable

public class HitsImpl
extends java.lang.Object
implements com.liferay.portal.kernel.search.Hits

View Source

Author:
Brian Wing Shun Chan
See Also:
Serialized Form

Constructor Summary
HitsImpl()
           
 
Method Summary
 void closeSearcher()
           
 com.liferay.portal.kernel.search.Document doc(int n)
           
 com.liferay.portal.kernel.search.Document[] getDocs()
           
 int getLength()
           
 float[] getScores()
           
 org.apache.lucene.search.Searcher getSearcher()
           
 float getSearchTime()
           
 long getStart()
           
 void recordHits(org.apache.lucene.search.Hits hits, org.apache.lucene.search.Searcher searcher)
           
 float score(int n)
           
 void setDocs(com.liferay.portal.kernel.search.Document[] docs)
           
 void setLength(int length)
           
 void setScores(float[] scores)
           
 void setScores(java.lang.Float[] scores)
           
 void setSearcher(org.apache.lucene.search.Searcher searcher)
           
 void setSearchTime(float time)
           
 void setStart(long start)
           
 com.liferay.portal.kernel.search.Hits subset(int begin, int end)
           
 java.util.List toList()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HitsImpl

public HitsImpl()
Method Detail

getStart

public long getStart()
Specified by:
getStart in interface com.liferay.portal.kernel.search.Hits

setStart

public void setStart(long start)
Specified by:
setStart in interface com.liferay.portal.kernel.search.Hits

getSearchTime

public float getSearchTime()
Specified by:
getSearchTime in interface com.liferay.portal.kernel.search.Hits

setSearchTime

public void setSearchTime(float time)
Specified by:
setSearchTime in interface com.liferay.portal.kernel.search.Hits

getDocs

public com.liferay.portal.kernel.search.Document[] getDocs()
Specified by:
getDocs in interface com.liferay.portal.kernel.search.Hits

setDocs

public void setDocs(com.liferay.portal.kernel.search.Document[] docs)
Specified by:
setDocs in interface com.liferay.portal.kernel.search.Hits

getLength

public int getLength()
Specified by:
getLength in interface com.liferay.portal.kernel.search.Hits

setLength

public void setLength(int length)
Specified by:
setLength in interface com.liferay.portal.kernel.search.Hits

getScores

public float[] getScores()
Specified by:
getScores in interface com.liferay.portal.kernel.search.Hits

setScores

public void setScores(float[] scores)
Specified by:
setScores in interface com.liferay.portal.kernel.search.Hits

setScores

public void setScores(java.lang.Float[] scores)
Specified by:
setScores in interface com.liferay.portal.kernel.search.Hits

getSearcher

public org.apache.lucene.search.Searcher getSearcher()

setSearcher

public void setSearcher(org.apache.lucene.search.Searcher searcher)

closeSearcher

public void closeSearcher()
Specified by:
closeSearcher in interface com.liferay.portal.kernel.search.Hits

doc

public com.liferay.portal.kernel.search.Document doc(int n)
Specified by:
doc in interface com.liferay.portal.kernel.search.Hits

score

public float score(int n)
Specified by:
score in interface com.liferay.portal.kernel.search.Hits

subset

public com.liferay.portal.kernel.search.Hits subset(int begin,
                                                    int end)
Specified by:
subset in interface com.liferay.portal.kernel.search.Hits

toList

public java.util.List toList()
Specified by:
toList in interface com.liferay.portal.kernel.search.Hits

recordHits

public void recordHits(org.apache.lucene.search.Hits hits,
                       org.apache.lucene.search.Searcher searcher)
                throws java.io.IOException
Throws:
java.io.IOException