Examples of storeMap()


Examples of jdbm.RecordManager.storeMap()

    }
   
    @SuppressWarnings("unchecked")
  public void testStoreMapSecondaryTreeListeners() throws IOException{
      RecordManager recman = newRecordManager();
      PrimaryStoreMap<Long,String> st = recman.storeMap("storeMap");
      SecondaryKeyExtractor<String, Long, String> extractor = new SecondaryKeyExtractor<String, Long, String>() {
      public String extractSecondaryKey(Long key, String value) {       
        return ""+key+value;
      }};
      SecondaryTreeMap t = st.secondaryTreeMap("map1",extractor);
View Full Code Here

Examples of jdbm.RecordManager.storeMap()

    /**
     * Create primary map which is used to store records. 
     * Data can be also stored in PrimaryTreeMap and PrimaryHashMap,
     * but this is more efficient for large objects.
     */
    PrimaryStoreMap<Long,Person> main = recman.storeMap("recman");
   
    /**
     * Create secondary index which points to Person name.
     * SecondaryMap is readonly, it is updated by PrimaryMap.
     * 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.