public class AccumuloGeoSpatialStore extends Object implements GeoSpatialStore
| Constructor and Description |
|---|
AccumuloGeoSpatialStore(org.apache.accumulo.core.client.Connector connector) |
AccumuloGeoSpatialStore(org.apache.accumulo.core.client.Connector connector,
String tableName,
StoreConfig config,
double maxPrecision,
int numPartitions) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
buildId(String id,
long timestamp,
Point2D.Double location) |
protected String |
buildKeyValue(org.calrissian.mango.domain.Tuple tuple) |
protected String |
buildRow(int partition,
Point2D.Double location) |
protected String |
buildRow(int partition,
String hash) |
org.calrissian.mango.collect.CloseableIterable<org.calrissian.mango.domain.event.Event> |
get(Rectangle2D.Double location,
Auths auths)
Return all
Event objects that lie within the given bounding box |
protected org.apache.accumulo.core.client.Connector |
getConnector() |
protected int |
getPartitionWidth() |
void |
put(Iterable<org.calrissian.mango.domain.event.Event> entries,
Point2D.Double location)
Index store entries at the given point.
|
public AccumuloGeoSpatialStore(org.apache.accumulo.core.client.Connector connector)
throws org.apache.accumulo.core.client.TableExistsException,
org.apache.accumulo.core.client.AccumuloSecurityException,
org.apache.accumulo.core.client.AccumuloException,
org.apache.accumulo.core.client.TableNotFoundException
org.apache.accumulo.core.client.TableExistsExceptionorg.apache.accumulo.core.client.AccumuloSecurityExceptionorg.apache.accumulo.core.client.AccumuloExceptionorg.apache.accumulo.core.client.TableNotFoundExceptionpublic AccumuloGeoSpatialStore(org.apache.accumulo.core.client.Connector connector,
String tableName,
StoreConfig config,
double maxPrecision,
int numPartitions)
throws org.apache.accumulo.core.client.TableExistsException,
org.apache.accumulo.core.client.AccumuloSecurityException,
org.apache.accumulo.core.client.AccumuloException,
org.apache.accumulo.core.client.TableNotFoundException
org.apache.accumulo.core.client.TableExistsExceptionorg.apache.accumulo.core.client.AccumuloSecurityExceptionorg.apache.accumulo.core.client.AccumuloExceptionorg.apache.accumulo.core.client.TableNotFoundExceptionprotected org.apache.accumulo.core.client.Connector getConnector()
protected int getPartitionWidth()
protected String buildRow(int partition, Point2D.Double location)
protected String buildId(String id, long timestamp, Point2D.Double location)
protected String buildKeyValue(org.calrissian.mango.domain.Tuple tuple)
public void put(Iterable<org.calrissian.mango.domain.event.Event> entries, Point2D.Double location)
GeoSpatialStoreput in interface GeoSpatialStorepublic org.calrissian.mango.collect.CloseableIterable<org.calrissian.mango.domain.event.Event> get(Rectangle2D.Double location, Auths auths)
GeoSpatialStoreEvent objects that lie within the given bounding boxget in interface GeoSpatialStoreCopyright © 2014 Calrissian. All Rights Reserved.