Package org.elasticsearch.common.util
Interface DoubleArray
- All Superinterfaces:
org.apache.lucene.util.Accountable
,AutoCloseable
,BigArray
,Closeable
,org.elasticsearch.core.Releasable
Abstraction of an array of double values.
-
Field Summary
Fields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE
-
Method Summary
Modifier and TypeMethodDescriptionvoid
fill(long fromIndex, long toIndex, double value)
Fill slots betweenfromIndex
inclusive totoIndex
exclusive withvalue
.double
get(long index)
Get an element given its index.double
increment(long index, double inc)
Increment value at the given index byinc
and return the value.double
set(long index, double value)
Set a value at the given index and return the previous value.Methods inherited from interface org.apache.lucene.util.Accountable
getChildResources, ramBytesUsed
Methods inherited from interface org.elasticsearch.core.Releasable
close
-
Method Details
-
get
double get(long index)Get an element given its index. -
set
double set(long index, double value)Set a value at the given index and return the previous value. -
increment
double increment(long index, double inc)Increment value at the given index byinc
and return the value. -
fill
void fill(long fromIndex, long toIndex, double value)Fill slots betweenfromIndex
inclusive totoIndex
exclusive withvalue
.
-