org.apache.lucene.util.Accountable, java.lang.AutoCloseable, BigArray, java.io.Closeable, Releasablepublic interface ByteArray extends BigArray
| Modifier and Type | Method | Description |
|---|---|---|
void |
fill(long fromIndex,
long toIndex,
byte value) |
Fill slots between
fromIndex inclusive to toIndex exclusive with value. |
byte |
get(long index) |
Get an element given its index.
|
boolean |
get(long index,
int len,
org.apache.lucene.util.BytesRef ref) |
Get a reference to a slice.
|
byte |
set(long index,
byte value) |
Set a value at the given index and return the previous value.
|
void |
set(long index,
byte[] buf,
int offset,
int len) |
Bulk set.
|
closebyte get(long index)
byte set(long index,
byte value)
boolean get(long index,
int len,
org.apache.lucene.util.BytesRef ref)
true when a byte[] was materialized, false otherwise.void set(long index,
byte[] buf,
int offset,
int len)
void fill(long fromIndex,
long toIndex,
byte value)
fromIndex inclusive to toIndex exclusive with value.