Search in sources :

Example 1 with HashMap

use of org.hsqldb_voltpatches.lib.HashMap in project voltdb by VoltDB.

the class SessionData method getSequenceValue.

public Object getSequenceValue(NumberSequence sequence) {
    if (sequenceMap == null) {
        sequenceMap = new HashMap();
        sequenceUpdateSet = new OrderedHashSet();
    }
    HsqlName key = sequence.getName();
    Object value = sequenceMap.get(key);
    if (value == null) {
        value = sequence.getValueObject();
        sequenceMap.put(key, value);
        sequenceUpdateSet.add(sequence);
    }
    return value;
}
Also used : LongKeyIntValueHashMap(org.hsqldb_voltpatches.lib.LongKeyIntValueHashMap) LongKeyHashMap(org.hsqldb_voltpatches.lib.LongKeyHashMap) HashMap(org.hsqldb_voltpatches.lib.HashMap) LongKeyLongValueHashMap(org.hsqldb_voltpatches.lib.LongKeyLongValueHashMap) OrderedHashSet(org.hsqldb_voltpatches.lib.OrderedHashSet) HsqlName(org.hsqldb_voltpatches.HsqlNameManager.HsqlName)

Aggregations

HsqlName (org.hsqldb_voltpatches.HsqlNameManager.HsqlName)1 HashMap (org.hsqldb_voltpatches.lib.HashMap)1 LongKeyHashMap (org.hsqldb_voltpatches.lib.LongKeyHashMap)1 LongKeyIntValueHashMap (org.hsqldb_voltpatches.lib.LongKeyIntValueHashMap)1 LongKeyLongValueHashMap (org.hsqldb_voltpatches.lib.LongKeyLongValueHashMap)1 OrderedHashSet (org.hsqldb_voltpatches.lib.OrderedHashSet)1