|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.baidubce.services.moladb.model.Key
public class Key
Represents the Key part for an item. For each Key, it maybe an attribute for hashkey or two attributes for hashkey and rangekey.
Constructor Summary | |
---|---|
Key()
Constructs a new Key object. |
|
Key(Map<String,AttributeValue> attributes)
Constructs a new Key object. |
|
Key(String attributeName,
AttributeValue value)
Constructs a new Key object. |
|
Key(String hashKeyName,
AttributeValue hashKeyValue,
String rangeKeyName,
AttributeValue rangeKeyValue)
Constructs a new Key object. |
Method Summary | |
---|---|
Map<String,AttributeValue> |
getAttributes()
Get this object's attribute map with name and value. |
void |
setAttributes(Map<String,AttributeValue> attributes)
Set this object with a given attribute value map. |
protected Map<String,Object> |
toJsonObj()
|
String |
toString()
Return a string representation of the object. |
Key |
withAttribute(String attributeName,
AttributeValue value)
The method set attribute name and attribute value with input parameters for a key. |
Key |
withAttributes(Map<String,AttributeValue> attributes)
Set this object with a given attribute value map. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Key()
public Key(String attributeName, AttributeValue value)
attributeName
- The attribute name to set for a key.value
- The attribute value to set for a key.public Key(String hashKeyName, AttributeValue hashKeyValue, String rangeKeyName, AttributeValue rangeKeyValue)
hashKeyName
- The attribute name to set for a hashKey.hashKeyValue
- The attribute value to set for a hashKey.rangeKeyName
- The attribute name to set for a rangeKey.rangeKeyValue
- The attribute value to set for a rangeKey.public Key(Map<String,AttributeValue> attributes)
attributes
- An attribute map with name and value to set for a key.Method Detail |
---|
public Key withAttribute(String attributeName, AttributeValue value)
attributeName
- The attribute name to set for a key.value
- The attribute value to set for a key.
public Map<String,AttributeValue> getAttributes()
public void setAttributes(Map<String,AttributeValue> attributes)
attributes
- An attribute value map to be set for this object.public Key withAttributes(Map<String,AttributeValue> attributes)
attributes
- An attribute value map to be set for this object.
public String toString()
toString
in class Object
protected Map<String,Object> toJsonObj()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |