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 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 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.static int
decodeInts(BytesRef bytesRef, int start, long[] dest)
An implementation ofdecode(BytesRef, int, long[])
for int/float dimension values which were encoded withIntFacetSet
andFloatFacetSet
respectively.static int
decodeLongs(BytesRef bytesRef, int start, long[] dest)
An implementation ofdecode(BytesRef, int, long[])
for long/double dimension values which were encoded withLongFacetSet
andDoubleFacetSet
respectively.
-
-
-
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 withLongFacetSet
andDoubleFacetSet
respectively.
-
decodeInts
static int decodeInts(BytesRef bytesRef, int start, long[] dest)
An implementation ofdecode(BytesRef, int, long[])
for int/float dimension values which were encoded withIntFacetSet
andFloatFacetSet
respectively.
-
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.
-
-