public class RiakMap extends RiakDatatype
This is an immutable map returned when querying Riak for a map datatype.
Modifier and Type | Class and Description |
---|---|
static class |
RiakMap.MapEntry
A RiakMap entry (key/value pair).
|
Constructor and Description |
---|
RiakMap(List<RiakMap.MapEntry> mapEntries) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
List<RiakDatatype> |
get(BinaryValue key)
Returns the value(s) to which the specified key is mapped, or null
if the map contains no mapping for the key.
|
RiakCounter |
getCounter(BinaryValue key)
Returns a RiakCounter to which the specified key is mapped, or null
if no RiakCounter is present.
|
RiakCounter |
getCounter(String key)
Returns a RiakCounter to which the specified key is mapped, or null
if no RiakCounter is present.
|
RiakFlag |
getFlag(BinaryValue key)
Returns a RiakFlag to which the specified key is mapped, or null
if no RiakFlag is present.
|
RiakFlag |
getFlag(String key)
Returns a RiakFlag to which the specified key is mapped, or null
if no RiakFlag is present.
|
RiakMap |
getMap(BinaryValue key)
Returns a RiakMap to which the specified key is mapped, or null
if no RiakMap is present.
|
RiakMap |
getMap(String key)
Returns a RiakMap to which the specified key is mapped, or null
if no RiakMap is present.
|
RiakRegister |
getRegister(BinaryValue key)
Returns a RiakRegister to which the specified key is mapped, or null
if no RiakRegister is present.
|
RiakRegister |
getRegister(String key)
Returns a RiakRegister to which the specified key is mapped, or null
if no RiakRegister is present.
|
RiakSet |
getSet(BinaryValue key)
Returns a RiakSet to which the specified key is mapped, or null
if no RiakSet is present.
|
RiakSet |
getSet(String key)
Returns a RiakSet to which the specified key is mapped, or null
if no RiakSet is present.
|
int |
hashCode() |
Map<BinaryValue,List<RiakDatatype>> |
view()
Get this RiakMap as a
Map . |
getAsCounter, getAsFlag, getAsHll, getAsMap, getAsRegister, getAsSet, isCounter, isFlag, isHll, isMap, isRegister, isSet
public RiakMap(List<RiakMap.MapEntry> mapEntries)
public List<RiakDatatype> get(BinaryValue key)
key
- key whose associated value(s) is to be returned.public RiakMap getMap(BinaryValue key)
key
- key whose associated RiakMap is to be returned.public RiakMap getMap(String key)
key
- key whose associated RiakMap is to be returned.public RiakSet getSet(BinaryValue key)
key
- key whose associated RiakSet is to be returned.public RiakSet getSet(String key)
key
- key whose associated RiakSet is to be returned.public RiakCounter getCounter(BinaryValue key)
key
- key whose associated RiakCounter is to be returned.public RiakCounter getCounter(String key)
key
- key whose associated RiakCounter is to be returned.public RiakFlag getFlag(BinaryValue key)
key
- key whose associated RiakFlag is to be returned.public RiakFlag getFlag(String key)
key
- key whose associated RiakFlag is to be returned.public RiakRegister getRegister(BinaryValue key)
key
- key whose associated RiakRegister is to be returned.public RiakRegister getRegister(String key)
key
- key whose associated RiakRegister is to be returned.public Map<BinaryValue,List<RiakDatatype>> view()
Map
. The returned Map is unmodifiable.view
in class RiakDatatype
Copyright © 2016. All rights reserved.