Package org.elasticsearch.common.util
Interface FloatArray
- All Superinterfaces:
org.apache.lucene.util.Accountable,java.lang.AutoCloseable,BigArray,java.io.Closeable,Releasable
public interface FloatArray extends BigArray
Abstraction of an array of double values.
-
Method Summary
Modifier and Type Method Description voidfill(long fromIndex, long toIndex, float value)Fill slots betweenfromIndexinclusive totoIndexexclusive withvalue.floatget(long index)Get an element given its index.floatincrement(long index, float inc)Increment value at the given index byincand return the value.floatset(long index, float value)Set a value at the given index and return the previous value.
-
Method Details
-
get
float get(long index)Get an element given its index. -
set
float set(long index, float value)Set a value at the given index and return the previous value. -
increment
float increment(long index, float inc)Increment value at the given index byincand return the value. -
fill
void fill(long fromIndex, long toIndex, float value)Fill slots betweenfromIndexinclusive totoIndexexclusive withvalue.
-