T - The type of the record with position and time.R - The type of the id of the record with position and time.public class Geomem<T,R> extends Object
ConcurrentSkipListMaps and geohash to store data with time and
position. Depends on guava library.| Constructor and Description |
|---|
Geomem() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(double lat,
double lon,
long time,
T t)
Adds a record to the in-memory store with the given position and time.
|
void |
add(double lat,
double lon,
long time,
T t,
com.google.common.base.Optional<R> id)
Adds a record to the in-memory store with the given position and time and
id.
|
void |
add(double lat,
double lon,
long time,
T t,
R id)
* Adds a record to the in-memory store with the given position and time
and id.
|
void |
add(Info<T,R> info)
Adds a record to the in-memory store with the given position, time and
id.
|
Iterable<Info<T,R>> |
find(double topLeftLat,
double topLeftLong,
double bottomRightLat,
double bottomRightLong,
long start,
long finish)
Returns as an
Iterable the results of a search within the
bounding box given and where start <=time < finish. |
public Iterable<Info<T,R>> find(double topLeftLat, double topLeftLong, double bottomRightLat, double bottomRightLong, long start, long finish)
Iterable the results of a search within the
bounding box given and where start <=time < finish.topLeftLat - topLeftLong - bottomRightLat - bottomRightLong - start - finish - public void add(double lat,
double lon,
long time,
T t)
lat - lon - time - t - public void add(double lat,
double lon,
long time,
T t,
R id)
lat - lon - time - t - id - public void add(double lat,
double lon,
long time,
T t,
com.google.common.base.Optional<R> id)
lat - lon - time - t - id - Copyright © 2013–2015. All rights reserved.