org.h2.test.store
Class SequenceMap

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by org.h2.mvstore.MVMap<java.lang.Long,java.lang.Long>
          extended by org.h2.test.store.SequenceMap
All Implemented Interfaces:
java.util.concurrent.ConcurrentMap<java.lang.Long,java.lang.Long>, java.util.Map<java.lang.Long,java.lang.Long>

public class SequenceMap
extends MVMap<java.lang.Long,java.lang.Long>

A custom map returning the keys and values values 1 .. 10.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Field Summary
 
Fields inherited from class org.h2.mvstore.MVMap
root, store
 
Constructor Summary
SequenceMap()
           
 
Method Summary
 java.util.Set<java.lang.Long> keySet()
           
 void open(MVStore store, java.util.HashMap<java.lang.String,java.lang.String> config)
          Open this map with the given store and configuration.
 
Methods inherited from class org.h2.mvstore.MVMap
asString, binarySearch, binarySearchPage, ceilingKey, changeIterator, checkOpen, checkWrite, clear, close, containsKey, entrySet, equals, firstKey, floorKey, get, getChildPageCount, getKey, getKeyIndex, getKeyType, getPage, getRoot, getSize, getType, getValueType, getVersion, hashCode, hasUnsavedChanges, higherKey, isClosed, isReadOnly, keyIterator, keyList, lastKey, lowerKey, newRoot, openReadOnly, openVersion, put, put, putIfAbsent, remove, remove, remove, removeMap, removePage, replace, replace, setReadOnly, size
 
Methods inherited from class java.util.AbstractMap
clone, containsValue, isEmpty, putAll, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
containsValue, isEmpty, putAll, values
 

Constructor Detail

SequenceMap

public SequenceMap()
Method Detail

open

public void open(MVStore store,
                 java.util.HashMap<java.lang.String,java.lang.String> config)
Description copied from class: MVMap
Open this map with the given store and configuration.

Overrides:
open in class MVMap<java.lang.Long,java.lang.Long>
Parameters:
store - the store
config - the configuration

keySet

public java.util.Set<java.lang.Long> keySet()
Specified by:
keySet in interface java.util.Map<java.lang.Long,java.lang.Long>
Overrides:
keySet in class MVMap<java.lang.Long,java.lang.Long>