Package | Description |
---|---|
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 |
---|---|
BsonTimestamp |
BsonValue.asTimestamp()
Gets this value as a Timestamp if it is one, otherwise throws exception
|
protected BsonTimestamp |
BsonBinaryReader.doReadTimestamp() |
protected abstract BsonTimestamp |
AbstractBsonReader.doReadTimestamp()
Handles the logic to read a timestamp
|
protected BsonTimestamp |
BsonDocumentReader.doReadTimestamp() |
BsonTimestamp |
BsonDocument.getTimestamp(Object key)
Gets the value of the key if it is a Timestamp, 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 |
BsonReader.readTimestamp()
Reads a BSON timestamp from the reader.
|
BsonTimestamp |
AbstractBsonReader.readTimestamp() |
BsonTimestamp |
BsonReader.readTimestamp(String name)
Reads a BSON timestamp element from the reader.
|
BsonTimestamp |
AbstractBsonReader.readTimestamp(String name) |
Modifier and Type | Method and Description |
---|---|
int |
BsonTimestamp.compareTo(BsonTimestamp ts) |
void |
BsonDocumentWriter.doWriteTimestamp(BsonTimestamp value) |
protected abstract void |
AbstractBsonWriter.doWriteTimestamp(BsonTimestamp value)
Handles the logic of writing a timestamp
|
void |
BsonBinaryWriter.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 |
BsonWriter.writeTimestamp(BsonTimestamp value)
Writes a BSON Timestamp to the writer.
|
void |
AbstractBsonWriter.writeTimestamp(BsonTimestamp value) |
void |
BsonWriter.writeTimestamp(String name,
BsonTimestamp value)
Writes a BSON Timestamp element to the writer.
|
void |
AbstractBsonWriter.writeTimestamp(String name,
BsonTimestamp value) |
Modifier and Type | Method and Description |
---|---|
BsonTimestamp |
BsonTimestampCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
Modifier and Type | Method and Description |
---|---|
Class<BsonTimestamp> |
BsonTimestampCodec.getEncoderClass() |
Modifier and Type | Method and Description |
---|---|
void |
BsonTimestampCodec.encode(BsonWriter writer,
BsonTimestamp value,
EncoderContext encoderContext) |
Modifier and Type | Method and Description |
---|---|
protected BsonTimestamp |
JsonReader.doReadTimestamp() |
Modifier and Type | Method and Description |
---|---|
void |
JsonWriter.doWriteTimestamp(BsonTimestamp value) |
Copyright © 2016. All Rights Reserved.