Package org.elasticsearch.common.util
Interface LongArray
-
- All Superinterfaces:
org.apache.lucene.util.Accountable
,java.lang.AutoCloseable
,BigArray
,java.io.Closeable
,Releasable
public interface LongArray extends BigArray
Abstraction of an array of long values.
-
-
Method Summary
Modifier and Type Method Description void
fill(long fromIndex, long toIndex, long value)
Fill slots betweenfromIndex
inclusive totoIndex
exclusive withvalue
.long
get(long index)
Get an element given its index.long
increment(long index, long inc)
Increment value at the given index byinc
and return the value.long
set(long index, long value)
Set a value at the given index and return the previous value.-
Methods inherited from interface org.elasticsearch.common.lease.Releasable
close
-
-
-
-
Method Detail
-
get
long get(long index)
Get an element given its index.
-
set
long set(long index, long value)
Set a value at the given index and return the previous value.
-
increment
long increment(long index, long inc)
Increment value at the given index byinc
and return the value.
-
fill
void fill(long fromIndex, long toIndex, long value)
Fill slots betweenfromIndex
inclusive totoIndex
exclusive withvalue
.
-
-