public class IntRowMap extends IntHashMap
IntHashMap.Entry, IntHashMap.EntryIterator, IntHashMap.ValueIterator, IntHashMap.Values
Constructor and Description |
---|
IntRowMap()
Creates an IntRowMap of small initial capacity.
|
IntRowMap(int capacity)
Creates an IntRowMap of specified initial capacity.
|
IntRowMap(IntRowMap map)
Creates a IntRowMap containing the specified entries, in the order they are
returned by the map's iterator.
|
Modifier and Type | Method and Description |
---|---|
void |
addIndex(Index index) |
Row |
addRow(Table table,
Row row) |
void |
clear()
Removes all mappings from this
IntRowMap . |
void |
clearIndexes() |
Row |
deleteRow(Table table,
Row deleted) |
RowIterator |
getIndexedRows(Table source,
Selectable node,
boolean readOnly) |
Index |
getIndexForColumn(Column column) |
Row |
getRow(int key)
Returns the value to which this
IntRowMap maps the specified key. |
boolean |
isColumnIndexed(Column column) |
void |
populateIndex(Table table,
Index index) |
Row |
putRow(int key,
Row value)
Associates the specified value with the specified key in this
IntRowMap . |
Row |
removeRow(int key)
Removes the mapping for this key from this
IntRowMap if present. |
RowIterator |
rowIterator()
Returns a list iterator over the values in this list in proper sequence, (this map
maintains the insertion order).
|
RowCollection |
rowValues()
Returns a
RowCollection view of the values contained in this
IntRowMap . |
void |
shutdown() |
void |
truncateIndices() |
Row |
updateRow(Table table,
Row oldrow,
Row newrow) |
addEntry, containsKey, containsValue, entryIterator, equals, get, getEntry, hashCode, headEntry, isEmpty, keyIterator, keys, newEntry, put, putAll, remove, removeEntry, size, tailEntry, toString, valueIterator, values
public IntRowMap()
public IntRowMap(int capacity)
capacity
- the initial capacity.public IntRowMap(IntRowMap map)
map
- the map whose entries are to be placed into this map.public final void addIndex(Index index)
public Row addRow(Table table, Row row) throws AxionException
AxionException
public void clear()
IntRowMap
.clear
in class IntHashMap
public final void clearIndexes()
public Row deleteRow(Table table, Row deleted) throws AxionException
AxionException
public RowIterator getIndexedRows(Table source, Selectable node, boolean readOnly) throws AxionException
AxionException
public final Row getRow(int key)
IntRowMap
maps the specified key.key
- the key whose associated value is to be returned.null
if there is no mapping for the key.public boolean isColumnIndexed(Column column)
public void populateIndex(Table table, Index index) throws AxionException
AxionException
public final Row putRow(int key, Row value)
IntRowMap
.
If the IntRowMap
previously contained a mapping for this key, the old value
is replaced.key
- the key with which the specified value is to be associated.value
- the value to be associated with the specified key.null
if
there was no mapping for key. A null
return can also
indicate that the map previously associated null
with the
specified key.public final Row removeRow(int key)
IntRowMap
if present.key
- the key whose mapping is to be removed from the map.null
if
there was no mapping for key. A null
return can also
indicate that the map previously associated null
with the
specified key.public final RowIterator rowIterator()
public final RowCollection rowValues()
RowCollection
view of the values contained in this
IntRowMap
. The collection is backed by the map, so changes to the map are
reflected in the collection, and vice-versa. The collection supports element
removal, which removes the corresponding mapping from this map, via the
RowIterator.remove
,RowCollection.remove
and
clear
operations.public void shutdown()
public void truncateIndices() throws AxionException
AxionException
public Row updateRow(Table table, Row oldrow, Row newrow) throws AxionException
AxionException