Uses of Class
org.bson.BsonValue
-
Packages that use BsonValue Package Description org.bson Contains the base BSON classes.org.bson.codecs This package contains all the default BSON codecs. -
-
Uses of BsonValue in org.bson
Subclasses of BsonValue in org.bson Modifier and Type Class Description class
BsonArray
A type-safe representation of the BSON array type.class
BsonBinary
A representation of the BSON Binary type.class
BsonBoolean
A representation of the BSON Boolean type.class
BsonDateTime
A representation of the BSON DateTime type.class
BsonDbPointer
Holder for a BSON type DBPointer(0x0c).class
BsonDecimal128
A representation of the BSON Decimal128 type.class
BsonDocument
A type-safe container for a BSON document.class
BsonDocumentWrapper<T>
ABsonDocument
that begins its life as a document of any type and anEncoder
for that document, which lets an instance of any class with an Encoder be treated as a BsonDocument.class
BsonDouble
A representation of the BSON Double type.class
BsonInt32
A representation of the BSON Int32 type.class
BsonInt64
A representation of the BSON Int64 type.class
BsonJavaScript
For using the JavaScript Code type.class
BsonJavaScriptWithScope
A representation of the JavaScript Code with Scope BSON type.class
BsonMaxKey
Represent the maximum key value regardless of the key's typeclass
BsonMinKey
Represent the minimum key value regardless of the key's typeclass
BsonNull
A representation of the BSON Null type.class
BsonNumber
Base class for the three numeric BSON types.class
BsonObjectId
A representation of the BSON ObjectId type.class
BsonRegularExpression
A holder class for a BSON regular expression, so that we can delay compiling into a Pattern until necessary.class
BsonString
A representation of the BSON String type.class
BsonSymbol
Class to hold a BSON symbol object, which is an interned string in Rubyclass
BsonTimestamp
A value representing the BSON timestamp type.class
BsonUndefined
Represents the value associated with the BSON Undefined type.class
RawBsonArray
An immutable BSON array that is represented using only the raw bytes.class
RawBsonDocument
An immutable BSON document that is represented using only the raw bytes.Methods in org.bson that return BsonValue Modifier and Type Method Description BsonValue
BsonArray. get(int index)
BsonValue
BsonDocument. get(Object key)
BsonValue
BsonDocument. get(Object key, BsonValue defaultValue)
If the document does not contain the given key, return the given default value.BsonValue
BsonDocumentWrapper. get(Object key)
BsonValue
RawBsonDocument. get(Object key)
BsonValue
BsonDocumentReader.Context. getNextValue()
BsonValue
BsonElement. getValue()
Gets the value of this element.BsonValue
BsonDocument. put(String key, BsonValue value)
BsonValue
BsonDocumentWrapper. put(String key, BsonValue value)
BsonValue
RawBsonDocument. put(String key, BsonValue value)
BsonValue
BsonArray. remove(int index)
BsonValue
BsonDocument. remove(Object key)
BsonValue
BsonDocumentWrapper. remove(Object key)
BsonValue
RawBsonArray. remove(int index)
BsonValue
RawBsonDocument. remove(Object key)
BsonValue
BsonArray. set(int index, BsonValue element)
BsonValue
RawBsonArray. set(int index, BsonValue element)
Methods in org.bson that return types with arguments of type BsonValue Modifier and Type Method Description Set<Map.Entry<String,BsonValue>>
BsonDocument. entrySet()
Set<Map.Entry<String,BsonValue>>
BsonDocumentWrapper. entrySet()
Set<Map.Entry<String,BsonValue>>
RawBsonDocument. entrySet()
Map.Entry<String,BsonValue>
BsonDocumentReader.Context. getNextElement()
List<BsonValue>
BsonArray. getValues()
Gets the values in this array as a list ofBsonValue
objects.Iterator<BsonValue>
BsonArray. iterator()
ListIterator<BsonValue>
BsonArray. listIterator()
ListIterator<BsonValue>
BsonArray. listIterator(int index)
List<BsonValue>
BsonArray. subList(int fromIndex, int toIndex)
Collection<BsonValue>
BsonDocument. values()
Collection<BsonValue>
BsonDocumentWrapper. values()
Collection<BsonValue>
RawBsonDocument. values()
Methods in org.bson with parameters of type BsonValue Modifier and Type Method Description void
BsonArray. add(int index, BsonValue element)
boolean
BsonArray. add(BsonValue bsonValue)
void
RawBsonArray. add(int index, BsonValue element)
boolean
RawBsonArray. add(BsonValue bsonValue)
BsonDocument
BsonDocument. append(String key, BsonValue value)
Put the given key and value into this document, and return the document.BsonDocument
RawBsonDocument. append(String key, BsonValue value)
BsonValue
BsonDocument. get(Object key, BsonValue defaultValue)
If the document does not contain the given key, return the given default value.BsonValue
BsonDocument. put(String key, BsonValue value)
BsonValue
BsonDocumentWrapper. put(String key, BsonValue value)
BsonValue
RawBsonDocument. put(String key, BsonValue value)
BsonValue
BsonArray. set(int index, BsonValue element)
BsonValue
RawBsonArray. set(int index, BsonValue element)
Method parameters in org.bson with type arguments of type BsonValue Modifier and Type Method Description boolean
BsonArray. addAll(int index, Collection<? extends BsonValue> c)
boolean
BsonArray. addAll(Collection<? extends BsonValue> c)
boolean
RawBsonArray. addAll(int index, Collection<? extends BsonValue> c)
boolean
RawBsonArray. addAll(Collection<? extends BsonValue> c)
void
BsonDocument. putAll(Map<? extends String,? extends BsonValue> m)
void
BsonDocumentWrapper. putAll(Map<? extends String,? extends BsonValue> m)
void
RawBsonDocument. putAll(Map<? extends String,? extends BsonValue> m)
Constructors in org.bson with parameters of type BsonValue Constructor Description BsonDocument(String key, BsonValue value)
Construct a new instance with a single key value pairBsonElement(String name, BsonValue value)
Construct a new instance with the given key and valueConstructor parameters in org.bson with type arguments of type BsonValue Constructor Description BsonArray(List<? extends BsonValue> values)
Construct an instance with the given list of values. -
Uses of BsonValue in org.bson.codecs
Methods in org.bson.codecs that return BsonValue Modifier and Type Method Description BsonValue
BsonValueCodec. decode(BsonReader reader, DecoderContext decoderContext)
BsonValue
BsonDocumentCodec. getDocumentId(BsonDocument document)
BsonValue
CollectibleCodec. getDocumentId(T document)
Gets the _id of the given document if it contains one, otherwise throwsIllegalArgumentException
.BsonValue
DocumentCodec. getDocumentId(Document document)
protected BsonValue
BsonArrayCodec. readValue(BsonReader reader, DecoderContext decoderContext)
This method may be overridden to change the behavior of reading the current value from the givenBsonReader
.protected BsonValue
BsonDocumentCodec. readValue(BsonReader reader, DecoderContext decoderContext)
This method may be overridden to change the behavior of reading the current value from the givenBsonReader
.Methods in org.bson.codecs that return types with arguments of type BsonValue Modifier and Type Method Description static Class<? extends BsonValue>
BsonValueCodecProvider. getClassForBsonType(BsonType bsonType)
Get theBsonValue
subclass associated with the givenBsonType
.Class<BsonValue>
BsonValueCodec. getEncoderClass()
Methods in org.bson.codecs with parameters of type BsonValue Modifier and Type Method Description void
BsonValueCodec. encode(BsonWriter writer, BsonValue value, EncoderContext encoderContext)
-