|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.browseengine.bobo.facets.impl.DefaultFacetCountCollector
public abstract class DefaultFacetCountCollector
| Field Summary | |
|---|---|
protected BigSegmentedArray |
_array
|
int[] |
_count
|
int |
_countlength
|
protected FacetDataCache |
_dataCache
|
protected FacetSpec |
_ospec
|
protected BrowseSelection |
_sel
|
protected LinkedList<int[]> |
intarraylist
|
protected static MemoryManager<int[]> |
intarraymgr
|
| Fields inherited from interface com.browseengine.bobo.facets.FacetCountCollector |
|---|
EMPTY_FACET_LIST |
| Constructor Summary | |
|---|---|
DefaultFacetCountCollector(String name,
FacetDataCache dataCache,
int docBase,
BrowseSelection sel,
FacetSpec ospec)
|
|
| Method Summary | |
|---|---|
void |
close()
Responsible for release resources used. |
abstract void |
collect(int docid)
Collect a hit. |
abstract void |
collectAll()
Collects all hits. |
int[] |
getCountDistribution()
Returns an integer array representing the distribution function of a given facet. |
BrowseFacet |
getFacet(String value)
Gets the facet given a value. |
FacetDataCache |
getFacetDataCache()
|
List<BrowseFacet> |
getFacets()
Gets gathered top facets |
static List<BrowseFacet> |
getFacets(FacetSpec ospec,
int[] count,
int countlength,
TermValueList<?> valList)
|
String |
getName()
Gets the name of the facet |
FacetIterator |
iterator()
This function returns an Iterator to visit the facets in value order |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final FacetSpec _ospec
public int[] _count
public int _countlength
protected FacetDataCache _dataCache
protected final BrowseSelection _sel
protected final BigSegmentedArray _array
protected final LinkedList<int[]> intarraylist
protected static MemoryManager<int[]> intarraymgr
| Constructor Detail |
|---|
public DefaultFacetCountCollector(String name,
FacetDataCache dataCache,
int docBase,
BrowseSelection sel,
FacetSpec ospec)
| Method Detail |
|---|
public String getName()
FacetCountCollector
getName in interface FacetCountCollectorpublic abstract void collect(int docid)
FacetCountCollector
collect in interface FacetCountCollectordocid - docpublic abstract void collectAll()
FacetCountCollector
collectAll in interface FacetCountCollectorpublic BrowseFacet getFacet(String value)
FacetAccessible
getFacet in interface FacetAccessiblevalue - Facet value
public int[] getCountDistribution()
FacetCountCollector
getCountDistribution in interface FacetCountCollectorpublic FacetDataCache getFacetDataCache()
public static List<BrowseFacet> getFacets(FacetSpec ospec,
int[] count,
int countlength,
TermValueList<?> valList)
public List<BrowseFacet> getFacets()
FacetAccessible
getFacets in interface FacetAccessiblepublic void close()
FacetAccessible
close in interface FacetAccessiblepublic FacetIterator iterator()
iterator in interface FacetAccessible
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||