public class LazyWriteableDBObject extends LazyDBObject
LazyBSONObject.LazyBSONKeySet_callback, _doc_start_offset, _input| Constructor and Description |
|---|
LazyWriteableDBObject(BSONByteBuffer buff,
int offset,
LazyBSONCallback cbk) |
LazyWriteableDBObject(BSONByteBuffer buff,
LazyBSONCallback cbk) |
LazyWriteableDBObject(byte[] data,
int offset,
LazyBSONCallback cbk) |
LazyWriteableDBObject(byte[] data,
LazyBSONCallback cbk) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsField(java.lang.String s)
Checks if this object contains a field with the given name.
|
java.lang.Object |
get(java.lang.String key)
Gets a field from this object by a given name.
|
boolean |
isEmpty() |
java.util.Set<java.lang.String> |
keySet()
Returns this object's fields' names
|
java.lang.Object |
put(java.lang.String key,
java.lang.Object v)
Sets a name/value pair in this object.
|
void |
putAll(BSONObject o)
Sets all key/value pairs from an object into this object
|
void |
putAll(java.util.Map m)
Sets all key/value pairs from a map into this object
|
java.lang.Object |
removeField(java.lang.String key)
Removes a field with a given name from this object.
|
isPartialObject, markAsPartialObjectcontainsKey, entrySet, equals, getBSONSize, getElementBSONSize, getElementType, getElementValue, hashCode, isElementEmpty, pipe, sizeCString, toMap, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitcontainsKey, toMappublic LazyWriteableDBObject(BSONByteBuffer buff, LazyBSONCallback cbk)
public LazyWriteableDBObject(BSONByteBuffer buff, int offset, LazyBSONCallback cbk)
public LazyWriteableDBObject(byte[] data,
LazyBSONCallback cbk)
public LazyWriteableDBObject(byte[] data,
int offset,
LazyBSONCallback cbk)
public java.lang.Object put(java.lang.String key,
java.lang.Object v)
BSONObjectput in interface BSONObjectput in class LazyBSONObjectkey - Name to setv - Corresponding valuepublic void putAll(BSONObject o)
BSONObjectputAll in interface BSONObjectputAll in class LazyBSONObjecto - the objectpublic void putAll(java.util.Map m)
BSONObjectputAll in interface BSONObjectputAll in class LazyBSONObjectm - the mappublic java.lang.Object get(java.lang.String key)
BSONObjectget in interface BSONObjectget in class LazyBSONObjectkey - The name of the field fetchpublic java.lang.Object removeField(java.lang.String key)
BSONObjectremoveField in interface BSONObjectremoveField in class LazyBSONObjectkey - The name of the field to removepublic boolean containsField(java.lang.String s)
BSONObjectcontainsField in interface BSONObjectcontainsField in class LazyBSONObjects - Field name for which to checkpublic java.util.Set<java.lang.String> keySet()
BSONObjectkeySet in interface BSONObjectkeySet in class LazyBSONObjectpublic boolean isEmpty()
isEmpty in class LazyBSONObject