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);
 }
Ejemplo n.º 2
0
  @Override
  public void release() {
    cacheData.clear();

    // for memory mapped type we create temporary unpacked files which should be removed
    if (dir != null) dir.clear();
  }
 @Override
 void cleanup() {
   dir.remove(pillarLats);
   dir.remove(pillarLons);
   pillarLons = null;
   pillarLats = null;
   osmIdToIndexMap = null;
 }
Ejemplo n.º 4
0
 public PillarInfo(boolean enabled3D, Directory dir) {
   this.enabled3D = enabled3D;
   this.dir = dir;
   this.da = dir.find("tmpPillarInfo").create(100);
   this.rowSizeInBytes = getDimension() * 4;
 }
Ejemplo n.º 5
0
 public void clear() {
   dir.remove(da);
 }