|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.facet.index.params.CategoryListParams
public class CategoryListParams
Contains parameters for a category list *
Field Summary | |
---|---|
static Term |
DEFAULT_TERM
The default term used to store the facets information. |
Constructor Summary | |
---|---|
CategoryListParams()
Constructs a default category list parameters object, using DEFAULT_TERM . |
|
CategoryListParams(Term term)
Constructs a category list parameters object, using the given Term . |
Method Summary | |
---|---|
CategoryListIterator |
createCategoryListIterator(int partition)
Create the CategoryListIterator for the specified partition. |
IntEncoder |
createEncoder()
Allows to override how categories are encoded and decoded. |
boolean |
equals(Object o)
|
Term |
getTerm()
A Term who's payload holds the category-list. |
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Term DEFAULT_TERM
Constructor Detail |
---|
public CategoryListParams()
DEFAULT_TERM
.
public CategoryListParams(Term term)
Term
.
term
- who's payload hold the category-list.Method Detail |
---|
public final Term getTerm()
Term
who's payload holds the category-list.
public IntEncoder createEncoder()
IntDecoder
is provided by the IntEncoder
.
Default implementation creates a new Sorting(Unique(DGap)) encoder. Uniqueness in this regard means when the same category appears twice in a document, only one appearance would be encoded. This has effect on facet counting results.
Some possible considerations when overriding may be:
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public CategoryListIterator createCategoryListIterator(int partition) throws IOException
CategoryListIterator
for the specified partition.
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |