|
| imap (const std::string &instance_name, spi::ClientContext *context) |
|
template<typename K > |
boost::future< bool > | contains_key (const K &key) |
| check if this map contains key. More...
|
|
template<typename V > |
boost::future< bool > | contains_value (const V &value) |
| check if this map contains value. More...
|
|
template<typename K , typename V > |
boost::future< boost::optional< V > > | get (const K &key) |
| get the value. More...
|
|
template<typename K , typename V , typename R = V> |
boost::future< boost::optional< R > > | put (const K &key, const V &value) |
| put new entry into map. More...
|
|
template<typename K , typename V , typename R = V> |
boost::future< boost::optional< R > > | put (const K &key, const V &value, std::chrono::milliseconds ttl) |
| Puts an entry into this map with a given ttl (time to live) value. More...
|
|
template<typename K , typename V > |
boost::future< boost::optional< V > > | remove (const K &key) |
| remove entry form map More...
|
|
template<typename K , typename V > |
boost::future< bool > | remove (const K &key, const V &value) |
| removes entry from map if there is an entry with same key and value. More...
|
|
template<typename P > |
boost::future< void > | remove_all (const P &predicate) |
| Removes all entries which match with the supplied predicate. More...
|
|
template<typename K > |
boost::future< void > | delete_entry (const K &key) |
| removes entry from map. More...
|
|
template<typename K > |
boost::future< bool > | try_remove (const K &key, std::chrono::milliseconds timeout) |
| Tries to remove the entry with the given key from this map within specified timeout value. More...
|
|
template<typename K , typename V > |
boost::future< bool > | try_put (const K &key, const V &value, std::chrono::milliseconds timeout) |
| Tries to put the given key, value into this map within specified timeout value. More...
|
|
template<typename K , typename V > |
boost::future< void > | put_transient (const K &key, const V &value, std::chrono::milliseconds ttl) |
| Same as put(K, V, int64_t, TimeUnit) but MapStore, if defined, will not be called to store/persist the entry. More...
|
|
template<typename K , typename V , typename R = V> |
boost::future< boost::optional< V > > | put_if_absent (const K &key, const V &value) |
| Puts an entry into this map, if the specified key is not already associated with a value. More...
|
|
template<typename K , typename V , typename R = V> |
boost::future< boost::optional< V > > | put_if_absent (const K &key, const V &value, std::chrono::milliseconds ttl) |
| Puts an entry into this map with a given ttl (time to live) value if the specified key is not already associated with a value. More...
|
|
template<typename K , typename V , typename N = V> |
boost::future< bool > | replace (const K &key, const V &old_value, const N &new_value) |
| Replaces the entry for a key only if currently mapped to a given value. More...
|
|
template<typename K , typename V , typename R = V> |
boost::future< boost::optional< R > > | replace (const K &key, const V &value) |
| Replaces the entry for a key only if currently mapped to some value. More...
|
|
template<typename K , typename V , typename R = V> |
boost::future< void > | set (const K &key, const V &value) |
| Puts an entry into this map. More...
|
|
template<typename K , typename V > |
boost::future< void > | set (const K &key, const V &value, std::chrono::milliseconds ttl) |
| Puts an entry into this map. More...
|
|
template<typename K > |
boost::future< void > | lock (const K &key) |
| Acquires the lock for the specified key. More...
|
|
template<typename K > |
boost::future< void > | lock (const K &key, std::chrono::milliseconds lease_time) |
| Acquires the lock for the specified key for the specified lease time. More...
|
|
template<typename K > |
boost::future< bool > | is_locked (const K &key) |
| Checks the lock for the specified key. More...
|
|
template<typename K > |
boost::future< bool > | try_lock (const K &key) |
| Tries to acquire the lock for the specified key. More...
|
|
template<typename K > |
boost::future< bool > | try_lock (const K &key, std::chrono::milliseconds timeout) |
| Tries to acquire the lock for the specified key. More...
|
|
template<typename K > |
boost::future< bool > | try_lock (const K &key, std::chrono::milliseconds timeout, std::chrono::milliseconds lease_time) |
| Tries to acquire the lock for the specified key for the specified lease time. More...
|
|
template<typename K > |
boost::future< void > | unlock (const K &key) |
| Releases the lock for the specified key. More...
|
|
template<typename K > |
boost::future< void > | force_unlock (const K &key) |
| Releases the lock for the specified key regardless of the lock owner. More...
|
|
template<typename MapInterceptor > |
boost::future< std::string > | add_interceptor (const MapInterceptor &interceptor) |
| Adds an interceptor for this map. More...
|
|
boost::future< boost::uuids::uuid > | add_entry_listener (entry_listener &&listener, bool include_value) |
| Adds an entry listener for this map. More...
|
|
template<typename P > |
boost::future< boost::uuids::uuid > | add_entry_listener (entry_listener &&listener, const P &predicate, bool include_value) |
| Adds an entry listener for this map. More...
|
|
template<typename K > |
boost::future< boost::uuids::uuid > | add_entry_listener (entry_listener &&listener, bool include_value, const K &key) |
| Adds the specified entry listener for the specified key. More...
|
|
template<typename K , typename V > |
boost::future< boost::optional< entry_view< K, V > > > | get_entry_view (const K &key) |
| Returns the EntryView for the specified key. More...
|
|
template<typename K > |
boost::future< bool > | evict (const K &key) |
| Evicts the specified key from this map. More...
|
|
template<typename K , typename V > |
boost::future< std::unordered_map< K, V > > | get_all (const std::unordered_set< K > &keys) |
| Returns the entries for the given keys. More...
|
|
template<typename K > |
boost::future< std::vector< K > > | key_set () |
| Returns a vector clone of the keys contained in this map. More...
|
|
template<typename K , typename P , class = typename std::enable_if<!std::is_base_of<query::paging_predicate_marker, P>::value>::type> |
boost::future< std::vector< K > > | key_set (const P &predicate) |
| Queries the map based on the specified predicate and returns the keys of matching entries. More...
|
|
template<typename K , typename V > |
boost::future< std::vector< K > > | key_set (query::paging_predicate< K, V > &predicate) |
| Queries the map based on the specified predicate and returns the keys of matching entries. More...
|
|
template<typename V > |
boost::future< std::vector< V > > | values () |
| Returns a vector clone of the values contained in this map. More...
|
|
template<typename V , typename P , class = typename std::enable_if<!std::is_base_of<query::paging_predicate_marker, P>::value>::type> |
boost::future< std::vector< V > > | values (const P &predicate) |
| Returns a vector clone of the values contained in this map. More...
|
|
template<typename K , typename V > |
boost::future< std::vector< V > > | values (query::paging_predicate< K, V > &predicate) |
| Returns a vector clone of the values contained in this map. More...
|
|
template<typename K , typename V > |
boost::future< std::vector< std::pair< K, V > > > | entry_set () |
| Returns a std::vector< std::pair<K, V> > clone of the mappings contained in this map. More...
|
|
template<typename K , typename V , typename P , class = typename std::enable_if<!std::is_base_of<query::paging_predicate_marker, P>::value>::type> |
boost::future< std::vector< std::pair< K, V > > > | entry_set (const P &predicate) |
| Queries the map based on the specified predicate and returns the matching entries. More...
|
|
template<typename K , typename V > |
boost::future< std::vector< std::pair< K, V > > > | entry_set (query::paging_predicate< K, V > &predicate) |
| Queries the map based on the specified predicate and returns the matching entries. More...
|
|
boost::future< void > | add_index (const config::index_config &config) |
| Adds an index to this map for the specified entries so that queries can run faster. More...
|
|
template<typename ... T> |
boost::future< void > | add_index (config::index_config::index_type type, T... attributes) |
| Convenient method to add an index to this map with the given type and attributes. More...
|
|
boost::future< void > | clear () |
|
template<typename K , typename ResultType , typename EntryProcessor > |
boost::future< boost::optional< ResultType > > | execute_on_key (const K &key, const EntryProcessor &entry_processor) |
| Applies the user defined EntryProcessor to the entry mapped by the key. More...
|
|
template<typename K , typename ResultType , typename EntryProcessor > |
boost::future< boost::optional< ResultType > > | submit_to_key (const K &key, const EntryProcessor &entry_processor) |
| Applies the user defined EntryProcessor to the entry mapped by the key. More...
|
|
template<typename K , typename ResultType , typename EntryProcessor > |
boost::future< std::unordered_map< K, boost::optional< ResultType > > > | execute_on_keys (const std::unordered_set< K > &keys, const EntryProcessor &entry_processor) |
| Applies the user defined EntryProcessor to the entries mapped by the collection of keys. More...
|
|
template<typename K , typename ResultType , typename EntryProcessor > |
boost::future< std::unordered_map< K, boost::optional< ResultType > > > | execute_on_entries (const EntryProcessor &entry_processor) |
| Applies the user defined EntryProcessor to the all entries in the map. More...
|
|
template<typename K , typename ResultType , typename EntryProcessor , typename P > |
boost::future< std::unordered_map< K, boost::optional< ResultType > > > | execute_on_entries (const EntryProcessor &entry_processor, const P &predicate) |
| Applies the user defined EntryProcessor to the all entries in the map. More...
|
|
template<typename K , typename V > |
boost::future< void > | put_all (const std::unordered_map< K, V > &entries) |
| Copies all of the mappings from the specified map to this map (optional operation). More...
|
|
monitor::local_map_stats & | get_local_map_stats () |
| Returns LocalMapStats for this map. More...
|
|
template<typename K , typename V > |
query::paging_predicate< K, V > | new_paging_predicate (size_t predicate_page_size) |
|
template<typename K , typename V , typename INNER_PREDICATE > |
query::paging_predicate< K, V > | new_paging_predicate (size_t predicate_page_size, const INNER_PREDICATE &predicate) |
|
template<typename K , typename V , typename COMPARATOR > |
query::paging_predicate< K, V > | new_paging_predicate (COMPARATOR &&comparator, size_t predicate_page_size) |
|
template<typename K , typename V , typename INNER_PREDICATE , typename COMPARATOR > |
query::paging_predicate< K, V > | new_paging_predicate (const INNER_PREDICATE &predicate, COMPARATOR &&comparator, size_t predicate_page_size) |
|
|
virtual boost::future< boost::optional< serialization::pimpl::data > > | get_internal (const serialization::pimpl::data &key_data) |
|
virtual boost::future< bool > | contains_key_internal (const serialization::pimpl::data &key_data) |
|
virtual boost::future< boost::optional< serialization::pimpl::data > > | remove_internal (const serialization::pimpl::data &key_data) |
|
virtual boost::future< bool > | remove_internal (const serialization::pimpl::data &key_data, const serialization::pimpl::data &value_data) |
|
virtual boost::future< protocol::ClientMessage > | remove_all_internal (const serialization::pimpl::data &predicate_data) |
|
virtual boost::future< protocol::ClientMessage > | delete_internal (const serialization::pimpl::data &key_data) |
|
virtual boost::future< bool > | try_remove_internal (const serialization::pimpl::data &key_data, std::chrono::milliseconds timeout) |
|
virtual boost::future< bool > | try_put_internal (const serialization::pimpl::data &key_data, const serialization::pimpl::data &value_data, std::chrono::milliseconds timeout) |
|
virtual boost::future< boost::optional< serialization::pimpl::data > > | put_internal (const serialization::pimpl::data &key_data, const serialization::pimpl::data &value_data, std::chrono::milliseconds ttl) |
|
virtual boost::future< protocol::ClientMessage > | try_put_transient_internal (const serialization::pimpl::data &key_data, const serialization::pimpl::data &value_data, std::chrono::milliseconds ttl) |
|
virtual boost::future< boost::optional< serialization::pimpl::data > > | put_if_absent_internal (const serialization::pimpl::data &key_data, const serialization::pimpl::data &value_data, std::chrono::milliseconds ttl) |
|
virtual boost::future< bool > | replace_if_same_internal (const serialization::pimpl::data &key_data, const serialization::pimpl::data &value_data, const serialization::pimpl::data &new_value_data) |
|
virtual boost::future< boost::optional< serialization::pimpl::data > > | replace_internal (const serialization::pimpl::data &key_data, const serialization::pimpl::data &value_data) |
|
virtual boost::future< protocol::ClientMessage > | set_internal (const serialization::pimpl::data &key_data, const serialization::pimpl::data &value_data, std::chrono::milliseconds ttl) |
|
virtual boost::future< bool > | evict_internal (const serialization::pimpl::data &key_data) |
|
virtual boost::future< EntryVector > | get_all_internal (int partition_id, const std::vector< serialization::pimpl::data > &partition_keys) |
|
virtual boost::future< boost::optional< serialization::pimpl::data > > | execute_on_key_internal (const serialization::pimpl::data &key_data, const serialization::pimpl::data &processor) |
|
boost::future< boost::optional< serialization::pimpl::data > > | submit_to_key_internal (const serialization::pimpl::data &key_data, const serialization::pimpl::data &processor) |
|
template<typename K , typename EntryProcessor > |
boost::future< EntryVector > | execute_on_keys_internal (const std::unordered_set< K > &keys, const EntryProcessor &entry_processor) |
|
virtual boost::future< protocol::ClientMessage > | put_all_internal (int partition_id, const EntryVector &entries) |
|