Package org.apache.lucene.facet.facetset
Interface FacetSetDecoder
-
public interface FacetSetDecoderA 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 asYourClass::decode.- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description intdecode(BytesRef bytesRef, int start, long[] dest)Decodes 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 Detail
-
decodeLongs
static int decodeLongs(BytesRef bytesRef, int start, long[] dest)
An implementation ofdecode(BytesRef, int, long[])for long/double dimension values which were encoded withLongFacetSetandDoubleFacetSetrespectively.
-
decodeInts
static int decodeInts(BytesRef bytesRef, int start, long[] dest)
An implementation ofdecode(BytesRef, int, long[])for int/float dimension values which were encoded withIntFacetSetandFloatFacetSetrespectively.
-
decode
int decode(BytesRef bytesRef, int start, long[] dest)
Decodes the facet set dimension values into the given destination buffer and returns the number of bytes read.
-
-