Liferay 7.0-ce-b4

com.liferay.portal.kernel.search
Class HitsImpl

java.lang.Object
  extended by com.liferay.portal.kernel.search.HitsImpl
All Implemented Interfaces:
Hits, Serializable

public class HitsImpl
extends Object
implements Hits

See Also:
Serialized Form

Constructor Summary
HitsImpl()
           
 
Method Summary
 void addGroupedHits(String groupValue, Hits hits)
           
 void addStatsResults(StatsResults statsResults)
           
 void copy(Hits hits)
           
 Document doc(int n)
           
 String getCollatedSpellCheckResult()
           
 Document[] getDocs()
           
 Map<String,Hits> getGroupedHits()
           
 int getLength()
           
 Query getQuery()
           
 String[] getQuerySuggestions()
           
 String[] getQueryTerms()
           
 float[] getScores()
           
 float getSearchTime()
           
 String[] getSnippets()
           
 Map<String,List<String>> getSpellCheckResults()
           
 long getStart()
           
 Map<String,StatsResults> getStatsResults()
           
 boolean hasGroupedHits()
           
 float score(int n)
           
 void setCollatedSpellCheckResult(String collatedSpellCheckResult)
           
 void setDocs(Document[] docs)
           
 void setLength(int length)
           
 void setQuery(Query query)
           
 void setQuerySuggestions(String[] querySuggestions)
           
 void setQueryTerms(String[] queryTerms)
           
 void setScores(float[] scores)
           
 void setSearchTime(float time)
           
 void setSnippets(String[] snippets)
           
 void setSpellCheckResults(Map<String,List<String>> spellCheckResults)
           
 void setStart(long start)
           
 String snippet(int n)
           
 List<Document> 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

addGroupedHits

public void addGroupedHits(String groupValue,
                           Hits hits)
Specified by:
addGroupedHits in interface Hits

addStatsResults

public void addStatsResults(StatsResults statsResults)
Specified by:
addStatsResults in interface Hits

copy

public void copy(Hits hits)
Specified by:
copy in interface Hits

doc

public Document doc(int n)
Specified by:
doc in interface Hits

getCollatedSpellCheckResult

@JSON
public String getCollatedSpellCheckResult()
Specified by:
getCollatedSpellCheckResult in interface Hits

getDocs

@JSON
public Document[] getDocs()
Specified by:
getDocs in interface Hits

getGroupedHits

public Map<String,Hits> getGroupedHits()
Specified by:
getGroupedHits in interface Hits

getLength

public int getLength()
Specified by:
getLength in interface Hits

getQuery

@JSON(include=false)
public Query getQuery()
Specified by:
getQuery in interface Hits

getQuerySuggestions

@JSON
public String[] getQuerySuggestions()
Specified by:
getQuerySuggestions in interface Hits

getQueryTerms

@JSON
public String[] getQueryTerms()
Specified by:
getQueryTerms in interface Hits

getScores

@JSON
public float[] getScores()
Specified by:
getScores in interface Hits

getSearchTime

public float getSearchTime()
Specified by:
getSearchTime in interface Hits

getSnippets

@JSON
public String[] getSnippets()
Specified by:
getSnippets in interface Hits

getSpellCheckResults

public Map<String,List<String>> getSpellCheckResults()
Specified by:
getSpellCheckResults in interface Hits

getStart

public long getStart()
Specified by:
getStart in interface Hits

getStatsResults

public Map<String,StatsResults> getStatsResults()
Specified by:
getStatsResults in interface Hits

hasGroupedHits

public boolean hasGroupedHits()
Specified by:
hasGroupedHits in interface Hits

score

public float score(int n)
Specified by:
score in interface Hits

setCollatedSpellCheckResult

public void setCollatedSpellCheckResult(String collatedSpellCheckResult)
Specified by:
setCollatedSpellCheckResult in interface Hits

setDocs

public void setDocs(Document[] docs)
Specified by:
setDocs in interface Hits

setLength

public void setLength(int length)
Specified by:
setLength in interface Hits

setQuery

public void setQuery(Query query)
Specified by:
setQuery in interface Hits

setQuerySuggestions

public void setQuerySuggestions(String[] querySuggestions)
Specified by:
setQuerySuggestions in interface Hits

setQueryTerms

public void setQueryTerms(String[] queryTerms)
Specified by:
setQueryTerms in interface Hits

setScores

public void setScores(float[] scores)
Specified by:
setScores in interface Hits

setSearchTime

public void setSearchTime(float time)
Specified by:
setSearchTime in interface Hits

setSnippets

public void setSnippets(String[] snippets)
Specified by:
setSnippets in interface Hits

setSpellCheckResults

public void setSpellCheckResults(Map<String,List<String>> spellCheckResults)
Specified by:
setSpellCheckResults in interface Hits

setStart

public void setStart(long start)
Specified by:
setStart in interface Hits

snippet

public String snippet(int n)
Specified by:
snippet in interface Hits

toList

public List<Document> toList()
Specified by:
toList in interface Hits

Liferay 7.0-ce-b4