org.bson
Class LazyDBList

java.lang.Object
  extended by org.bson.LazyBSONObject
      extended by org.bson.LazyBSONList
          extended by org.bson.LazyDBList
All Implemented Interfaces:
DBObject, Iterable, Collection, List, BSONObject

public class LazyDBList
extends LazyBSONList
implements DBObject

Author:
scotthernandez

Nested Class Summary
 
Nested classes/interfaces inherited from class org.bson.LazyBSONList
LazyBSONList.LazyBSONListIterator
 
Nested classes/interfaces inherited from class org.bson.LazyBSONObject
LazyBSONObject.LazyBSONIterator, LazyBSONObject.LazyBSONKeySet
 
Field Summary
 
Fields inherited from class org.bson.LazyBSONObject
_callback, _doc_start_offset, _input
 
Constructor Summary
LazyDBList(BSONByteBuffer buffer, int offset, LazyBSONCallback callback)
           
LazyDBList(BSONByteBuffer buffer, LazyBSONCallback callback)
           
LazyDBList(byte[] data, int offset, LazyBSONCallback callback)
           
LazyDBList(byte[] data, LazyBSONCallback callback)
           
 
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, get, getBSONSize, getElementBSONSize, getElementType, getElementValue, isElementEmpty, isEmpty, keySet, put, putAll, putAll, removeField, sizeCString, toMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.bson.BSONObject
containsField, containsKey, get, keySet, put, putAll, putAll, removeField, toMap
 
Methods inherited from interface java.util.List
equals, hashCode, isEmpty
 

Constructor Detail

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)
Method Detail

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