Class AssociationProperty
- java.lang.Object
-
- org.apache.lucene.facet.enhancements.association.AssociationProperty
-
- All Implemented Interfaces:
Serializable
,CategoryProperty
- Direct Known Subclasses:
AssociationFloatProperty
,AssociationIntProperty
public abstract class AssociationProperty extends Object implements CategoryProperty
ACategoryProperty
associating a single integer value to aCategoryAttribute
. It should be used to describe the association between the category and the document.This class leave to extending classes the definition of
CategoryProperty.merge(CategoryProperty)
policy for the integer associations.Note: The association value is added both to a special category list, and to the category tokens.
- See Also:
AssociationEnhancement
, Serialized Form- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
-
Field Summary
Fields Modifier and Type Field Description protected long
association
-
Constructor Summary
Constructors Constructor Description AssociationProperty(int value)
Construct anAssociationProperty
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getAssociation()
Returns the association value.boolean
hasBeenSet()
Returns whether this attribute has been set (not all categories have an association).String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.lucene.facet.index.attributes.CategoryProperty
merge
-
-
-
-
Constructor Detail
-
AssociationProperty
public AssociationProperty(int value)
Construct anAssociationProperty
.- Parameters:
value
- The association value.
-
-