Esempio n. 1
0
 String getStorageInfo(GraphStorage storage) {
   return storage.getClass().getSimpleName()
       + "|"
       + storage.directory().getClass().getSimpleName()
       + "|"
       + storage.version();
 }
 public OSMReaderHelperDoubleParse(GraphStorage storage, long expectedNodes) {
   super(storage, expectedNodes);
   dir = storage.directory();
   pillarLats = dir.findCreate("tmpLatitudes");
   pillarLons = dir.findCreate("tmpLongitudes");
   // TODO check out if we better should use http://en.wikipedia.org/wiki/Segment_tree
   osmIdToIndexMap = new BigLongIntMap(expectedNodes, EMPTY);
 }