Package | Description |
---|---|
org.bson |
Contains the base BSON classes.
|
org.bson.codecs |
This package contains all the default BSON codecs.
|
org.bson.io |
Contains classes implementing I/O operations used by BSON objects.
|
org.bson.json |
JSON serialization and deserialization.
|
org.bson.types |
Contains classes implementing various BSON types.
|
Modifier and Type | Method and Description |
---|---|
protected ObjectId |
BsonBinaryReader.doReadObjectId() |
protected ObjectId |
BsonDocumentReader.doReadObjectId() |
protected abstract ObjectId |
AbstractBsonReader.doReadObjectId()
Handles the logic to read an ObjectId
|
ObjectId |
BsonDbPointer.getId()
Gets the id.
|
ObjectId |
Document.getObjectId(Object key)
Gets the value of the given key as an ObjectId.
|
ObjectId |
BsonObjectId.getValue()
Get the
ObjectId value. |
ObjectId |
BsonReader.readObjectId()
Reads a BSON ObjectId from the reader.
|
ObjectId |
AbstractBsonReader.readObjectId() |
ObjectId |
BsonReader.readObjectId(String name)
Reads a BSON ObjectId element from the reader.
|
ObjectId |
AbstractBsonReader.readObjectId(String name) |
Modifier and Type | Method and Description |
---|---|
void |
BsonDocumentWriter.doWriteObjectId(ObjectId value) |
void |
BsonBinaryWriter.doWriteObjectId(ObjectId value) |
protected abstract void |
AbstractBsonWriter.doWriteObjectId(ObjectId value)
Handles the logic of writing an ObjectId
|
void |
BsonWriter.writeObjectId(ObjectId objectId)
Writes a BSON ObjectId to the writer.
|
void |
AbstractBsonWriter.writeObjectId(ObjectId objectId) |
void |
BsonWriter.writeObjectId(String name,
ObjectId objectId)
Writes a BSON ObjectId element to the writer.
|
void |
AbstractBsonWriter.writeObjectId(String name,
ObjectId objectId) |
Constructor and Description |
---|
BsonDbPointer(String namespace,
ObjectId id)
Construct a new instance with the given namespace and id.
|
BsonObjectId(ObjectId value)
Construct a new instance with the given
ObjectId instance. |
Modifier and Type | Method and Description |
---|---|
ObjectId |
ObjectIdCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
Modifier and Type | Method and Description |
---|---|
Class<ObjectId> |
ObjectIdCodec.getEncoderClass() |
Modifier and Type | Method and Description |
---|---|
void |
ObjectIdCodec.encode(BsonWriter writer,
ObjectId value,
EncoderContext encoderContext) |
Modifier and Type | Method and Description |
---|---|
ObjectId |
BsonInput.readObjectId()
Reads a BSON ObjectId value from the stream.
|
ObjectId |
ByteBufferBsonInput.readObjectId() |
Modifier and Type | Method and Description |
---|---|
void |
BsonOutput.writeObjectId(ObjectId value)
Writes a BSON ObjectId to the stream.
|
void |
OutputBuffer.writeObjectId(ObjectId value) |
Modifier and Type | Method and Description |
---|---|
protected ObjectId |
JsonReader.doReadObjectId() |
Modifier and Type | Method and Description |
---|---|
Converter<ObjectId> |
JsonWriterSettings.getObjectIdConverter()
A converter from BSON ObjectId values to JSON.
|
Modifier and Type | Method and Description |
---|---|
void |
JsonWriter.doWriteObjectId(ObjectId objectId) |
Modifier and Type | Method and Description |
---|---|
JsonWriterSettings.Builder |
JsonWriterSettings.Builder.objectIdConverter(Converter<ObjectId> objectIdConverter)
Sets the converter from BSON ObjectId values to JSON.
|
Modifier and Type | Method and Description |
---|---|
static ObjectId |
ObjectId.createFromLegacyFormat(int time,
int machine,
int inc)
Creates an ObjectId using time, machine and inc values.
|
static ObjectId |
ObjectId.get()
Gets a new object id.
|
Modifier and Type | Method and Description |
---|---|
int |
ObjectId.compareTo(ObjectId other) |
Copyright © 2018. All rights reserved.