|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.baidubce.services.moladb.model.KeysAndAttributes
public class KeysAndAttributes
Represents a set of keys and, for each key, the attributes to retrieve from the table.
| Constructor Summary | |
|---|---|
KeysAndAttributes()
Constructs a new KeysAndAttributes object. |
|
| Method Summary | |
|---|---|
List<String> |
getAttributesToGet()
Get all of the attributes to retrieve from a table. |
List<Key> |
getKeys()
Get the key attributes the define the items and the attributes associated with the items in this object. |
boolean |
isConsistentRead()
Return true if the consistency is a strongly consistent read; else return false. |
void |
setAttributesToGet(List<String> attributes)
Attributes to retrieve from the table. |
void |
setConsistentRead(boolean consistentRead)
Set the type of the consistency of a read operation.The default value is false, representing that it is eventually consistent read. |
void |
setKeys(List<Key> keys)
Set the list of Keys to get associated items. |
protected Map<String,Object> |
toJsonObj()
|
String |
toString()
Return a string representation of the object. |
KeysAndAttributes |
withAttributesToGet(List<String> attributes)
Attributes to retrieve from the table. |
KeysAndAttributes |
withConsistentRead(boolean consistentRead)
Set the type of the consistency of a read operation.The default value is false, representing that it is eventually consistent read. |
KeysAndAttributes |
withKeys(List<Key> keys)
Set the list of Keys to get associated items. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public KeysAndAttributes()
| Method Detail |
|---|
public KeysAndAttributes withKeys(List<Key> keys)
keys - The key attributes and values to get items from a table, the type is Listpublic void setKeys(List<Key> keys)
keys - The key attributes and values to get items from a table, the type is ListIllegalArgumentException - if the list is empty.public void setConsistentRead(boolean consistentRead)
consistentRead - The consistency of a read operation. The default value is false, representing that it is
eventually consistent read. If the value is true, it is a strongly consistent read.public KeysAndAttributes withConsistentRead(boolean consistentRead)
consistentRead - The consistency of a read operation. The default value is false, representing that it is
eventually consistent read. If the value is true, it is a strongly consistent read.
public KeysAndAttributes withAttributesToGet(List<String> attributes)
attributes - The attributes to retrieve from an item.
public void setAttributesToGet(List<String> attributes)
attributes - The attributes to retrieve from an item.protected Map<String,Object> toJsonObj()
public boolean isConsistentRead()
public List<String> getAttributesToGet()
public List<Key> getKeys()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||