public class IntAssociationFacetField extends AssociationFacetField
Document to add
a facet label associated with an int. Use TaxonomyFacetSumIntAssociations to aggregate int values
per facet label at search time.Field.Storeassoc, dim, path, TYPEfieldsData, name, tokenStream, type| Constructor and Description |
|---|
IntAssociationFacetField(int assoc,
java.lang.String dim,
java.lang.String... path)
Creates this from
dim and path and an
int association |
| Modifier and Type | Method and Description |
|---|---|
static int |
bytesRefToInt(BytesRef b)
Decodes a previously encoded
int. |
static BytesRef |
intToBytesRef(int v)
Encodes an
int as a 4-byte BytesRef,
big-endian. |
java.lang.String |
toString()
Prints a Field for human consumption.
|
binaryValue, fieldType, getCharSequenceValue, name, numericValue, readerValue, setBytesValue, setBytesValue, setByteValue, setDoubleValue, setFloatValue, setIntValue, setLongValue, setReaderValue, setShortValue, setStringValue, setTokenStream, stringValue, tokenStream, tokenStreamValuepublic IntAssociationFacetField(int assoc,
java.lang.String dim,
java.lang.String... path)
dim and path and an
int associationpublic static BytesRef intToBytesRef(int v)
int as a 4-byte BytesRef,
big-endian.public static int bytesRefToInt(BytesRef b)
int.public java.lang.String toString()
FieldtoString in class AssociationFacetFieldCopyright © 2000–2025 The Apache Software Foundation. All rights reserved.