Package | Description |
---|---|
com.mongodb |
Main package with core files.
|
com.mongodb.gridfs |
GridFS tools.
|
com.mongodb.util |
Package containing misc utils.
|
org.bson |
Contains the base BSON classes and Encoder/Decoder.
|
org.bson.types |
Contains classes implementing various BSON types.
|
Modifier and Type | Interface and Description |
---|---|
interface |
DBObject
This interface adds some specific behaviour to
BSONObject for MongoDB documents. |
Modifier and Type | Class and Description |
---|---|
class |
BasicDBList
An implementation of List that reflects the way BSON lists work.
|
class |
BasicDBObject
A basic implementation of BSON object that is MongoDB specific.
|
class |
CommandResult
A simple wrapper to hold the result of a command.
|
class |
LazyDBObject
An immutable
DBObject backed by a byte buffer that lazily provides keys and values on request. |
class |
LazyWriteableDBObject
Deprecated.
This class will be removed in a future release. There is no replacement.
|
class |
RawDBObject
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
|
class |
ReflectionDBObject
This class enables to map simple Class fields to a BSON object fields
|
Modifier and Type | Method and Description |
---|---|
BSONObject |
DefaultDBCallback.create() |
BSONObject |
DefaultDBCallback.create(boolean array,
List<String> path) |
Modifier and Type | Method and Description |
---|---|
void |
ReflectionDBObject.putAll(BSONObject o) |
void |
RawDBObject.putAll(BSONObject o)
Deprecated.
Always throws
UnsupportedOperationException . |
void |
LazyWriteableDBObject.putAll(BSONObject o)
Deprecated.
|
int |
LazyDBEncoder.writeObject(OutputBuffer buf,
BSONObject o) |
int |
DefaultDBEncoder.writeObject(OutputBuffer buf,
BSONObject o) |
int |
DBEncoder.writeObject(OutputBuffer outputBuffer,
BSONObject document)
Encode the BSONObject.
|
Constructor and Description |
---|
DBRef(DB db,
BSONObject o)
Deprecated.
Deprecated because
DBRefBase.fetch() is deprecated. Use DBRef.DBRef(String, Object) instead |
MongoException(BSONObject o)
Deprecated.
Use one of the other available constructors instead
|
Modifier and Type | Class and Description |
---|---|
class |
GridFSDBFile
This class enables retrieving a GridFS file metadata and content.
|
class |
GridFSFile
The abstract class representing a GridFS file.
|
class |
GridFSInputFile
This class represents a GridFS file to be written to the database.
|
Modifier and Type | Method and Description |
---|---|
void |
GridFSFile.putAll(BSONObject o) |
Modifier and Type | Method and Description |
---|---|
BSONObject |
JSONCallback.create() |
protected BSONObject |
JSONCallback.createList() |
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,
List<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 |
NewBSONDecoder.readObject(byte[] pData)
Deprecated.
|
BSONObject |
LazyBSONDecoder.readObject(byte[] b) |
BSONObject |
BSONDecoder.readObject(byte[] bytes)
Read a single BSON object from the given bytes.
|
BSONObject |
BasicBSONDecoder.readObject(byte[] b) |
BSONObject |
NewBSONDecoder.readObject(InputStream pIn)
Deprecated.
|
BSONObject |
LazyBSONDecoder.readObject(InputStream in) |
BSONObject |
BSONDecoder.readObject(InputStream in)
Read a single BSON object from the given input stream.
|
BSONObject |
BasicBSONDecoder.readObject(InputStream in) |
Modifier and Type | Method and Description |
---|---|
byte[] |
BSONEncoder.encode(BSONObject o)
Encode a document into byte array.
|
static byte[] |
BSON.encode(BSONObject o)
Encodes a DBObject as a BSON byte array.
|
byte[] |
BasicBSONEncoder.encode(BSONObject o) |
protected boolean |
BasicBSONEncoder.handleSpecialObjects(String name,
BSONObject o)
Deprecated.
Override
BasicBSONEncoder.putSpecial(String, Object) if you need to you need to handle custom types. |
void |
LazyBSONObject.putAll(BSONObject o)
Always throws
UnsupportedOperationException . |
void |
BSONObject.putAll(BSONObject o)
Sets all key/value pairs from an object into this object
|
void |
BasicBSONObject.putAll(BSONObject o) |
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(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(String code,
BSONObject scope)
Construct an instance.
|