public class FacetArrays extends Object
Constructor and Description |
---|
FacetArrays(IntArrayAllocator intArrayAllocator,
FloatArrayAllocator floatArrayAllocator)
Create a FacetArrays with certain array allocators.
|
Modifier and Type | Method and Description |
---|---|
void |
free()
Notify allocators that they can free arrays allocated
on behalf of this FacetArrays object.
|
int |
getArraysLength()
Return the arrays length
|
float[] |
getFloatArray()
Obtain a float array, e.g. for evaluating facet association values.
|
int[] |
getIntArray()
Obtain an int array, e.g. for facet counting.
|
public FacetArrays(IntArrayAllocator intArrayAllocator, FloatArrayAllocator floatArrayAllocator)
intArrayAllocator
- allocator for int arrays.floatArrayAllocator
- allocator for float arrays.public void free()
public int[] getIntArray()
public float[] getFloatArray()
public int getArraysLength()