Package | Description |
---|---|
com.mongodb |
The core mongodb package
|
com.mongodb.client.gridfs.codecs |
This package contains codecs for use with GridFS
|
com.mongodb.client.model.changestream |
This package contains classes for the change stream api
|
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 |
Contains the base BSON classes.
|
org.bson.codecs |
This package contains all the default BSON codecs.
|
org.bson.codecs.configuration |
This package contains codec configurations and the codec registry helper
|
org.bson.codecs.pojo |
This package contains classes specific to mapping user POJOs.
|
org.bson.json |
JSON serialization and deserialization.
|
Modifier and Type | Method and Description |
---|---|
DBRef |
DBRefCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
DBObject |
DBObjectCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
DBObject |
DBDecoderAdapter.decode(BsonReader reader,
DecoderContext decoderContext) |
DBObject |
CompoundDBObjectCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
BSONTimestamp |
BSONTimestampCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
private java.util.List |
DBObjectCodec.readArray(BsonReader reader,
DecoderContext decoderContext,
java.util.List<java.lang.String> path) |
private java.lang.Object |
DBObjectCodec.readBinary(BsonReader reader,
DecoderContext decoderContext) |
private CodeWScope |
DBObjectCodec.readCodeWScope(BsonReader reader,
DecoderContext decoderContext,
java.util.List<java.lang.String> path) |
private DBObject |
DBObjectCodec.readDocument(BsonReader reader,
DecoderContext decoderContext,
java.util.List<java.lang.String> path) |
private java.lang.Object |
DBObjectCodec.readValue(BsonReader reader,
DecoderContext decoderContext,
java.lang.String fieldName,
java.util.List<java.lang.String> path) |
Modifier and Type | Method and Description |
---|---|
GridFSFile |
GridFSFileCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
Modifier and Type | Method and Description |
---|---|
OperationType |
OperationTypeCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
ChangeStreamDocument<TResult> |
ChangeStreamDocumentCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
Modifier and Type | Method and Description |
---|---|
NamedCoordinateReferenceSystem |
NamedCoordinateReferenceSystemCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
T |
AbstractGeometryCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
(package private) static CoordinateReferenceSystem |
GeometryDecoderHelper.decodeCoordinateReferenceSystem(BsonReader reader) |
private static java.lang.String |
GeometryDecoderHelper.decodeCoordinateReferenceSystemProperties(BsonReader reader) |
private static java.util.List<Position> |
GeometryDecoderHelper.decodeCoordinates(BsonReader reader) |
private static java.util.List<? extends Geometry> |
GeometryDecoderHelper.decodeGeometries(BsonReader reader) |
private static Geometry |
GeometryDecoderHelper.decodeGeometry(BsonReader reader) |
(package private) static <T extends Geometry> |
GeometryDecoderHelper.decodeGeometry(BsonReader reader,
java.lang.Class<T> clazz) |
private static GeometryCollection |
GeometryDecoderHelper.decodeGeometryCollection(BsonReader reader) |
private static LineString |
GeometryDecoderHelper.decodeLineString(BsonReader reader) |
private static java.util.List<java.util.List<Position>> |
GeometryDecoderHelper.decodeMultiCoordinates(BsonReader reader) |
private static MultiLineString |
GeometryDecoderHelper.decodeMultiLineString(BsonReader reader) |
private static MultiPoint |
GeometryDecoderHelper.decodeMultiPoint(BsonReader reader) |
private static MultiPolygon |
GeometryDecoderHelper.decodeMultiPolygon(BsonReader reader) |
private static java.util.List<PolygonCoordinates> |
GeometryDecoderHelper.decodeMultiPolygonCoordinates(BsonReader reader) |
private static Point |
GeometryDecoderHelper.decodePoint(BsonReader reader) |
private static Polygon |
GeometryDecoderHelper.decodePolygon(BsonReader reader) |
private static PolygonCoordinates |
GeometryDecoderHelper.decodePolygonCoordinates(BsonReader reader) |
private static Position |
GeometryDecoderHelper.decodePosition(BsonReader reader) |
private static void |
GeometryDecoderHelper.validateIsArray(BsonReader reader) |
private static void |
GeometryDecoderHelper.validateIsDocument(BsonReader reader) |
Modifier and Type | Method and Description |
---|---|
private BsonValue |
AbstractByteBufBsonDocument.deserializeBsonValue(BsonReader bsonReader) |
T |
AbstractByteBufBsonDocument.Finder.find(BsonReader bsonReader) |
private static BsonValue |
ProtocolHelper.getField(BsonReader bsonReader,
java.lang.String fieldName) |
(package private) static boolean |
ProtocolHelper.isCommandOk(BsonReader bsonReader) |
void |
LevelCountingBsonWriter.pipe(BsonReader reader) |
void |
ElementExtendingBsonWriter.pipe(BsonReader reader) |
Modifier and Type | Method and Description |
---|---|
BsonArray |
CommandResultArrayCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
protected BsonValue |
CommandResultDocumentCodec.readValue(BsonReader reader,
DecoderContext decoderContext) |
protected BsonValue |
CommandResultArrayCodec.readValue(BsonReader reader,
DecoderContext decoderContext) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractBsonReader
Abstract base class for BsonReader implementations.
|
class |
BsonBinaryReader
A BsonReader implementation that reads from a binary stream of data.
|
class |
BsonDocumentReader
A
BsonReader implementation that reads from an instance of BsonDocument . |
Modifier and Type | Method and Description |
---|---|
void |
BsonWriter.pipe(BsonReader reader)
Reads a single document from a BsonReader and writes it to this.
|
void |
BsonBinaryWriter.pipe(BsonReader reader) |
void |
AbstractBsonWriter.pipe(BsonReader reader) |
void |
BsonBinaryWriter.pipe(BsonReader reader,
java.util.List<BsonElement> extraElements) |
void |
AbstractBsonWriter.pipe(BsonReader reader,
java.util.List<BsonElement> extraElements)
Reads a single document from the given BsonReader and writes it to this, appending the given extra elements to the document.
|
private void |
AbstractBsonWriter.pipeArray(BsonReader reader) |
private void |
BsonBinaryWriter.pipeDocument(BsonReader reader,
java.util.List<BsonElement> extraElements) |
private void |
AbstractBsonWriter.pipeDocument(BsonReader reader,
java.util.List<BsonElement> extraElements) |
private void |
AbstractBsonWriter.pipeJavascriptWithScope(BsonReader reader) |
private void |
AbstractBsonWriter.pipeValue(BsonReader reader) |
Modifier and Type | Method and Description |
---|---|
java.util.UUID |
UuidCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
Symbol |
SymbolCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
java.lang.String |
StringCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
java.lang.Short |
ShortCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
RawBsonDocument |
RawBsonDocumentCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
java.util.regex.Pattern |
PatternCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
ObjectId |
ObjectIdCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
MinKey |
MinKeyCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
MaxKey |
MaxKeyCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
java.util.Map<java.lang.String,java.lang.Object> |
MapCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
java.lang.Long |
LongCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
java.lang.Iterable |
IterableCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
java.lang.Integer |
IntegerCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
java.lang.Float |
FloatCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
java.lang.Double |
DoubleCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
Document |
DocumentCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
T |
Decoder.decode(BsonReader reader,
DecoderContext decoderContext)
Decodes a BSON value from the given reader into an instance of the type parameter
T . |
Decimal128 |
Decimal128Codec.decode(BsonReader reader,
DecoderContext decoderContext) |
java.util.Date |
DateCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
CodeWithScope |
CodeWithScopeCodec.decode(BsonReader bsonReader,
DecoderContext decoderContext) |
Code |
CodeCodec.decode(BsonReader bsonReader,
DecoderContext decoderContext) |
java.lang.Character |
CharacterCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
java.lang.Byte |
ByteCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
byte[] |
ByteArrayCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
BsonValue |
BsonValueCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
BsonUndefined |
BsonUndefinedCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
BsonTimestamp |
BsonTimestampCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
BsonSymbol |
BsonSymbolCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
BsonString |
BsonStringCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
BsonRegularExpression |
BsonRegularExpressionCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
BsonObjectId |
BsonObjectIdCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
BsonNull |
BsonNullCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
BsonMinKey |
BsonMinKeyCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
BsonMaxKey |
BsonMaxKeyCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
BsonJavaScriptWithScope |
BsonJavaScriptWithScopeCodec.decode(BsonReader bsonReader,
DecoderContext decoderContext) |
BsonJavaScript |
BsonJavaScriptCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
BsonInt64 |
BsonInt64Codec.decode(BsonReader reader,
DecoderContext decoderContext) |
BsonInt32 |
BsonInt32Codec.decode(BsonReader reader,
DecoderContext decoderContext) |
BsonDouble |
BsonDoubleCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
BsonDocumentWrapper |
BsonDocumentWrapperCodec.decode(BsonReader reader,
DecoderContext decoderContext)
Decoding of
BsonDocumentWrapper instances is not supported, so this method will throw UnsupportedOperationException
in all cases. |
BsonDocument |
BsonDocumentCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
BsonDecimal128 |
BsonDecimal128Codec.decode(BsonReader reader,
DecoderContext decoderContext) |
BsonDateTime |
BsonDateTimeCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
BsonDbPointer |
BsonDBPointerCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
BsonBoolean |
BsonBooleanCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
BsonBinary |
BsonBinaryCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
BsonArray |
BsonArrayCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
java.lang.Boolean |
BooleanCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
Binary |
BinaryCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
java.math.BigDecimal |
BigDecimalCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
java.util.concurrent.atomic.AtomicLong |
AtomicLongCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
java.util.concurrent.atomic.AtomicInteger |
AtomicIntegerCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
java.util.concurrent.atomic.AtomicBoolean |
AtomicBooleanCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
(package private) static double |
NumberCodecHelper.decodeDouble(BsonReader reader) |
(package private) static int |
NumberCodecHelper.decodeInt(BsonReader reader) |
(package private) static long |
NumberCodecHelper.decodeLong(BsonReader reader) |
<T> T |
DecoderContext.decodeWithChildContext(Decoder<T> decoder,
BsonReader reader)
Creates a child context and then deserializes using the reader.
|
private java.util.List<java.lang.Object> |
DocumentCodec.readList(BsonReader reader,
DecoderContext decoderContext) |
private java.lang.Object |
MapCodec.readValue(BsonReader reader,
DecoderContext decoderContext) |
private java.lang.Object |
IterableCodec.readValue(BsonReader reader,
DecoderContext decoderContext) |
private java.lang.Object |
DocumentCodec.readValue(BsonReader reader,
DecoderContext decoderContext) |
protected BsonValue |
BsonDocumentCodec.readValue(BsonReader reader,
DecoderContext decoderContext)
This method may be overridden to change the behavior of reading the current value from the given
BsonReader . |
protected BsonValue |
BsonArrayCodec.readValue(BsonReader reader,
DecoderContext decoderContext)
This method may be overridden to change the behavior of reading the current value from the given
BsonReader . |
Modifier and Type | Method and Description |
---|---|
T |
LazyCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
Modifier and Type | Method and Description |
---|---|
T |
PojoCodecImpl.decode(BsonReader reader,
DecoderContext decoderContext) |
java.util.Map<java.lang.String,T> |
MapPropertyCodecProvider.MapCodec.decode(BsonReader reader,
DecoderContext context) |
T |
LazyPojoCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
T |
EnumPropertyCodecProvider.EnumCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
java.util.Collection<T> |
CollectionPropertyCodecProvider.CollectionCodec.decode(BsonReader reader,
DecoderContext context) |
T |
AutomaticPojoCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
private void |
PojoCodecImpl.decodeProperties(BsonReader reader,
DecoderContext decoderContext,
InstanceCreator<T> instanceCreator) |
private <S> void |
PojoCodecImpl.decodePropertyModel(BsonReader reader,
DecoderContext decoderContext,
InstanceCreator<T> instanceCreator,
java.lang.String name,
PropertyModel<S> propertyModel) |
private Codec<T> |
PojoCodecImpl.getCodecFromDocument(BsonReader reader,
boolean useDiscriminator,
java.lang.String discriminatorKey,
CodecRegistry registry,
DiscriminatorLookup discriminatorLookup,
Codec<T> defaultCodec) |
Modifier and Type | Class and Description |
---|---|
class |
JsonReader
Reads a JSON in one of the following modes:
Strict mode that conforms to the JSON RFC specifications.
JavaScript mode that that most JavaScript interpreters can process
Shell mode that the mongo shell can process.
|