public class BrowseResult extends Object implements Serializable
| Constructor and Description |
|---|
BrowseResult()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
BrowseResult |
addAll(Map<String,FacetAccessible> facets)
Add all of the given FacetAccessible to this BrowseResult
|
void |
addError(String message) |
BrowseResult |
addFacets(String name,
FacetAccessible facets)
Add a container full of choices
|
void |
close() |
List<String> |
getBoboErrors() |
FacetAccessible |
getFacetAccessor(String name)
Get the facets by name
|
Map<String,FacetAccessible> |
getFacetMap()
Gets all the facet collections
|
FacetAccessible[] |
getGroupAccessibles()
Get the group accessible.
|
BrowseHit[] |
getHits()
Gets the hits
|
MapReduceResult |
getMapReduceResult() |
int |
getNumGroups()
Get the group count
|
int |
getNumHits()
Get the hit count
|
SortCollector |
getSortCollector()
Get the sort collector.
|
long |
getTid()
Get the transaction ID.
|
long |
getTime()
Gets the search time in milliseconds
|
int |
getTotalDocs()
Gets the total number of docs in the index
|
BrowseResult |
setGroupAccessibles(FacetAccessible[] groupAccessibles)
Set the group accessible.
|
BrowseResult |
setHits(BrowseHit[] hits)
Sets the hits
|
void |
setMapReduceResult(MapReduceResult mapReduceWrapper) |
BrowseResult |
setNumGroups(int groups)
Sets the group count
|
BrowseResult |
setNumHits(int hits)
Sets the hit count
|
BrowseResult |
setSortCollector(SortCollector sortCollector)
Set the sort collector.
|
void |
setTid(long tid)
Set the transaction ID;
|
void |
setTime(long time)
Sets the search time in milliseconds
|
BrowseResult |
setTotalDocs(int docs)
Sets the total number of docs in the index
|
String |
toString() |
static String |
toString(Map<String,FacetAccessible> map) |
public final long getTid()
public final void setTid(long tid)
tid - public FacetAccessible[] getGroupAccessibles()
public BrowseResult setGroupAccessibles(FacetAccessible[] groupAccessibles)
groupAccessible - the group accessible.public SortCollector getSortCollector()
public BrowseResult setSortCollector(SortCollector sortCollector)
sortCollector - the sort collectorpublic FacetAccessible getFacetAccessor(String name)
name - public int getNumHits()
setNumHits(int)public BrowseResult setNumHits(int hits)
hits - hit countgetNumHits()public int getNumGroups()
setNumGroups(int)public BrowseResult setNumGroups(int groups)
groups - group countgetNumGroups()public int getTotalDocs()
setTotalDocs(int)public BrowseResult setTotalDocs(int docs)
docs - total number of docs in the indexgetTotalDocs()public BrowseResult addFacets(String name, FacetAccessible facets)
facets - container full of facetspublic BrowseResult addAll(Map<String,FacetAccessible> facets)
facets - map of facets to add to the result setpublic BrowseResult setHits(BrowseHit[] hits)
hits - hitsgetHits()public BrowseHit[] getHits()
setHits(BrowseHit[])public void setTime(long time)
time - search timegetTime()public long getTime()
setTime(long)public Map<String,FacetAccessible> getFacetMap()
public MapReduceResult getMapReduceResult()
public void setMapReduceResult(MapReduceResult mapReduceWrapper)
public static String toString(Map<String,FacetAccessible> map)
public void close()
public void addError(String message)
Copyright © 2005–2013. All rights reserved.