@Deprecated public class LazyWriteableDBObject extends LazyDBObject
LazyBSONObject.LazyBSONKeySet
_callback, _doc_start_offset, _input
Constructor and Description |
---|
LazyWriteableDBObject(BSONByteBuffer buff,
int offset,
LazyBSONCallback cbk)
Deprecated.
|
LazyWriteableDBObject(BSONByteBuffer buff,
LazyBSONCallback cbk)
Deprecated.
|
LazyWriteableDBObject(byte[] bytes,
int offset,
LazyBSONCallback callback)
Deprecated.
Construct an instance.
|
LazyWriteableDBObject(byte[] bytes,
LazyBSONCallback callback)
Deprecated.
Construct an instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
containsField(String s)
Deprecated.
Checks if this object contains a field with the given name.
|
Object |
get(String key)
Deprecated.
Gets a field from this object by a given name.
|
boolean |
isEmpty()
Deprecated.
Gets whether this is an empty
BSONObject . |
Set<String> |
keySet()
Deprecated.
Returns this object's fields' names
|
Object |
put(String key,
Object v)
Deprecated.
Always throws
UnsupportedOperationException . |
void |
putAll(BSONObject o)
Deprecated.
Always throws
UnsupportedOperationException . |
void |
putAll(Map m)
Deprecated.
Always throws
UnsupportedOperationException . |
Object |
removeField(String key)
Deprecated.
Always throws
UnsupportedOperationException . |
isPartialObject, markAsPartialObject
containsKey, entrySet, equals, getBSONSize, getBytes, getElementBSONSize, getElementType, getElementValue, getOffset, hashCode, isElementEmpty, pipe, sizeCString, toMap, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
containsKey, toMap
public LazyWriteableDBObject(byte[] bytes, LazyBSONCallback callback)
bytes
- the raw bytescallback
- the callback to use to construct nested valuespublic LazyWriteableDBObject(byte[] bytes, int offset, LazyBSONCallback callback)
bytes
- the raw bytesoffset
- the offset into the raw bytescallback
- the callback to use to construct nested values@Deprecated public LazyWriteableDBObject(BSONByteBuffer buff, LazyBSONCallback cbk)
LazyWriteableDBObject(byte[], org.bson.LazyBSONCallback)
instead@Deprecated public LazyWriteableDBObject(BSONByteBuffer buff, int offset, LazyBSONCallback cbk)
LazyWriteableDBObject(byte[], int, org.bson.LazyBSONCallback)
insteadpublic Object put(String key, Object v)
LazyBSONObject
UnsupportedOperationException
.put
in interface BSONObject
put
in class LazyBSONObject
key
- Name to setv
- Corresponding valuepublic void putAll(BSONObject o)
LazyBSONObject
UnsupportedOperationException
.putAll
in interface BSONObject
putAll
in class LazyBSONObject
o
- the objectpublic void putAll(Map m)
LazyBSONObject
UnsupportedOperationException
.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)
LazyBSONObject
UnsupportedOperationException
.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()
LazyBSONObject
BSONObject
.isEmpty
in class LazyBSONObject