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
IntRowMapmaps 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
IntRowMapif 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
RowCollectionview 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, valuespublic 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
AxionExceptionpublic void clear()
IntRowMap.clear in class IntHashMappublic final void clearIndexes()
public Row deleteRow(Table table, Row deleted) throws AxionException
AxionExceptionpublic RowIterator getIndexedRows(Table source, Selectable node, boolean readOnly) throws AxionException
AxionExceptionpublic final Row getRow(int key)
IntRowMapmaps 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
AxionExceptionpublic final Row putRow(int key, Row value)
IntRowMap.
If the IntRowMappreviously 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)
IntRowMapif 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()
RowCollectionview 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
AxionExceptionpublic Row updateRow(Table table, Row oldrow, Row newrow) throws AxionException
AxionException