Package | Description |
---|---|
org.bson |
Contains the base BSON classes and Encoder/Decoder.
|
org.bson.types |
Contains classes implementing various BSON types.
|
Modifier and Type | Class and Description |
---|---|
class |
BasicBSONObject
A simple implementation of
DBObject . |
class |
KeyCachingLazyBSONObject
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
|
class |
LazyBSONList
A
LazyBSONObject representing a BSON array. |
class |
LazyBSONObject
An immutable
BSONObject backed by a byte buffer that lazily provides keys and values on request. |
class |
LazyDBList
Deprecated.
Please use
LazyDBList instead. |
Modifier and Type | Method and Description |
---|---|
BSONObject |
BasicBSONCallback.create()
Factory method for creating a new BSONObject.
|
BSONObject |
BasicBSONCallback.create(boolean array,
java.util.List<java.lang.String> path)
Helper method to create either a BSON Object or a BSON List depending upon whether the
array parameter is true or not. |
protected BSONObject |
BasicBSONCallback.createList()
Factory method for creating a new BSON List.
|
protected BSONObject |
BasicBSONCallback.cur()
Gets the current value
|
static BSONObject |
BSON.decode(byte[] b)
Decodes a BSON byte array into a DBObject instance.
|
BSONObject |
BSONDecoder.readObject(byte[] bytes)
Read a single BSON object from the given bytes.
|
BSONObject |
NewBSONDecoder.readObject(byte[] pData)
Deprecated.
|
BSONObject |
LazyBSONDecoder.readObject(byte[] b) |
BSONObject |
BasicBSONDecoder.readObject(byte[] b) |
BSONObject |
BSONDecoder.readObject(java.io.InputStream in)
Read a single BSON object from the given input stream.
|
BSONObject |
NewBSONDecoder.readObject(java.io.InputStream pIn)
Deprecated.
|
BSONObject |
LazyBSONDecoder.readObject(java.io.InputStream in) |
BSONObject |
BasicBSONDecoder.readObject(java.io.InputStream in) |
Modifier and Type | Method and Description |
---|---|
byte[] |
BSONEncoder.encode(BSONObject o)
Encode a document into byte array.
|
byte[] |
BasicBSONEncoder.encode(BSONObject o) |
static byte[] |
BSON.encode(BSONObject o)
Encodes a DBObject as a BSON byte array.
|
protected boolean |
BasicBSONEncoder.handleSpecialObjects(java.lang.String name,
BSONObject o)
Deprecated.
Override
BasicBSONEncoder.putSpecial(String, Object) if you need to you need to handle custom types. |
void |
BSONObject.putAll(BSONObject o)
Sets all key/value pairs from an object into this object
|
void |
BasicBSONObject.putAll(BSONObject o) |
void |
LazyBSONObject.putAll(BSONObject o)
Always throws
UnsupportedOperationException . |
int |
BSONEncoder.putObject(BSONObject o)
Encoder and write a document into underlying buffer.
|
int |
BasicBSONEncoder.putObject(BSONObject o)
Encodes a
BSONObject . |
protected int |
BasicBSONEncoder.putObject(java.lang.String name,
BSONObject o)
This is really for embedded objects
|
Modifier and Type | Class and Description |
---|---|
class |
BasicBSONList
Utility class to allow array
DBObject s to be created. |
Modifier and Type | Method and Description |
---|---|
BSONObject |
CodeWScope.getScope()
Gets the scope, which is is a mapping from identifiers to values, representing the scope in which the code should be evaluated.
|
Modifier and Type | Method and Description |
---|---|
void |
BasicBSONList.putAll(BSONObject o) |
Constructor and Description |
---|
CodeWScope(java.lang.String code,
BSONObject scope)
Construct an instance.
|