Package com.mongodb

Class LazyDBCallback

  • All Implemented Interfaces:
    DBCallback, org.bson.BSONCallback


    public class LazyDBCallback
    extends org.bson.LazyBSONCallback
    implements DBCallback
    A BSONCallback for the creation of LazyDBObject and LazyDBList instances.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List createArray​(byte[] bytes, int offset)  
      java.lang.Object createDBRef​(java.lang.String ns, org.bson.types.ObjectId id)  
      java.lang.Object createObject​(byte[] bytes, int offset)  
      • Methods inherited from interface org.bson.BSONCallback

        arrayDone, arrayStart, arrayStart, createBSONCallback, get, gotBinary, gotBinaryArray, gotBoolean, gotCode, gotCodeWScope, gotDate, gotDBRef, gotDecimal128, gotDouble, gotInt, gotLong, gotMaxKey, gotMinKey, gotNull, gotObjectId, gotRegex, gotString, gotSymbol, gotTimestamp, gotUndefined, gotUUID, objectDone, objectStart, objectStart, reset
      • Methods inherited from class org.bson.EmptyBSONCallback

        arrayDone, arrayStart, arrayStart, createBSONCallback, gotBinaryArray, gotBoolean, gotCode, gotCodeWScope, gotDate, gotDBRef, gotDecimal128, gotDouble, gotInt, gotLong, gotMaxKey, gotMinKey, gotNull, gotObjectId, gotRegex, gotString, gotSymbol, gotTimestamp, gotUndefined, gotUUID, objectDone, objectStart, objectStart
      • Methods inherited from class org.bson.LazyBSONCallback

        get, gotBinary, reset
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LazyDBCallback

        public LazyDBCallback​(@Nullable
                              DBCollection collection)
        Construct an instance.
        Parameters:
        collection - the DBCollection containing the document. This parameter is no longer used.
    • Method Detail

      • createObject

        public java.lang.Object createObject​(byte[] bytes,
                                             int offset)
        Overrides:
        createObject in class org.bson.LazyBSONCallback
      • createArray

        public java.util.List createArray​(byte[] bytes,
                                          int offset)
        Overrides:
        createArray in class org.bson.LazyBSONCallback
      • createDBRef

        public java.lang.Object createDBRef​(java.lang.String ns,
                                            org.bson.types.ObjectId id)
        Overrides:
        createDBRef in class org.bson.LazyBSONCallback