Package com.qfs.index
Interface ILongArray
- All Known Subinterfaces:
ILongArrayTransaction,ILongArrayVersion,ISquashableLongArrayVersion,IWritableLongArray
- All Known Implementing Classes:
ALongArray,ChunkedLongArray,LongArray,LongArrayTransaction,LongArrayVersion
public interface ILongArray
Interface for a long array.
- Author:
- ActiveViam
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value that marks an empty spot in this array.longgetValue(int index) Returns the value stored at the given index, or theempty valueif there is no value stored there.intsize()Returns the size of this array.voidtransferValues(int[] indexes, long[] valuesBuffer, int numIndexes) Transfers the values associated with the given indexes into the given buffer.
-
Field Details
-
DEFAULT_EMPTY_VALUE
static final long DEFAULT_EMPTY_VALUEThe default empty value.We cannot take a negative value since we sometimes store them for above components.
- See Also:
-
-
Method Details
-
getValue
long getValue(int index) Returns the value stored at the given index, or theempty valueif there is no value stored there.- Parameters:
index- the index- Returns:
- the value stored at that index
-
transferValues
void transferValues(int[] indexes, long[] valuesBuffer, int numIndexes) Transfers the values associated with the given indexes into the given buffer.- Parameters:
indexes- the indexes from which the values should be transferredvaluesBuffer- the buffer into which the values will be transferrednumIndexes- the number of indexes to transfer the values from
-
size
int size()Returns the size of this array.- Returns:
- the size
-
getEmptyValue
long getEmptyValue()Returns the value that marks an empty spot in this array.- Returns:
- the value that marks an empty spot
-