|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.evernote.edam.type.LazyMap
public class LazyMap
A structure that wraps a map of name/value pairs whose values are not always present in the structure in order to reduce space when obtaining batches of entities that contain the map. When the server provides the client with a LazyMap, it will fill in either the keysOnly field or the fullMap field, but never both, based on the API and parameters. When a client provides a LazyMap to the server as part of an update to an object, the server will only update the LazyMap if the fullMap field is set. If the fullMap field is not set, the server will not make any changes to the map. Check the API documentation of the individual calls involving the LazyMap for full details including the constraints of the names and values of the map.
Constructor Summary | |
---|---|
LazyMap()
|
|
LazyMap(LazyMap other)
Performs a deep copy on other. |
Method Summary | |
---|---|
void |
addToKeysOnly(java.lang.String elem)
|
void |
clear()
Return to the state of having just been initialized, as though you had just called the default constructor. |
int |
compareTo(LazyMap other)
|
LazyMap |
deepCopy()
Creates a deep copy of the object. |
boolean |
equals(LazyMap that)
|
boolean |
equals(java.lang.Object that)
|
java.util.Map<java.lang.String,java.lang.String> |
getFullMap()
|
int |
getFullMapSize()
|
java.util.Set<java.lang.String> |
getKeysOnly()
|
java.util.Iterator<java.lang.String> |
getKeysOnlyIterator()
|
int |
getKeysOnlySize()
|
int |
hashCode()
|
boolean |
isSetFullMap()
Returns true if field fullMap is set (has been asigned a value) and false otherwise |
boolean |
isSetKeysOnly()
Returns true if field keysOnly is set (has been asigned a value) and false otherwise |
void |
putToFullMap(java.lang.String key,
java.lang.String val)
|
void |
read(com.evernote.thrift.protocol.TProtocol iprot)
Reads an instance of the object from the given protocol. |
void |
setFullMap(java.util.Map<java.lang.String,java.lang.String> fullMap)
|
void |
setFullMapIsSet(boolean value)
|
void |
setKeysOnly(java.util.Set<java.lang.String> keysOnly)
|
void |
setKeysOnlyIsSet(boolean value)
|
java.lang.String |
toString()
|
void |
unsetFullMap()
|
void |
unsetKeysOnly()
|
void |
validate()
|
void |
write(com.evernote.thrift.protocol.TProtocol oprot)
Writes the object to the given protocol. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LazyMap()
public LazyMap(LazyMap other)
Method Detail |
---|
public LazyMap deepCopy()
com.evernote.thrift.TBase
deepCopy
in interface com.evernote.thrift.TBase<LazyMap>
public void clear()
com.evernote.thrift.TBase
clear
in interface com.evernote.thrift.TBase<LazyMap>
public int getKeysOnlySize()
public java.util.Iterator<java.lang.String> getKeysOnlyIterator()
public void addToKeysOnly(java.lang.String elem)
public java.util.Set<java.lang.String> getKeysOnly()
public void setKeysOnly(java.util.Set<java.lang.String> keysOnly)
public void unsetKeysOnly()
public boolean isSetKeysOnly()
public void setKeysOnlyIsSet(boolean value)
public int getFullMapSize()
public void putToFullMap(java.lang.String key, java.lang.String val)
public java.util.Map<java.lang.String,java.lang.String> getFullMap()
public void setFullMap(java.util.Map<java.lang.String,java.lang.String> fullMap)
public void unsetFullMap()
public boolean isSetFullMap()
public void setFullMapIsSet(boolean value)
public boolean equals(java.lang.Object that)
equals
in class java.lang.Object
public boolean equals(LazyMap that)
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(LazyMap other)
compareTo
in interface java.lang.Comparable<LazyMap>
public void read(com.evernote.thrift.protocol.TProtocol iprot) throws com.evernote.thrift.TException
com.evernote.thrift.TBase
read
in interface com.evernote.thrift.TBase<LazyMap>
iprot
- Input protocol
com.evernote.thrift.TException
public void write(com.evernote.thrift.protocol.TProtocol oprot) throws com.evernote.thrift.TException
com.evernote.thrift.TBase
write
in interface com.evernote.thrift.TBase<LazyMap>
oprot
- Output protocol
com.evernote.thrift.TException
public java.lang.String toString()
toString
in class java.lang.Object
public void validate() throws com.evernote.thrift.TException
com.evernote.thrift.TException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |