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, markAsPartialObject
containsKey, entrySet, equals, getBSONSize, getElementBSONSize, getElementType, getElementValue, hashCode, isElementEmpty, pipe, sizeCString, toMap, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
containsKey, toMap
public 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)
BSONObject
put
in interface BSONObject
put
in class LazyBSONObject
key
- Name to setv
- Corresponding valuepublic void putAll(BSONObject o)
BSONObject
putAll
in interface BSONObject
putAll
in class LazyBSONObject
o
- the objectpublic void putAll(Map m)
BSONObject
putAll
in interface BSONObject
putAll
in class LazyBSONObject
m
- the mappublic Object get(String key)
BSONObject
get
in interface BSONObject
get
in class LazyBSONObject
key
- The name of the field fetchpublic Object removeField(String key)
BSONObject
removeField
in interface BSONObject
removeField
in class LazyBSONObject
key
- The name of the field to removepublic boolean containsField(String s)
BSONObject
containsField
in interface BSONObject
containsField
in class LazyBSONObject
s
- Field name for which to checkpublic Set<String> keySet()
BSONObject
keySet
in interface BSONObject
keySet
in class LazyBSONObject
public boolean isEmpty()
isEmpty
in class LazyBSONObject