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.
|
Modifier and Type | Method and Description |
---|---|
BsonTimestamp |
BsonValue.asTimestamp()
Gets this value as a BsonTimestamp if it is one, otherwise throws exception
|
protected BsonTimestamp |
BsonDocumentReader.doReadTimestamp() |
protected BsonTimestamp |
BsonBinaryReader.doReadTimestamp() |
protected abstract BsonTimestamp |
AbstractBsonReader.doReadTimestamp()
Handles the logic to read a timestamp
|
BsonTimestamp |
BsonDocument.getTimestamp(java.lang.Object key)
Gets the value of the key if it is a BsonTimestamp, or throws if not.
|
BsonTimestamp |
BsonDocument.getTimestamp(java.lang.Object key,
BsonTimestamp defaultValue)
If the document does not contain the given key, return the given default value.
|
BsonTimestamp |
BsonReader.readTimestamp()
Reads a BSON timestamp from the reader.
|
BsonTimestamp |
AbstractBsonReader.readTimestamp() |
BsonTimestamp |
BsonReader.readTimestamp(java.lang.String name)
Reads a BSON timestamp element from the reader.
|
BsonTimestamp |
AbstractBsonReader.readTimestamp(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
int |
BsonTimestamp.compareTo(BsonTimestamp ts) |
void |
BSONCallbackAdapter.doWriteTimestamp(BsonTimestamp value) |
void |
BsonDocumentWriter.doWriteTimestamp(BsonTimestamp value) |
void |
BsonBinaryWriter.doWriteTimestamp(BsonTimestamp value) |
protected abstract void |
AbstractBsonWriter.doWriteTimestamp(BsonTimestamp value)
Handles the logic of writing a timestamp
|
BsonTimestamp |
BsonDocument.getTimestamp(java.lang.Object key,
BsonTimestamp defaultValue)
If the document does not contain the given key, return the given default value.
|
void |
BsonWriter.writeTimestamp(BsonTimestamp value)
Writes a BSON Timestamp to the writer.
|
void |
AbstractBsonWriter.writeTimestamp(BsonTimestamp value) |
void |
BsonWriter.writeTimestamp(java.lang.String name,
BsonTimestamp value)
Writes a BSON Timestamp element to the writer.
|
void |
AbstractBsonWriter.writeTimestamp(java.lang.String name,
BsonTimestamp value) |
Modifier and Type | Method and Description |
---|---|
BsonTimestamp |
BsonTimestampCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
Modifier and Type | Method and Description |
---|---|
java.lang.Class<BsonTimestamp> |
BsonTimestampCodec.getEncoderClass() |
Modifier and Type | Method and Description |
---|---|
void |
BsonTimestampCodec.encode(BsonWriter writer,
BsonTimestamp value,
EncoderContext encoderContext) |
Modifier and Type | Field and Description |
---|---|
private Converter<BsonTimestamp> |
JsonWriterSettings.timestampConverter |
private Converter<BsonTimestamp> |
JsonWriterSettings.Builder.timestampConverter |
Modifier and Type | Method and Description |
---|---|
protected BsonTimestamp |
JsonReader.doReadTimestamp() |
private BsonTimestamp |
JsonReader.visitTimestampConstructor() |
private BsonTimestamp |
JsonReader.visitTimestampExtendedJson() |
Modifier and Type | Method and Description |
---|---|
Converter<BsonTimestamp> |
JsonWriterSettings.getTimestampConverter()
A converter from BSON Timestamp values to JSON.
|
Modifier and Type | Method and Description |
---|---|
void |
ShellTimestampConverter.convert(BsonTimestamp value,
StrictJsonWriter writer) |
void |
ExtendedJsonTimestampConverter.convert(BsonTimestamp value,
StrictJsonWriter writer) |
void |
JsonWriter.doWriteTimestamp(BsonTimestamp value) |
Modifier and Type | Method and Description |
---|---|
JsonWriterSettings.Builder |
JsonWriterSettings.Builder.timestampConverter(Converter<BsonTimestamp> timestampConverter)
Sets the converter from BSON Timestamp values to JSON.
|