Package | Description |
---|---|
com.mongodb.client.model |
This package contains models and options that help describe MongoCollection operations
|
org.bson |
This package contains bson classes required for the driver
|
org.bson.codecs |
This package contains all the default BSON codecs.
|
org.bson.json |
JSON serialization and deserialization.
|
Modifier and Type | Method and Description |
---|---|
static Bson |
Filters.type(String fieldName,
BsonType type)
Creates a filter that matches all documents where the value of the field is of the specified BSON type.
|
Modifier and Type | Method and Description |
---|---|
static BsonType |
BsonType.findByValue(int value)
Gets the
BsonType that corresponds to the given int value. |
BsonType |
BsonBinary.getBsonType() |
abstract BsonType |
BsonValue.getBsonType()
Gets the BSON type of this value.
|
BsonType |
BsonDbPointer.getBsonType() |
BsonType |
BsonRegularExpression.getBsonType() |
BsonType |
BsonTimestamp.getBsonType() |
BsonType |
BsonDocument.getBsonType() |
BsonType |
BsonArray.getBsonType() |
BsonType |
BsonString.getBsonType() |
BsonType |
BsonInt32.getBsonType() |
BsonType |
BsonInt64.getBsonType() |
BsonType |
BsonDouble.getBsonType() |
BsonType |
BsonBoolean.getBsonType() |
BsonType |
BsonObjectId.getBsonType() |
BsonType |
BsonDateTime.getBsonType() |
BsonType |
BsonSymbol.getBsonType() |
BsonType |
BsonJavaScript.getBsonType() |
BsonType |
BsonJavaScriptWithScope.getBsonType() |
BsonType |
BsonMinKey.getBsonType() |
BsonType |
BsonMaxKey.getBsonType() |
BsonType |
BsonNull.getBsonType() |
BsonType |
BsonUndefined.getBsonType() |
BsonType |
BsonReader.getCurrentBsonType() |
BsonType |
AbstractBsonReader.getCurrentBsonType() |
BsonType |
BsonReader.readBsonType()
Reads a BSONType from the reader.
|
BsonType |
BsonBinaryReader.readBsonType() |
abstract BsonType |
AbstractBsonReader.readBsonType() |
BsonType |
BsonDocumentReader.readBsonType() |
static BsonType |
BsonType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BsonType[] |
BsonType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractBsonReader.checkPreconditions(String methodName,
BsonType type)
Ensures any conditions are met before reading commences.
|
protected void |
AbstractBsonReader.setCurrentBsonType(BsonType newType)
Sets the type of the current value being read.
|
protected void |
AbstractBsonReader.verifyBSONType(String methodName,
BsonType requiredBsonType)
Verifies the current state and BSONType of the reader.
|
Modifier and Type | Method and Description |
---|---|
Class<?> |
BsonTypeClassMap.get(BsonType bsonType)
Gets the Class that is mapped to the given BSON type.
|
static Class<? extends BsonValue> |
BsonValueCodecProvider.getClassForBsonType(BsonType bsonType)
Get the
BsonValue subclass associated with the given BsonType . |
Constructor and Description |
---|
BsonTypeClassMap(Map<BsonType,Class<?>> replacementsForDefaults)
Construct an instance with the default mapping, but replacing the default mapping with any values contained in the given map.
|
Modifier and Type | Method and Description |
---|---|
BsonType |
JsonReader.readBsonType() |
Copyright © 2016. All Rights Reserved.