Last active
December 17, 2015 06:28
-
-
Save vinothchandar/5565136 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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