public class LongKeyIntValueTable extends LongKeyTable<int[]>
| Modifier and Type | Field and Description |
|---|---|
static int |
NULL |
| Constructor and Description |
|---|
LongKeyIntValueTable(int capacity) |
| Modifier and Type | Method and Description |
|---|---|
long |
move(int fromIndex,
int toIndex)
Moves the key/value from one index to another, any hop bits stay.
|
void |
put(int index,
long key,
int[] value)
Puts (key/value) at the given
index. |
int[] |
putValue(int index,
int[] value)
Puts, actually overwrites, the value at the given
index. |
int[] |
remove(int index)
Removes the currently assigned key/value from the given
index. |
int[] |
value(int index)
OPTIONAL operation.
|
keyclear, hopBits, moveHopBit, putHopBit, removeHopBitpublic static final int NULL
public int[] value(int index)
Tablenull if unsupported.value in interface Table<int[]>value in class IntArrayBasedKeyTable<int[]>null will be returned.public void put(int index,
long key,
int[] value)
Tableindex. This index must contractually be free at the point where the
algorithm calls this method.put in interface Table<int[]>put in class IntArrayBasedKeyTable<int[]>index - the index to put this key/value in.key - the key to put.value - the value to put.public int[] putValue(int index,
int[] value)
Tableindex. This index will contractually be occupied
at the point where the algorithm calls this method. This new value
replaces the existing value at this index.putValue in interface Table<int[]>putValue in class IntArrayBasedKeyTable<int[]>index - the index to put this value in.value - the value to put at this index.public int[] remove(int index)
Tableindex.remove in interface Table<int[]>remove in class IntArrayBasedKeyTable<int[]>index - the index to remove key/value from.public long move(int fromIndex,
int toIndex)
TablefromIndex followed by a put at toIndex. After this method has been called there will no longer
be any key/value assigned at fromIndex.move in interface Table<int[]>move in class IntArrayBasedKeyTable<int[]>fromIndex - the index to move the key/value from.toIndex - the index to move the key/value to.Copyright © 2002–2014 The Neo4j Graph Database Project. All rights reserved.