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(String s)
Checks if this object contains a field with the given name.
|
Object |
get(String key)
Gets a field from this object by a given name.
|
boolean |
isEmpty() |
Set<String> |
keySet()
Returns this object's fields' names
|
Object |
put(String key,
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(Map m)
Sets all key/value pairs from a map into this object
|
Object |
removeField(String key)
Removes a field with a given name from this object.
|
isPartialObject, markAsPartialObjectcontainsKey, entrySet, equals, getBSONSize, getBytes, getElementBSONSize, getElementType, getElementValue, getOffset, 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 Object put(String key, 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(Map m)
BSONObjectputAll in interface BSONObjectputAll in class LazyBSONObjectm - the mappublic Object get(String key)
BSONObjectget in interface BSONObjectget in class LazyBSONObjectkey - The name of the field fetchpublic Object removeField(String key)
BSONObjectremoveField in interface BSONObjectremoveField in class LazyBSONObjectkey - The name of the field to removepublic boolean containsField(String s)
BSONObjectcontainsField in interface BSONObjectcontainsField in class LazyBSONObjects - Field name for which to checkpublic Set<String> keySet()
BSONObjectkeySet in interface BSONObjectkeySet in class LazyBSONObjectpublic boolean isEmpty()
isEmpty in class LazyBSONObject