public class VSizeIndexedInts extends Object implements IndexedInts, Comparable<VSizeIndexedInts>
Modifier and Type | Class and Description |
---|---|
static class |
VSizeIndexedInts.VSizeIndexedIntsSupplier |
Constructor and Description |
---|
VSizeIndexedInts(ByteBuffer buffer,
int numBytes) |
Modifier and Type | Method and Description |
---|---|
WritableSupplier<IndexedInts> |
asWritableSupplier() |
void |
close() |
int |
compareTo(VSizeIndexedInts o) |
static VSizeIndexedInts |
empty() |
void |
fill(int index,
int[] toFill) |
static VSizeIndexedInts |
fromArray(int[] array) |
static VSizeIndexedInts |
fromArray(int[] array,
int maxValue) |
static VSizeIndexedInts |
fromList(List<Integer> list,
int maxValue) |
int |
get(int index) |
byte[] |
getBytes() |
byte[] |
getBytesNoPadding() |
int |
getNumBytes() |
static byte |
getNumBytesForMax(int maxValue) |
long |
getSerializedSize() |
Iterator<Integer> |
iterator() |
static VSizeIndexedInts |
readFromByteBuffer(ByteBuffer buffer) |
int |
size() |
void |
writeToChannel(WritableByteChannel channel) |
public VSizeIndexedInts(ByteBuffer buffer, int numBytes)
public static VSizeIndexedInts fromArray(int[] array)
public static VSizeIndexedInts fromArray(int[] array, int maxValue)
public static VSizeIndexedInts empty()
public static VSizeIndexedInts fromList(List<Integer> list, int maxValue)
public static byte getNumBytesForMax(int maxValue)
public int size()
size
in interface IndexedInts
public int get(int index)
get
in interface IndexedInts
public byte[] getBytesNoPadding()
public byte[] getBytes()
public int compareTo(VSizeIndexedInts o)
compareTo
in interface Comparable<VSizeIndexedInts>
public int getNumBytes()
public long getSerializedSize()
public void writeToChannel(WritableByteChannel channel) throws IOException
IOException
public static VSizeIndexedInts readFromByteBuffer(ByteBuffer buffer)
public void fill(int index, int[] toFill)
fill
in interface IndexedInts
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public WritableSupplier<IndexedInts> asWritableSupplier()
Copyright © 2011–2015. All rights reserved.