test_class.declarator: engine = new StorageDirect(Volume.memoryFactory(false))
test_class.original_string: Engine engine = new StorageDirect(Volume.memoryFactory(false));
test_class.type: Engine
test_class.var_name: engine
test_class.declarator: db = new DB(engine)
test_class.original_string: DB db = new DB(engine);
test_class.type: DB
test_class.var_name: db
test_class.file: migration/third-party/org.mapdb/src/test/java/org/mapdb/DBTest.java
test_class.identifier: DBTest
test_case.body: @Test
      public void testGetTreeSet() throws Exception {
          Set m1 = db.getTreeSet("test");
          m1.add(1);
          m1.add(2);
          assertTrue(m1 == db.getTreeSet("test"));
          assertEquals(m1, new DB(engine).getTreeSet("test"));
      }
test_case.class_method_signature: DBTest.testGetTreeSet()
test_case.full_signature: @Test public void testGetTreeSet()
test_case.identifier: testGetTreeSet
test_case.invocations: getTreeSet add add assertTrue getTreeSet assertEquals getTreeSet
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetTreeSet()
focal_class.declarator: engine
focal_class.modifier: protected
focal_class.original_string: protected Engine engine;
focal_class.type: Engine
focal_class.var_name: engine
focal_class.declarator: collections = new HashMap<String, WeakReference<?>>()
focal_class.modifier: protected
focal_class.original_string: protected Map<String, WeakReference<?>> collections = new HashMap<String, WeakReference<?>>();
focal_class.type: Map<String, WeakReference<?>>
focal_class.var_name: collections
focal_class.declarator: nameDir
focal_class.modifier: protected
focal_class.original_string: protected Map<String, Long> nameDir;
focal_class.type: Map<String, Long>
focal_class.var_name: nameDir
focal_class.declarator: defaultSerializer
focal_class.modifier: protected
focal_class.original_string: protected Serializer<?> defaultSerializer;
focal_class.type: Serializer<?>
focal_class.var_name: defaultSerializer
focal_class.file: migration/third-party/org.mapdb/src/main/java/org/mapdb/DB.java
focal_class.identifier: DB
focal_class.class_method_signature: DB.DB(final Engine engine)
focal_class.full_signature: public  DB(final Engine engine)
focal_class.identifier: DB
focal_class.modifiers: public
focal_class.parameters: (final Engine engine)
focal_class.signature:  DB(final Engine engine)
focal_class.class_method_signature: DB.getHashMap(String name)
focal_class.full_signature: synchronized public HTreeMap<K,V> getHashMap(String name)
focal_class.identifier: getHashMap
focal_class.modifiers: synchronized public
focal_class.parameters: (String name)
focal_class.return: HTreeMap<K,V>
focal_class.signature: HTreeMap<K,V> getHashMap(String name)
focal_class.class_method_signature: DB.createHashMap(
              String name, Serializer<K> keySerializer, Serializer<V> valueSerializer)
focal_class.full_signature: synchronized public HTreeMap<K,V> createHashMap(
              String name, Serializer<K> keySerializer, Serializer<V> valueSerializer)
focal_class.identifier: createHashMap
focal_class.modifiers: synchronized public
focal_class.parameters: (
              String name, Serializer<K> keySerializer, Serializer<V> valueSerializer)
focal_class.return: HTreeMap<K,V>
focal_class.signature: HTreeMap<K,V> createHashMap(
              String name, Serializer<K> keySerializer, Serializer<V> valueSerializer)
focal_class.class_method_signature: DB.getHashSet(String name)
focal_class.full_signature: synchronized public Set<K> getHashSet(String name)
focal_class.identifier: getHashSet
focal_class.modifiers: synchronized public
focal_class.parameters: (String name)
focal_class.return: Set<K>
focal_class.signature: Set<K> getHashSet(String name)
focal_class.class_method_signature: DB.createHashSet(String name, Serializer<K> serializer)
focal_class.full_signature: synchronized public Set<K> createHashSet(String name, Serializer<K> serializer)
focal_class.identifier: createHashSet
focal_class.modifiers: synchronized public
focal_class.parameters: (String name, Serializer<K> serializer)
focal_class.return: Set<K>
focal_class.signature: Set<K> createHashSet(String name, Serializer<K> serializer)
focal_class.class_method_signature: DB.getTreeMap(String name)
focal_class.full_signature: synchronized public BTreeMap<K,V> getTreeMap(String name)
focal_class.identifier: getTreeMap
focal_class.modifiers: synchronized public
focal_class.parameters: (String name)
focal_class.return: BTreeMap<K,V>
focal_class.signature: BTreeMap<K,V> getTreeMap(String name)
focal_class.class_method_signature: DB.createTreeMap(
              String name, int nodeSize, boolean valuesStoredOutsideNodes,
              BTreeKeySerializer<K> keySerializer, Serializer<V> valueSerializer, Comparator<K> comparator)
focal_class.full_signature: synchronized public BTreeMap<K,V> createTreeMap(
              String name, int nodeSize, boolean valuesStoredOutsideNodes,
              BTreeKeySerializer<K> keySerializer, Serializer<V> valueSerializer, Comparator<K> comparator)
focal_class.identifier: createTreeMap
focal_class.modifiers: synchronized public
focal_class.parameters: (
              String name, int nodeSize, boolean valuesStoredOutsideNodes,
              BTreeKeySerializer<K> keySerializer, Serializer<V> valueSerializer, Comparator<K> comparator)
focal_class.return: BTreeMap<K,V>
focal_class.signature: BTreeMap<K,V> createTreeMap(
              String name, int nodeSize, boolean valuesStoredOutsideNodes,
              BTreeKeySerializer<K> keySerializer, Serializer<V> valueSerializer, Comparator<K> comparator)
focal_class.class_method_signature: DB.getNameDir()
focal_class.full_signature: public Map<String, Long> getNameDir()
focal_class.identifier: getNameDir
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Map<String, Long>
focal_class.signature: Map<String, Long> getNameDir()
focal_class.class_method_signature: DB.getTreeSet(String name)
focal_class.full_signature: synchronized public NavigableSet<K> getTreeSet(String name)
focal_class.identifier: getTreeSet
focal_class.modifiers: synchronized public
focal_class.parameters: (String name)
focal_class.return: NavigableSet<K>
focal_class.signature: NavigableSet<K> getTreeSet(String name)
focal_class.class_method_signature: DB.createTreeSet(String name, int nodeSize, BTreeKeySerializer<K> serializer, Comparator<K> comparator)
focal_class.full_signature: synchronized public NavigableSet<K> createTreeSet(String name, int nodeSize, BTreeKeySerializer<K> serializer, Comparator<K> comparator)
focal_class.identifier: createTreeSet
focal_class.modifiers: synchronized public
focal_class.parameters: (String name, int nodeSize, BTreeKeySerializer<K> serializer, Comparator<K> comparator)
focal_class.return: NavigableSet<K>
focal_class.signature: NavigableSet<K> createTreeSet(String name, int nodeSize, BTreeKeySerializer<K> serializer, Comparator<K> comparator)
focal_class.class_method_signature: DB.getQueue(String name)
focal_class.full_signature: synchronized public Queue<E> getQueue(String name)
focal_class.identifier: getQueue
focal_class.modifiers: synchronized public
focal_class.parameters: (String name)
focal_class.return: Queue<E>
focal_class.signature: Queue<E> getQueue(String name)
focal_class.class_method_signature: DB.getStack(String name)
focal_class.full_signature: synchronized public Queue<E> getStack(String name)
focal_class.identifier: getStack
focal_class.modifiers: synchronized public
focal_class.parameters: (String name)
focal_class.return: Queue<E>
focal_class.signature: Queue<E> getStack(String name)
focal_class.class_method_signature: DB.getCircularQueue(String name)
focal_class.full_signature: synchronized public Queue<E> getCircularQueue(String name)
focal_class.identifier: getCircularQueue
focal_class.modifiers: synchronized public
focal_class.parameters: (String name)
focal_class.return: Queue<E>
focal_class.signature: Queue<E> getCircularQueue(String name)
focal_class.class_method_signature: DB.createQueue(String name, Serializer<E> serializer)
focal_class.full_signature: synchronized public Queue<E> createQueue(String name, Serializer<E> serializer)
focal_class.identifier: createQueue
focal_class.modifiers: synchronized public
focal_class.parameters: (String name, Serializer<E> serializer)
focal_class.return: Queue<E>
focal_class.signature: Queue<E> createQueue(String name, Serializer<E> serializer)
focal_class.class_method_signature: DB.createStack(String name, Serializer<E> serializer, boolean useLocks)
focal_class.full_signature: synchronized public Queue<E> createStack(String name, Serializer<E> serializer, boolean useLocks)
focal_class.identifier: createStack
focal_class.modifiers: synchronized public
focal_class.parameters: (String name, Serializer<E> serializer, boolean useLocks)
focal_class.return: Queue<E>
focal_class.signature: Queue<E> createStack(String name, Serializer<E> serializer, boolean useLocks)
focal_class.class_method_signature: DB.createCircularQueue(String name, Serializer<E> serializer, long size)
focal_class.full_signature: synchronized public Queue<E> createCircularQueue(String name, Serializer<E> serializer, long size)
focal_class.identifier: createCircularQueue
focal_class.modifiers: synchronized public
focal_class.parameters: (String name, Serializer<E> serializer, long size)
focal_class.return: Queue<E>
focal_class.signature: Queue<E> createCircularQueue(String name, Serializer<E> serializer, long size)
focal_class.class_method_signature: DB.checkNameNotExists(String name)
focal_class.full_signature: protected void checkNameNotExists(String name)
focal_class.identifier: checkNameNotExists
focal_class.modifiers: protected
focal_class.parameters: (String name)
focal_class.return: void
focal_class.signature: void checkNameNotExists(String name)
focal_class.class_method_signature: DB.close()
focal_class.full_signature: synchronized public void close()
focal_class.identifier: close
focal_class.modifiers: synchronized public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void close()
focal_class.class_method_signature: DB.getFromWeakCollection(String name)
focal_class.full_signature: protected Object getFromWeakCollection(String name)
focal_class.identifier: getFromWeakCollection
focal_class.modifiers: protected
focal_class.parameters: (String name)
focal_class.return: Object
focal_class.signature: Object getFromWeakCollection(String name)
focal_class.class_method_signature: DB.checkNotClosed()
focal_class.full_signature: protected void checkNotClosed()
focal_class.identifier: checkNotClosed
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void checkNotClosed()
focal_class.class_method_signature: DB.isClosed()
focal_class.full_signature: public synchronized boolean isClosed()
focal_class.identifier: isClosed
focal_class.modifiers: public synchronized
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isClosed()
focal_class.class_method_signature: DB.commit()
focal_class.full_signature: synchronized public void commit()
focal_class.identifier: commit
focal_class.modifiers: synchronized public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void commit()
focal_class.class_method_signature: DB.rollback()
focal_class.full_signature: synchronized public void rollback()
focal_class.identifier: rollback
focal_class.modifiers: synchronized public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void rollback()
focal_class.class_method_signature: DB.compact()
focal_class.full_signature: synchronized public void compact()
focal_class.identifier: compact
focal_class.modifiers: synchronized public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void compact()
focal_class.class_method_signature: DB.snapshot()
focal_class.full_signature: synchronized public DB snapshot()
focal_class.identifier: snapshot
focal_class.modifiers: synchronized public
focal_class.parameters: ()
focal_class.return: DB
focal_class.signature: DB snapshot()
focal_class.class_method_signature: DB.getDefaultSerializer()
focal_class.full_signature: public Serializer getDefaultSerializer()
focal_class.identifier: getDefaultSerializer
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Serializer
focal_class.signature: Serializer getDefaultSerializer()
focal_class.class_method_signature: DB.getEngine()
focal_class.full_signature: public Engine getEngine()
focal_class.identifier: getEngine
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Engine
focal_class.signature: Engine getEngine()
focal_method.body: synchronized public <K> NavigableSet<K> getTreeSet(String name){
          checkNotClosed();
          NavigableSet<K> ret = (NavigableSet<K>) getFromWeakCollection(name);
          if(ret!=null) return ret;
          Long recid = nameDir.get(name);
          if(recid!=null){
              //open existing map
              BTreeMap<K,Object> m = new BTreeMap<K,Object>(engine,  recid, defaultSerializer);
              if(m.hasValues) throw new ClassCastException("Collection is Map, not Set");
              ret = m.keySet();
          }else{
              //create new map
              BTreeMap<K,Object> m =  new BTreeMap<K,Object>(engine,BTreeMap.DEFAULT_MAX_NODE_SIZE,
                      false, false, defaultSerializer, null, null, null);
              nameDir.put(name, m.treeRecid);
              ret = m.keySet();
          }
  
          collections.put(name, new WeakReference<Object>(ret));
          return ret;
      }
focal_method.class_method_signature: DB.getTreeSet(String name)
focal_method.full_signature: synchronized public NavigableSet<K> getTreeSet(String name)
focal_method.identifier: getTreeSet
focal_method.invocations: checkNotClosed getFromWeakCollection get keySet put keySet put
focal_method.modifiers: synchronized public
focal_method.parameters: (String name)
focal_method.return: NavigableSet<K>
focal_method.signature: NavigableSet<K> getTreeSet(String name)