public class LazyDBCallback extends LazyBSONCallback implements DBCallback
BSONCallback for the creation of LazyDBObject and LazyDBList instances.| Constructor and Description |
|---|
LazyDBCallback(DBCollection collection)
Construct an instance.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List |
createArray(byte[] bytes,
int offset)
Create a
LazyBSONList from the given bytes starting from the given offset. |
java.lang.Object |
createDBRef(java.lang.String ns,
ObjectId id)
This is a factory method pattern to create appropriate objects for BSON type DBPointer(0x0c).
|
java.lang.Object |
createObject(byte[] bytes,
int offset)
Create a
LazyBSONObject instance from the given bytes starting from the given offset. |
get, gotBinary, resetarrayDone, 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, objectStartequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitarrayDone, 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, resetpublic LazyDBCallback(@Nullable
DBCollection collection)
collection - the DBCollection containing the document. This parameter is no longer used.public java.lang.Object createObject(byte[] bytes,
int offset)
LazyBSONCallbackLazyBSONObject instance from the given bytes starting from the given offset.createObject in class LazyBSONCallbackbytes - the raw BSON bytesoffset - the offset into the bytespublic java.util.List createArray(byte[] bytes,
int offset)
LazyBSONCallbackLazyBSONList from the given bytes starting from the given offset.createArray in class LazyBSONCallbackbytes - the raw BSON bytesoffset - the offset into the bytespublic java.lang.Object createDBRef(java.lang.String ns,
ObjectId id)
LazyBSONCallbackcreateDBRef in class LazyBSONCallbackns - the namespace of the referenceid - the identifier of the referenceCopyright © 2010 - 2023 Adobe. All Rights Reserved