public interface BoundHashOperations<H,HK,HV> extends BoundKeyOperations<H>
| Modifier and Type | Method and Description |
|---|---|
Long |
delete(Object... keys)
Delete given hash
keys at the bound key. |
Map<HK,HV> |
entries()
Get entire hash at the bound key.
|
HV |
get(Object member)
Get value for given
key from the hash at the bound key. |
RedisOperations<H,?> |
getOperations() |
Boolean |
hasKey(Object key)
Determine if given hash
key exists at the bound key. |
Double |
increment(HK key,
double delta)
Increment
value of a hash key by the given delta at the bound key. |
Long |
increment(HK key,
long delta)
Increment
value of a hash key by the given delta at the bound key. |
Set<HK> |
keys()
Get key set (fields) of hash at the bound key.
|
Long |
lengthOfValue(HK hashKey)
Returns the length of the value associated with
hashKey. |
List<HV> |
multiGet(Collection<HK> keys)
Get values for given
keys from the hash at the bound key. |
void |
put(HK key,
HV value)
Set the
value of a hash key at the bound key. |
void |
putAll(Map<? extends HK,? extends HV> m)
Set multiple hash fields to multiple values using data provided in
m at the bound key. |
Boolean |
putIfAbsent(HK key,
HV value)
Set the
value of a hash key only if key does not exist. |
Cursor<Map.Entry<HK,HV>> |
scan(ScanOptions options)
Use a
Cursor to iterate over entries in the hash. |
Long |
size()
Get size of hash at the bound key.
|
List<HV> |
values()
Get entry set (values) of hash at the bound key.
|
@Nullable Long delete(Object... keys)
keys at the bound key.keys - must not be null.@Nullable Boolean hasKey(Object key)
key exists at the bound key.key - must not be null.@Nullable HV get(Object member)
key from the hash at the bound key.member - must not be null.@Nullable List<HV> multiGet(Collection<HK> keys)
keys from the hash at the bound key.keys - must not be null.@Nullable Long increment(HK key, long delta)
value of a hash key by the given delta at the bound key.key - must not be null.delta - @Nullable Double increment(HK key, double delta)
value of a hash key by the given delta at the bound key.key - must not be null.delta - @Nullable Set<HK> keys()
@Nullable Long lengthOfValue(HK hashKey)
hashKey. If the hashKey do not exist, 0 is
returned.hashKey - must not be null.@Nullable Long size()
void putAll(Map<? extends HK,? extends HV> m)
m at the bound key.m - must not be null.void put(HK key, HV value)
value of a hash key at the bound key.key - must not be null.value - @Nullable Boolean putIfAbsent(HK key, HV value)
value of a hash key only if key does not exist.key - must not be null.value - @Nullable List<HV> values()
@Nullable Map<HK,HV> entries()
Cursor<Map.Entry<HK,HV>> scan(ScanOptions options)
Cursor to iterate over entries in the hash.options - RedisOperations<H,?> getOperations()
Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.