Package com.mongodb

Class LazyDBList

  • All Implemented Interfaces:
    com.mongodb.DBObject, Iterable, Collection, List, org.bson.BSONObject

    public class LazyDBList
    extends org.bson.LazyBSONList
    implements com.mongodb.DBObject
    A LazyDBObject representing a BSON array.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.bson.LazyBSONList

        org.bson.LazyBSONList.LazyBSONListIterator
    • Constructor Summary

      Constructors 
      Constructor Description
      LazyDBList​(byte[] bytes, int offset, org.bson.LazyBSONCallback callback)
      Construct an instance with the given raw bytes and offset.
      LazyDBList​(byte[] bytes, org.bson.LazyBSONCallback callback)
      Construct an instance with the given raw bytes and offset.
    • Constructor Detail

      • LazyDBList

        public LazyDBList​(byte[] bytes,
                          org.bson.LazyBSONCallback callback)
        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,
                          org.bson.LazyBSONCallback callback)
        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 Detail

      • markAsPartialObject

        public void markAsPartialObject()
        Specified by:
        markAsPartialObject in interface com.mongodb.DBObject
      • isPartialObject

        public boolean isPartialObject()
        Specified by:
        isPartialObject in interface com.mongodb.DBObject
      • 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