Skip to content

Instantly share code, notes, and snippets.

@jtheuer
jtheuer / OffheapUrlDataAccess.java
Created April 15, 2016 15:53
Graphhopper offheap storage with URL loader.
import com.google.common.base.Preconditions;
import com.graphhopper.storage.DAType;
import com.graphhopper.storage.DataAccess;
import com.graphhopper.util.NotThreadSafe;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import xerial.larray.LByteArray;
import xerial.larray.japi.LArrayJ;
import java.io.ByteArrayInputStream;
#!/usr/bin/python
import fileinput
import re
import time
import subprocess, os, sys
def ctime():
return int(time.time() * 1000)