Java Code Examples for org.mapdb.DB#getHashMap()

The following examples show how to use org.mapdb.DB#getHashMap() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RelationshipMap.java    From SciGraph with Apache License 2.0 4 votes vote down vote up
@Inject
public RelationshipMap(DB maker) {
  delegate = maker.getHashMap(RelationshipMap.class.getName());
}
 
Example 2
Source File: IdMap.java    From SciGraph with Apache License 2.0 4 votes vote down vote up
@Inject
public IdMap(DB maker) {
  delegate = maker.getHashMap(IdMap.class.getName());
}
 
Example 3
Source File: FragMap.java    From jelectrum with MIT License 3 votes vote down vote up
public FragMap(DB db, String name, int segments)
{
    this.segments = segments;

    frags = new Map[segments];



    for(int i=0; i<segments; i++)
    {
        frags[i] = db.getHashMap(name +"_" + i);
    }

}