Package org.apache.lucene.facet.facetset
Interface FacetSetDecoder
public interface FacetSetDecoder
A functional interface for decoding facet set values into comparable `long` ones. You can use it
by e.g. implementing a static method with the same signature and then pass it as
YourClass::decode.- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Method Summary
Modifier and TypeMethodDescriptionintDecodes the facet set dimension values into the given destination buffer and returns the number of bytes read.static intdecodeInts(BytesRef bytesRef, int start, long[] dest) An implementation ofdecode(BytesRef, int, long[])for int/float dimension values which were encoded withIntFacetSetandFloatFacetSetrespectively.static intdecodeLongs(BytesRef bytesRef, int start, long[] dest) An implementation ofdecode(BytesRef, int, long[])for long/double dimension values which were encoded withLongFacetSetandDoubleFacetSetrespectively.
-
Method Details
-
decodeLongs
An implementation ofdecode(BytesRef, int, long[])for long/double dimension values which were encoded withLongFacetSetandDoubleFacetSetrespectively. -
decodeInts
An implementation ofdecode(BytesRef, int, long[])for int/float dimension values which were encoded withIntFacetSetandFloatFacetSetrespectively. -
decode
Decodes the facet set dimension values into the given destination buffer and returns the number of bytes read.
-