Package | Description |
---|---|
com.mongodb |
This package is the main entry point to the MongoDB Java Driver, and it contains the classes for the existing API from 2.x versions.
|
com.mongodb.client.model.geojson.codecs |
This package contains classes that encode and decode GeoJSON objects.
|
com.mongodb.connection |
Contains classes that manage connecting to MongoDB servers.
|
com.mongodb.operation |
The core of the MongoDB driver works via operations, using the command pattern.
|
org.bson |
This package contains bson classes required for the driver
|
org.bson.codecs |
This package contains all the default BSON codecs.
|
Modifier and Type | Class and Description |
---|---|
class |
BSONTimestampCodec
Knows how to encode and decode BSON timestamps.
|
class |
DBObjectCodec
A collectible codec for a DBObject.
|
class |
DBRefCodec
A Codec for DBRef instances.
|
Modifier and Type | Method and Description |
---|---|
static BasicDBObject |
BasicDBObject.parse(String json,
Decoder<BasicDBObject> decoder)
Parses a string in MongoDB Extended JSON format to a
BasicDBObject . |
Modifier and Type | Class and Description |
---|---|
class |
GeometryCollectionCodec
A Codec for a GeoJSON GeometryCollection.
|
class |
LineStringCodec
A Codec for a GeoJSON LineString.
|
class |
MultiLineStringCodec
A Codec for a GeoJSON MultiLineString.
|
class |
MultiPointCodec
A Codec for a GeoJSON MultiPoint.
|
class |
MultiPolygonCodec
A Codec for a GeoJSON MultiPolygon.
|
class |
NamedCoordinateReferenceSystemCodec
Codec for a GeoJson Coordinate Reference System of type name.
|
class |
PointCodec
A Codec for a GeoJSON point.
|
class |
PolygonCodec
A Codec for a GeoJSON polygon.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
Connection.command(String database,
BsonDocument command,
boolean slaveOk,
FieldNameValidator fieldNameValidator,
Decoder<T> commandResultDecoder)
Execute the command.
|
<T> void |
AsyncConnection.commandAsync(String database,
BsonDocument command,
boolean slaveOk,
FieldNameValidator fieldNameValidator,
Decoder<T> commandResultDecoder,
SingleResultCallback<T> callback)
Execute the command asynchronously.
|
<T> QueryResult<T> |
Connection.getMore(MongoNamespace namespace,
long cursorId,
int numberToReturn,
Decoder<T> resultDecoder)
Get more result documents from a cursor.
|
<T> void |
AsyncConnection.getMoreAsync(MongoNamespace namespace,
long cursorId,
int numberToReturn,
Decoder<T> resultDecoder,
SingleResultCallback<QueryResult<T>> callback)
Get more result documents from a cursor asynchronously.
|
<T> QueryResult<T> |
Connection.query(MongoNamespace namespace,
BsonDocument queryDocument,
BsonDocument fields,
int numberToReturn,
int skip,
boolean slaveOk,
boolean tailableCursor,
boolean awaitData,
boolean noCursorTimeout,
boolean partial,
boolean oplogReplay,
Decoder<T> resultDecoder)
|
<T> QueryResult<T> |
Connection.query(MongoNamespace namespace,
BsonDocument queryDocument,
BsonDocument fields,
int skip,
int limit,
int batchSize,
boolean slaveOk,
boolean tailableCursor,
boolean awaitData,
boolean noCursorTimeout,
boolean partial,
boolean oplogReplay,
Decoder<T> resultDecoder)
Execute the query.
|
<T> void |
AsyncConnection.queryAsync(MongoNamespace namespace,
BsonDocument queryDocument,
BsonDocument fields,
int numberToReturn,
int skip,
boolean slaveOk,
boolean tailableCursor,
boolean awaitData,
boolean noCursorTimeout,
boolean partial,
boolean oplogReplay,
Decoder<T> resultDecoder,
SingleResultCallback<QueryResult<T>> callback)
|
<T> void |
AsyncConnection.queryAsync(MongoNamespace namespace,
BsonDocument queryDocument,
BsonDocument fields,
int skip,
int limit,
int batchSize,
boolean slaveOk,
boolean tailableCursor,
boolean awaitData,
boolean noCursorTimeout,
boolean partial,
boolean oplogReplay,
Decoder<T> resultDecoder,
SingleResultCallback<QueryResult<T>> callback)
Execute the query asynchronously.
|
Modifier and Type | Method and Description |
---|---|
Decoder<T> |
FindAndDeleteOperation.getDecoder()
Gets the decoder used to decode the result documents.
|
Decoder<T> |
FindAndUpdateOperation.getDecoder()
Gets the decoder used to decode the result documents.
|
Decoder<T> |
FindAndReplaceOperation.getDecoder()
Gets the decoder used to decode the result documents.
|
Decoder<T> |
FindOperation.getDecoder()
Gets the decoder used to decode the result documents.
|
Constructor and Description |
---|
AggregateOperation(MongoNamespace namespace,
List<BsonDocument> pipeline,
Decoder<T> decoder)
Construct a new instance.
|
CommandReadOperation(String databaseName,
BsonDocument command,
Decoder<T> decoder)
Construct a new instance.
|
CommandWriteOperation(String databaseName,
BsonDocument command,
Decoder<T> decoder)
Construct a new instance.
|
DistinctOperation(MongoNamespace namespace,
String fieldName,
Decoder<T> decoder)
Construct an instance.
|
FindAndDeleteOperation(MongoNamespace namespace,
Decoder<T> decoder)
Deprecated.
|
FindAndDeleteOperation(MongoNamespace namespace,
WriteConcern writeConcern,
Decoder<T> decoder)
Construct a new instance.
|
FindAndReplaceOperation(MongoNamespace namespace,
Decoder<T> decoder,
BsonDocument replacement)
|
FindAndReplaceOperation(MongoNamespace namespace,
WriteConcern writeConcern,
Decoder<T> decoder,
BsonDocument replacement)
Construct a new instance.
|
FindAndUpdateOperation(MongoNamespace namespace,
Decoder<T> decoder,
BsonDocument update)
|
FindAndUpdateOperation(MongoNamespace namespace,
WriteConcern writeConcern,
Decoder<T> decoder,
BsonDocument update)
Construct a new instance.
|
FindOperation(MongoNamespace namespace,
Decoder<T> decoder)
Construct a new instance.
|
GroupOperation(MongoNamespace namespace,
BsonJavaScript reduceFunction,
BsonDocument initial,
Decoder<T> decoder)
Create an operation that will perform a Group on a given collection.
|
ListCollectionsOperation(String databaseName,
Decoder<T> decoder)
Construct a new instance.
|
ListDatabasesOperation(Decoder<T> decoder)
Construct a new instance.
|
ListIndexesOperation(MongoNamespace namespace,
Decoder<T> decoder)
Construct a new instance.
|
MapReduceWithInlineResultsOperation(MongoNamespace namespace,
BsonJavaScript mapFunction,
BsonJavaScript reduceFunction,
Decoder<T> decoder)
Construct a MapReduceOperation with all the criteria it needs to execute.
|
ParallelCollectionScanOperation(MongoNamespace namespace,
int numCursors,
Decoder<T> decoder)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
static Document |
Document.parse(String json,
Decoder<Document> decoder)
Parses a string in MongoDB Extended JSON format to a
Document |
Modifier and Type | Interface and Description |
---|---|
interface |
Codec<T>
Implementations of this interface can both encode and decode values of type
T . |
interface |
CollectibleCodec<T>
A Codec that generates complete BSON documents for storage in a MongoDB collection.
|
Modifier and Type | Class and Description |
---|---|
class |
AtomicBooleanCodec
Encodes and decodes
AtomicBoolean objects. |
class |
AtomicIntegerCodec
Encodes and decodes
AtomicInteger objects. |
class |
AtomicLongCodec
Encodes and decodes
AtomicLong objects. |
class |
BinaryCodec
A Codec for the BSON Binary type.
|
class |
BooleanCodec
Encodes and decodes
Boolean objects. |
class |
BsonArrayCodec
A codec for BsonArray instances.
|
class |
BsonBinaryCodec
A Codec for the BSON Binary type.
|
class |
BsonBooleanCodec
A Codec for BsonBoolean instances.
|
class |
BsonDateTimeCodec
A Codec for BsonDateTime instances.
|
class |
BsonDBPointerCodec
Converts BSON type DBPointer(0x0c) to database references as DBPointer is deprecated.
|
class |
BsonDocumentCodec
A codec for BsonDocument instances.
|
class |
BsonDocumentWrapperCodec
A Codec
|
class |
BsonDoubleCodec
A Codec for BsonDouble instances.
|
class |
BsonInt32Codec
A Codec for BsonInt32 instances.
|
class |
BsonInt64Codec
A Codec for BsonInt64 instances.
|
class |
BsonJavaScriptCodec
A Codec for the
BsonJavaScript type. |
class |
BsonJavaScriptWithScopeCodec
A Codec for
BsonJavaScriptWithScope instances. |
class |
BsonMaxKeyCodec
A codec for
BsonMaxKey instances. |
class |
BsonMinKeyCodec
A codec for
BsonMinKey instances. |
class |
BsonNullCodec
A Codec for BsonNull instances.
|
class |
BsonObjectIdCodec
A Codec for
BsonObjectId instances. |
class |
BsonRegularExpressionCodec
A codec for BSON regular expressions.
|
class |
BsonStringCodec
A Codec for BsonString instances.
|
class |
BsonSymbolCodec
A codec for BSON symbol type.
|
class |
BsonTimestampCodec
A Codec for BSON Timestamp instances.
|
class |
BsonUndefinedCodec
Allows reading and writing of the BSON Undefined type.
|
class |
BsonValueCodec
A codec for unknown BsonValues.
|
class |
ByteArrayCodec
Encodes and decodes byte arrays.
|
class |
ByteCodec
Encodes and decodes
Byte objects. |
class |
CharacterCodec
Encodes and decodes
Character objects. |
class |
CodeCodec
Encodes and decodes instances of type
Code . |
class |
CodeWithScopeCodec
Encodes and decodes
CodeWithScope instances. |
class |
DateCodec
Encodes and decodes
java.util.Date objects. |
class |
DocumentCodec
A Codec for Document instances.
|
class |
DoubleCodec
Encodes and decodes
Double objects. |
class |
FloatCodec
Encodes and decodes
Float objects. |
class |
IntegerCodec
Encodes and decodes
Integer objects. |
class |
LongCodec
Encodes and decodes
Long objects. |
class |
MaxKeyCodec
Encodes and decodes instances of type
MaxKey . |
class |
MinKeyCodec
Encodes and decodes instances of type
MinKey . |
class |
ObjectIdCodec
A Codec for ObjectId instances.
|
class |
PatternCodec
A codec for
Pattern instances. |
class |
RawBsonDocumentCodec
A simple BSONDocumentBuffer codec.
|
class |
ShortCodec
Encodes and decodes
Short objects. |
class |
StringCodec
Encodes and decodes
String objects. |
class |
SymbolCodec
A codec for BSON symbol type.
|
class |
UuidCodec
Encodes and decodes
UUID objects. |
Copyright © 2016. All Rights Reserved.