| java.lang.Object org.axiondb.engine.rowcollection.IntHashMap org.axiondb.engine.rowcollection.IntRowMap
IntRowMap | public class IntRowMap extends IntHashMap (Code) | | Int key and Row value Map, this does not implement java.util.Map interface and has
limited Map like API. Does not implement EntrySet and and KeySet, tather it just
retunds their iterator.
version: $Revision: 1.5 $ $Date: 2005/12/23 01:32:24 $ author: Ahimanikya Satapathy |
Constructor Summary | |
public | IntRowMap() Creates an IntRowMap of small initial capacity. | public | IntRowMap(int capacity) Creates an IntRowMap of specified initial capacity. | public | IntRowMap(IntRowMap map) Creates a IntRowMap containing the specified entries, in the order they are
returned by the map's iterator. |
Method Summary | |
final public void | addIndex(Index index) | public Row | addRow(Table table, Row row) | public void | clear() Removes all mappings from this
IntRowMap . | final public void | clearIndexes() | public Row | deleteRow(Table table, Row deleted) | public Index | getIndexForColumn(Column column) | public RowIterator | getIndexedRows(Table source, Selectable node, boolean readOnly) | final public Row | getRow(int key) Returns the value to which this
IntRowMap maps the specified key.
Parameters: key - the key whose associated value is to be returned. | public boolean | isColumnIndexed(Column column) | public void | populateIndex(Table table, Index index) | final public Row | putRow(int key, Row value) Associates the specified value with the specified key in this
IntRowMap .
If the
IntRowMap previously contained a mapping for this key, the old value
is replaced.
Parameters: key - the key with which the specified value is to be associated. Parameters: value - the value to be associated with the specified key. | final public Row | removeRow(int key) Removes the mapping for this key from this
IntRowMap if present.
Parameters: key - the key whose mapping is to be removed from the map. | final public RowIterator | rowIterator() Returns a list iterator over the values in this list in proper sequence, (this map
maintains the insertion order). | final public RowCollection | rowValues() Returns a
RowCollection view of the values contained in this
IntRowMap . | public void | shutdown() | public void | truncateIndices() | public Row | updateRow(Table table, Row oldrow, Row newrow) |
IntRowMap | public IntRowMap()(Code) | | Creates an IntRowMap of small initial capacity.
|
IntRowMap | public IntRowMap(int capacity)(Code) | | Creates an IntRowMap of specified initial capacity. Unless the map size exceeds the
specified capacity no memory allocation is ever performed.
Parameters: capacity - the initial capacity. |
IntRowMap | public IntRowMap(IntRowMap map)(Code) | | Creates a IntRowMap containing the specified entries, in the order they are
returned by the map's iterator.
Parameters: map - the map whose entries are to be placed into this map. |
clearIndexes | final public void clearIndexes()(Code) | | |
getRow | final public Row getRow(int key)(Code) | | Returns the value to which this
IntRowMap maps the specified key.
Parameters: key - the key whose associated value is to be returned. the value to which this map maps the specified key, or null if there is no mapping for the key. |
isColumnIndexed | public boolean isColumnIndexed(Column column)(Code) | | |
putRow | final public Row putRow(int key, Row value)(Code) | | Associates the specified value with the specified key in this
IntRowMap .
If the
IntRowMap previously contained a mapping for this key, the old value
is replaced.
Parameters: key - the key with which the specified value is to be associated. Parameters: value - the value to be associated with the specified key. the previous value associated with specified key, or null ifthere was no mapping for key. A null return can alsoindicate that the map previously associated null with thespecified key. |
removeRow | final public Row removeRow(int key)(Code) | | Removes the mapping for this key from this
IntRowMap if present.
Parameters: key - the key whose mapping is to be removed from the map. previous value associated with specified key, or null ifthere was no mapping for key. A null return can alsoindicate that the map previously associated null with thespecified key. |
rowIterator | final public RowIterator rowIterator()(Code) | | Returns a list iterator over the values in this list in proper sequence, (this map
maintains the insertion order).
a list iterator of the values in this list (in proper sequence). |
rowValues | final public RowCollection rowValues()(Code) | | Returns a
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.
a row collection view of the values contained in this map. |
shutdown | public void shutdown()(Code) | | |
|
|