Uses of Class
org.bson.BsonTimestamp
-
Packages that use BsonTimestamp Package Description org.bson Contains the base BSON classes.org.bson.codecs This package contains all the default BSON codecs.org.bson.json JSON serialization and deserialization. -
-
Uses of BsonTimestamp in org.bson
Methods in org.bson that return BsonTimestamp Modifier and Type Method Description BsonTimestamp
BsonValue. asTimestamp()
Gets this value as a BsonTimestamp if it is one, otherwise throws exceptionprotected abstract BsonTimestamp
AbstractBsonReader. doReadTimestamp()
Handles the logic to read a timestampprotected BsonTimestamp
BsonBinaryReader. doReadTimestamp()
protected BsonTimestamp
BsonDocumentReader. doReadTimestamp()
BsonTimestamp
BsonDocument. getTimestamp(Object key)
Gets the value of the key if it is a BsonTimestamp, or throws if not.BsonTimestamp
BsonDocument. getTimestamp(Object key, BsonTimestamp defaultValue)
If the document does not contain the given key, return the given default value.BsonTimestamp
AbstractBsonReader. readTimestamp()
BsonTimestamp
AbstractBsonReader. readTimestamp(String name)
BsonTimestamp
BsonReader. readTimestamp()
Reads a BSON timestamp from the reader.BsonTimestamp
BsonReader. readTimestamp(String name)
Reads a BSON timestamp element from the reader.Methods in org.bson with parameters of type BsonTimestamp Modifier and Type Method Description int
BsonTimestamp. compareTo(BsonTimestamp ts)
protected abstract void
AbstractBsonWriter. doWriteTimestamp(BsonTimestamp value)
Handles the logic of writing a timestampvoid
BsonBinaryWriter. doWriteTimestamp(BsonTimestamp value)
void
BsonDocumentWriter. doWriteTimestamp(BsonTimestamp value)
BsonTimestamp
BsonDocument. getTimestamp(Object key, BsonTimestamp defaultValue)
If the document does not contain the given key, return the given default value.void
AbstractBsonWriter. writeTimestamp(String name, BsonTimestamp value)
void
AbstractBsonWriter. writeTimestamp(BsonTimestamp value)
void
BsonWriter. writeTimestamp(String name, BsonTimestamp value)
Writes a BSON Timestamp element to the writer.void
BsonWriter. writeTimestamp(BsonTimestamp value)
Writes a BSON Timestamp to the writer. -
Uses of BsonTimestamp in org.bson.codecs
Methods in org.bson.codecs that return BsonTimestamp Modifier and Type Method Description BsonTimestamp
BsonTimestampCodec. decode(BsonReader reader, DecoderContext decoderContext)
Methods in org.bson.codecs that return types with arguments of type BsonTimestamp Modifier and Type Method Description Class<BsonTimestamp>
BsonTimestampCodec. getEncoderClass()
Methods in org.bson.codecs with parameters of type BsonTimestamp Modifier and Type Method Description void
BsonTimestampCodec. encode(BsonWriter writer, BsonTimestamp value, EncoderContext encoderContext)
-
Uses of BsonTimestamp in org.bson.json
Methods in org.bson.json that return BsonTimestamp Modifier and Type Method Description protected BsonTimestamp
JsonReader. doReadTimestamp()
Methods in org.bson.json that return types with arguments of type BsonTimestamp Modifier and Type Method Description Converter<BsonTimestamp>
JsonWriterSettings. getTimestampConverter()
A converter from BSON Timestamp values to JSON.Methods in org.bson.json with parameters of type BsonTimestamp Modifier and Type Method Description void
JsonWriter. doWriteTimestamp(BsonTimestamp value)
Method parameters in org.bson.json with type arguments of type BsonTimestamp Modifier and Type Method Description JsonWriterSettings.Builder
JsonWriterSettings.Builder. timestampConverter(Converter<BsonTimestamp> timestampConverter)
Sets the converter from BSON Timestamp values to JSON.
-