- All Superinterfaces:
 org.apache.lucene.util.Accountable,AutoCloseable,BigArray,Closeable,Releasable,Writeable
- All Known Implementing Classes:
 ReleasableLongArray
Abstraction of an array of long values.
- 
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> - 
Field Summary
Fields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE - 
Method Summary
Modifier and TypeMethodDescriptionvoidfill(long fromIndex, long toIndex, long value) Fill slots betweenfromIndexinclusive totoIndexexclusive withvalue.voidfillWith(StreamInput in) Alternative ofreadFrom(StreamInput)where the written bytes are loaded into an existingLongArraylongget(long index) Get an element given its index.longgetAndSet(long index, long value) Set a value at the given index and return the previous value.longincrement(long index, long inc) Increment value at the given index byincand return the value.static LongArrayreadFrom(StreamInput in) voidset(long index, byte[] buf, int offset, int len) Bulk set.voidset(long index, long value) Set a value at the given index.Methods inherited from interface org.apache.lucene.util.Accountable
getChildResources, ramBytesUsedMethods inherited from interface org.elasticsearch.core.Releasable
close 
- 
Method Details
- 
readFrom
- Throws:
 IOException
 - 
get
long get(long index) Get an element given its index. - 
getAndSet
long getAndSet(long index, long value) Set a value at the given index and return the previous value. - 
set
void set(long index, long value) Set a value at the given index. - 
increment
long increment(long index, long inc) Increment value at the given index byincand return the value. - 
fill
void fill(long fromIndex, long toIndex, long value) Fill slots betweenfromIndexinclusive totoIndexexclusive withvalue. - 
fillWith
Alternative ofreadFrom(StreamInput)where the written bytes are loaded into an existingLongArray- Throws:
 IOException
 - 
set
void set(long index, byte[] buf, int offset, int len) Bulk set. 
 -