org.bson
Class LazyDBList
java.lang.Object
org.bson.LazyBSONObject
org.bson.LazyBSONList
org.bson.LazyDBList
- All Implemented Interfaces:
- DBObject, Iterable, Collection, List, BSONObject
public class LazyDBList
- extends LazyBSONList
- implements DBObject
- Author:
- scotthernandez
Method Summary |
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. |
String |
toString()
Returns a JSON serialization of this object |
Methods inherited from class org.bson.LazyBSONList |
add, add, addAll, addAll, clear, contains, containsAll, get, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray |
Methods inherited from class org.bson.LazyBSONObject |
containsField, containsKey, entrySet, equals, get, getBSONSize, getElementBSONSize, getElementType, getElementValue, hashCode, isElementEmpty, isEmpty, keySet, pipe, put, putAll, putAll, removeField, sizeCString, toMap |
LazyDBList
public LazyDBList(byte[] data,
LazyBSONCallback callback)
LazyDBList
public LazyDBList(byte[] data,
int offset,
LazyBSONCallback callback)
LazyDBList
public LazyDBList(BSONByteBuffer buffer,
LazyBSONCallback callback)
LazyDBList
public LazyDBList(BSONByteBuffer buffer,
int offset,
LazyBSONCallback callback)
toString
public String toString()
- Returns a JSON serialization of this object
- Overrides:
toString
in class LazyBSONObject
- Returns:
- JSON serialization
isPartialObject
public boolean isPartialObject()
- Description copied from interface:
DBObject
- whether markAsPartialObject was ever called
only matters if you are going to upsert and do not want to risk losing fields
- Specified by:
isPartialObject
in interface DBObject
markAsPartialObject
public void markAsPartialObject()
- Description copied from interface:
DBObject
- if this object was retrieved with only some fields (using a field filter)
this method will be called to mark it as such.
- Specified by:
markAsPartialObject
in interface DBObject