public class VSizeIndexedInts extends Object implements IndexedInts, Comparable<VSizeIndexedInts>
Constructor and Description |
---|
VSizeIndexedInts(ByteBuffer buffer,
int numBytes) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(VSizeIndexedInts o) |
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) |
int |
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 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 int getSerializedSize()
public void writeToChannel(WritableByteChannel channel) throws IOException
IOException
public static VSizeIndexedInts readFromByteBuffer(ByteBuffer buffer)
Copyright © 2015. All rights reserved.