public class LazyDBList extends LazyBSONList implements DBObject
LazyDBObject representing a BSON array.LazyBSONList.LazyBSONListIterator| Constructor and Description |
|---|
LazyDBList(byte[] bytes,
int offset,
LazyBSONCallback callback)
Construct an instance with the given raw bytes and offset.
|
LazyDBList(byte[] bytes,
LazyBSONCallback callback)
Construct an instance with the given raw bytes and offset.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isPartialObject()
Whether
DBObject.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.
|
java.lang.String |
toString()
Deprecated.
there is no replacement for this method, as the driver no longer supports generating top-level JSON arrays. To encode
an instance of this class to JSON it must be embedded inside a document.
|
add, add, addAll, addAll, clear, contains, containsAll, get, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArraycontainsField, containsKey, entrySet, equals, get, getBSONSize, hashCode, isEmpty, keySet, pipe, put, putAll, putAll, removeField, toMapequals, getClass, hashCode, notify, notifyAll, wait, wait, waitcontainsField, containsKey, get, keySet, put, putAll, putAll, removeField, toMappublic LazyDBList(byte[] bytes,
LazyBSONCallback callback)
bytes - the raw BSON bytescallback - the callback to use to create nested valuespublic LazyDBList(byte[] bytes,
int offset,
LazyBSONCallback callback)
bytes - the raw BSON bytesoffset - the offset into the raw bytescallback - the callback to use to create nested valuespublic void markAsPartialObject()
DBObjectmarkAsPartialObject in interface DBObjectpublic boolean isPartialObject()
DBObjectDBObject.markAsPartialObject() was ever called only matters if you are going to upsert and do not want to risk losing fields.isPartialObject in interface DBObject@Deprecated public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2010 - 2023 Adobe. All Rights Reserved