Package com.mongodb

Class LazyDBList

All Implemented Interfaces:
DBObject, Iterable, Collection, List, SequencedCollection, BSONObject

@Deprecated(since="2021-05-27") public class LazyDBList extends LazyBSONList implements DBObject
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
A LazyDBObject representing a BSON array.
  • Constructor Details

    • LazyDBList

      public LazyDBList(byte[] bytes, LazyBSONCallback callback)
      Deprecated.
      Construct an instance with the given raw bytes and offset.
      Parameters:
      bytes - the raw BSON bytes
      callback - the callback to use to create nested values
    • LazyDBList

      public LazyDBList(byte[] bytes, int offset, LazyBSONCallback callback)
      Deprecated.
      Construct an instance with the given raw bytes and offset.
      Parameters:
      bytes - the raw BSON bytes
      offset - the offset into the raw bytes
      callback - 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 interface DBObject
    • isPartialObject

      public boolean isPartialObject()
      Deprecated.
      Description copied from interface: DBObject
      Whether DBObject.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
      Returns:
      true if this has been marked as a partial object
    • toString

      @Deprecated public 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.
      Returns a JSON serialization of this object
      Overrides:
      toString in class Object
      Returns:
      JSON serialization