|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.facet.associations.CategoryIntAssociation
public class CategoryIntAssociation
A CategoryAssociation
that associates an integer with a category.
Field Summary | |
---|---|
static String |
ASSOCIATION_LIST_ID
|
Constructor Summary | |
---|---|
CategoryIntAssociation()
|
|
CategoryIntAssociation(int value)
|
Method Summary | |
---|---|
void |
deserialize(ByteArrayDataInput input)
Deserializes the association value from the given DataInput . |
String |
getCategoryListID()
Returns the ID of the category association. |
int |
getValue()
Returns the value associated with a category. |
int |
maxBytesNeeded()
Returns the maximum bytes needed to encode the association value. |
void |
serialize(ByteArrayDataOutput output)
Serializes the associated value into the given DataOutput . |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String ASSOCIATION_LIST_ID
Constructor Detail |
---|
public CategoryIntAssociation()
public CategoryIntAssociation(int value)
Method Detail |
---|
public void serialize(ByteArrayDataOutput output)
CategoryAssociation
DataOutput
.
serialize
in interface CategoryAssociation
public void deserialize(ByteArrayDataInput input)
CategoryAssociation
DataInput
.
deserialize
in interface CategoryAssociation
public int maxBytesNeeded()
CategoryAssociation
maxBytesNeeded
in interface CategoryAssociation
public String getCategoryListID()
CategoryAssociation
getCategoryListID
in interface CategoryAssociation
public int getValue()
CategoryIntAssociation()
, you should call
deserialize(ByteArrayDataInput)
before calling this method, or
otherwise the value returned is undefined.
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |