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 IndexedLongs
public int add(long value)
public long get(int index)
get
in interface IndexedLongs
public void fill(int index, long[] toFill)
fill
in interface IndexedLongs
public int binarySearch(long key)
binarySearch
in interface IndexedLongs
public int binarySearch(long key, int from, int to)
binarySearch
in interface IndexedLongs
public CompressedLongsIndexedSupplier toCompressedLongsIndexedSupplier()
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2011–2015. All rights reserved.