public class LazyDBObject extends LazyBSONObject implements DBObject
LazyBSONObject.LazyBSONIterator, LazyBSONObject.LazyBSONKeySet
Constructor and Description |
---|
LazyDBObject(byte[] data,
int offset,
LazyBSONCallback cbk) |
LazyDBObject(byte[] data,
LazyBSONCallback cbk) |
Modifier and Type | Method and Description |
---|---|
boolean |
isPartialObject()
whether markAsPartialObject was ever called
only matters if you are going to upsert and do not want to risk losing fields
|
void |
markAsPartialObject()
if this object was retrieved with only some fields (using a field filter)
this method will be called to mark it as such.
|
containsField, containsKey, get, getBSONSize, isEmpty, keySet, put, putAll, putAll, readBinary, removeField, toMap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
containsField, containsKey, get, keySet, put, putAll, putAll, removeField, toMap
public LazyDBObject(byte[] data, LazyBSONCallback cbk)
public LazyDBObject(byte[] data, int offset, LazyBSONCallback cbk)
public void markAsPartialObject()
DBObject
markAsPartialObject
in interface DBObject
public boolean isPartialObject()
DBObject
isPartialObject
in interface DBObject