Package com.mongodb
Class LazyDBList
java.lang.Object
org.bson.LazyBSONObject
org.bson.LazyBSONList
com.mongodb.LazyDBList
- All Implemented Interfaces:
DBObject
,Iterable
,Collection
,List
,SequencedCollection
,BSONObject
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
A
LazyDBObject
representing a BSON array.-
Nested Class Summary
Nested classes/interfaces inherited from class org.bson.LazyBSONList
LazyBSONList.LazyBSONListIterator
-
Constructor Summary
ConstructorsConstructorDescriptionLazyDBList
(byte[] bytes, int offset, LazyBSONCallback callback) Deprecated.Construct an instance with the given raw bytes and offset.LazyDBList
(byte[] bytes, LazyBSONCallback callback) Deprecated.Construct an instance with the given raw bytes and offset. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Deprecated.WhetherDBObject.markAsPartialObject()
was ever called only matters if you are going to upsert and do not want to risk losing fields.void
Deprecated.If this object was retrieved with only some fields (using a field filter) this method will be called to mark it as such.toString()
Deprecated.there is no replacement for this method, as the driver no longer supports generating top-level JSON arrays.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, hashCode, isEmpty, keySet, pipe, put, putAll, putAll, removeField, toMap
Methods inherited from interface org.bson.BSONObject
containsField, containsKey, get, keySet, put, putAll, putAll, removeField, toMap
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.List
addFirst, addLast, equals, getFirst, getLast, hashCode, isEmpty, removeFirst, removeLast, replaceAll, reversed, sort, spliterator
-
Constructor Details
-
LazyDBList
Deprecated.Construct an instance with the given raw bytes and offset.- Parameters:
bytes
- the raw BSON bytescallback
- the callback to use to create nested values
-
LazyDBList
Deprecated.Construct an instance with the given raw bytes and offset.- Parameters:
bytes
- the raw BSON bytesoffset
- the offset into the raw bytescallback
- the callback to use to create nested values
-
-
Method Details
-
markAsPartialObject
public void markAsPartialObject()Deprecated.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 interfaceDBObject
-
isPartialObject
public boolean isPartialObject()Deprecated.Description copied from interface:DBObject
WhetherDBObject.markAsPartialObject()
was ever called only matters if you are going to upsert and do not want to risk losing fields.- Specified by:
isPartialObject
in interfaceDBObject
- Returns:
- true if this has been marked as a partial object
-
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.Returns a JSON serialization of this object
-