public class InMemoryCompressedLongs extends Object implements IndexedLongs
| Modifier and Type | Field and Description |
|---|---|
static CompressedObjectStrategy.CompressionStrategy |
COMPRESSION |
| Constructor and Description |
|---|
InMemoryCompressedLongs(int sizePer,
ByteOrder order) |
| Modifier and Type | Method and Description |
|---|---|
int |
add(long value) |
int |
addAll(Iterable<Long> values) |
int |
binarySearch(long key) |
int |
binarySearch(long key,
int from,
int to) |
void |
close() |
void |
fill(int index,
long[] toFill) |
long |
get(int index) |
int |
size() |
CompressedLongsIndexedSupplier |
toCompressedLongsIndexedSupplier() |
public static final CompressedObjectStrategy.CompressionStrategy COMPRESSION
public InMemoryCompressedLongs(int sizePer,
ByteOrder order)
public int size()
size in interface IndexedLongspublic int add(long value)
public long get(int index)
get in interface IndexedLongspublic void fill(int index,
long[] toFill)
fill in interface IndexedLongspublic int binarySearch(long key)
binarySearch in interface IndexedLongspublic int binarySearch(long key,
int from,
int to)
binarySearch in interface IndexedLongspublic CompressedLongsIndexedSupplier toCompressedLongsIndexedSupplier()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2015. All rights reserved.