Skip to content

Instantly share code, notes, and snippets.

@vinothchandar
Last active December 17, 2015 06:28
Show Gist options
  • Save vinothchandar/5565136 to your computer and use it in GitHub Desktop.
Save vinothchandar/5565136 to your computer and use it in GitHub Desktop.
public class interface LocationStoreClient {
/**
* Gets the data item that matches the exact {lat, lon, context} values in the key
*/
public List<Versioned<V>> get(GeoKey key);
/**
* Performs a bounding box search around the {lat, lon} in the key and returns all the
* data items in the given radius
*/
public HashMap<GeoKey, List<Versioned<V>> radiusSearch(GeoKey key);
/**
* If there is a data item with the exact {lat, lon, context} triplet already, an update is performed.
* Otherwise, the data point is added to storage
*/
public void put(GeoKey key, V value);
/**
* Unsupported. Data retention feature of voldemort can take care of this.
*/
public void delete(GeoKey key);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment