@Test public void testGeomemFindWhenNoData() { Geomem<String, String> g = new Geomem<String, String>(); g.find(topLeftLat, topLeftLong, bottomRightLat, bottomRightLong, 0, 1000); }
public Iterable<Info<T, R>> find(double topLeftLat, double topLeftLon, double bottomRightLat, double bottomRightLon, long start, long finish) { Coverage cover = GeoHash.coverBoundingBox(topLeftLat, topLeftLon, bottomRightLat, bottomRightLon); Iterable<Info<T, R>> it = Collections.emptyList(); for (String hash : cover.getHashes()) { it = Iterables.concat(it, find(topLeftLat, topLeftLon, bottomRightLat, bottomRightLon, start, finish, hash)); } return it; }
Geomem { public Iterable<Info<T, R>> find(double topLeftLat, double topLeftLon, double bottomRightLat, double bottomRightLon, long start, long finish) { Coverage cover = GeoHash.coverBoundingBox(topLeftLat, topLeftLon, bottomRightLat, bottomRightLon); Iterable<Info<T, R>> it = Collections.emptyList(); for (String hash : cover.getHashes()) { it = Iterables.concat(it, find(topLeftLat, topLeftLon, bottomRightLat, bottomRightLon, start, finish, hash)); } return it; } }
Geomem { public Iterable<Info<T, R>> find(double topLeftLat, double topLeftLon, double bottomRightLat, double bottomRightLon, long start, long finish) { Coverage cover = GeoHash.coverBoundingBox(topLeftLat, topLeftLon, bottomRightLat, bottomRightLon); Iterable<Info<T, R>> it = Collections.emptyList(); for (String hash : cover.getHashes()) { it = Iterables.concat(it, find(topLeftLat, topLeftLon, bottomRightLat, bottomRightLon, start, finish, hash)); } return it; }  }
Geomem { public Iterable<Info<T, R>> find(double topLeftLat, double topLeftLon, double bottomRightLat, double bottomRightLon, long start, long finish) { Coverage cover = GeoHash.coverBoundingBox(topLeftLat, topLeftLon, bottomRightLat, bottomRightLon); Iterable<Info<T, R>> it = Collections.emptyList(); for (String hash : cover.getHashes()) { it = Iterables.concat(it, find(topLeftLat, topLeftLon, bottomRightLat, bottomRightLon, start, finish, hash)); } return it; }  Iterable<Info<T, R>> find(double topLeftLat, double topLeftLon, double bottomRightLat,
            double bottomRightLon, long start, long finish); @SuppressWarnings("unchecked") void add(double lat, double lon, long time, T t); void add(double lat, double lon, long time, T t, R id); void add(double lat, double lon, long time, T t, Optional<R> id); void add(Info<T, R> info); }
Geomem { public Iterable<Info<T, R>> find(double topLeftLat, double topLeftLon, double bottomRightLat, double bottomRightLon, long start, long finish) { Coverage cover = GeoHash.coverBoundingBox(topLeftLat, topLeftLon, bottomRightLat, bottomRightLon); Iterable<Info<T, R>> it = Collections.emptyList(); for (String hash : cover.getHashes()) { it = Iterables.concat(it, find(topLeftLat, topLeftLon, bottomRightLat, bottomRightLon, start, finish, hash)); } return it; }  Iterable<Info<T, R>> find(double topLeftLat, double topLeftLon, double bottomRightLat,
            double bottomRightLon, long start, long finish); @SuppressWarnings("unchecked") void add(double lat, double lon, long time, T t); void add(double lat, double lon, long time, T t, R id); void add(double lat, double lon, long time, T t, Optional<R> id); void add(Info<T, R> info);  }