Package org.apache.lucene.facet.search
Class FacetArrays
- java.lang.Object
-
- org.apache.lucene.facet.search.FacetArrays
-
public class FacetArrays extends Object
Provider of arrays used for facet operations such as counting.- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
-
Constructor Summary
Constructors Constructor Description FacetArrays(IntArrayAllocator intArrayAllocator, FloatArrayAllocator floatArrayAllocator)Create a FacetArrays with certain array allocators.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfree()Notify allocators that they can free arrays allocated on behalf of this FacetArrays object.intgetArraysLength()Return the arrays lengthfloat[]getFloatArray()Obtain a float array, e.g.int[]getIntArray()Obtain an int array, e.g.
-
-
-
Constructor Detail
-
FacetArrays
public FacetArrays(IntArrayAllocator intArrayAllocator, FloatArrayAllocator floatArrayAllocator)
Create a FacetArrays with certain array allocators.- Parameters:
intArrayAllocator- allocator for int arrays.floatArrayAllocator- allocator for float arrays.
-
-
Method Detail
-
free
public void free()
Notify allocators that they can free arrays allocated on behalf of this FacetArrays object.
-
getIntArray
public int[] getIntArray()
Obtain an int array, e.g. for facet counting.
-
getFloatArray
public float[] getFloatArray()
Obtain a float array, e.g. for evaluating facet association values.
-
getArraysLength
public int getArraysLength()
Return the arrays length
-
-