Package | Description |
---|---|
com.mongodb |
The core mongodb package
|
com.mongodb.async.client |
This packages contains classes for the new async client
|
com.mongodb.async.client.gridfs |
Contains the classes for supporting MongoDB's specification for storing very large files, GridFS.
|
com.mongodb.bulk |
Contains classes for representing the result of a bulk write operation.
|
com.mongodb.client.gridfs |
This package contains the new GridFS implementation
|
com.mongodb.client.gridfs.model |
This package contains models for use with GridFS
|
com.mongodb.client.model |
This package contains models and options that help describe MongoCollection operations
|
com.mongodb.client.result |
This package contains classes representing operation results
|
com.mongodb.connection |
Contains classes that manage connecting to MongoDB servers.
|
com.mongodb.operation |
The core of the MongoDB driver works via operations, using the command pattern.
|
org.bson |
Contains the base BSON classes.
|
org.bson.codecs |
This package contains all the default BSON codecs.
|
Modifier and Type | Method and Description |
---|---|
BsonValue |
DBObjectCodec.getDocumentId(DBObject document) |
private BsonValue |
AggregateIterableImpl.getOutCollection(java.util.List<BsonDocument> aggregateList) |
abstract BsonValue |
WriteConcernResult.getUpsertedId()
Returns the value of _id if this write resulted in an upsert.
|
Modifier and Type | Method and Description |
---|---|
static WriteConcernResult |
WriteConcernResult.acknowledged(int count,
boolean isUpdateOfExisting,
BsonValue upsertedId)
Create an acknowledged WriteConcernResult
|
private WriteResult |
DBCollection.translateWriteResult(int count,
boolean isUpdateOfExisting,
BsonValue upsertedId) |
Modifier and Type | Method and Description |
---|---|
private BsonValue |
AggregateIterableImpl.getOutCollection(java.util.List<BsonDocument> aggregateList) |
Modifier and Type | Field and Description |
---|---|
private BsonValue |
GridFSUploadStreamImpl.fileId |
Modifier and Type | Method and Description |
---|---|
BsonValue |
GridFSUploadStreamImpl.getId() |
BsonValue |
GridFSUploadStream.getId()
The
BsonValue id for this file. |
Modifier and Type | Method and Description |
---|---|
private GridFSUploadStream |
GridFSBucketImpl.createGridFSUploadStream(ClientSession clientSession,
BsonValue id,
java.lang.String filename,
GridFSUploadOptions options) |
void |
GridFSBucketImpl.delete(BsonValue id,
SingleResultCallback<java.lang.Void> callback) |
void |
GridFSBucket.delete(BsonValue id,
SingleResultCallback<java.lang.Void> callback)
Given a
id , delete this stored file's files collection document and associated chunks from a GridFS bucket. |
void |
GridFSBucketImpl.delete(ClientSession clientSession,
BsonValue id,
SingleResultCallback<java.lang.Void> callback) |
void |
GridFSBucket.delete(ClientSession clientSession,
BsonValue id,
SingleResultCallback<java.lang.Void> callback)
Given a
id , delete this stored file's files collection document and associated chunks from a GridFS bucket. |
void |
GridFSBucketImpl.downloadToStream(BsonValue id,
AsyncOutputStream destination,
SingleResultCallback<java.lang.Long> callback) |
void |
GridFSBucket.downloadToStream(BsonValue id,
AsyncOutputStream destination,
SingleResultCallback<java.lang.Long> callback)
Downloads the contents of the stored file specified by
id and writes the contents to the destination
AsyncOutputStream. |
void |
GridFSBucketImpl.downloadToStream(ClientSession clientSession,
BsonValue id,
AsyncOutputStream destination,
SingleResultCallback<java.lang.Long> callback) |
void |
GridFSBucket.downloadToStream(ClientSession clientSession,
BsonValue id,
AsyncOutputStream destination,
SingleResultCallback<java.lang.Long> callback)
Downloads the contents of the stored file specified by
id and writes the contents to the destination
AsyncOutputStream. |
private void |
GridFSBucketImpl.executeDelete(ClientSession clientSession,
BsonValue id,
SingleResultCallback<java.lang.Void> callback) |
private void |
GridFSBucketImpl.executeRename(ClientSession clientSession,
BsonValue id,
java.lang.String newFilename,
SingleResultCallback<java.lang.Void> callback) |
private void |
GridFSBucketImpl.executeUploadFromStream(ClientSession clientSession,
BsonValue id,
java.lang.String filename,
AsyncInputStream source,
GridFSUploadOptions options,
SingleResultCallback<java.lang.Void> callback) |
GridFSDownloadStream |
GridFSBucketImpl.openDownloadStream(BsonValue id) |
GridFSDownloadStream |
GridFSBucket.openDownloadStream(BsonValue id)
Opens a AsyncInputStream from which the application can read the contents of the stored file specified by
id . |
GridFSDownloadStream |
GridFSBucketImpl.openDownloadStream(ClientSession clientSession,
BsonValue id) |
GridFSDownloadStream |
GridFSBucket.openDownloadStream(ClientSession clientSession,
BsonValue id)
Opens a AsyncInputStream from which the application can read the contents of the stored file specified by
id . |
GridFSUploadStream |
GridFSBucketImpl.openUploadStream(BsonValue id,
java.lang.String filename) |
GridFSUploadStream |
GridFSBucket.openUploadStream(BsonValue id,
java.lang.String filename)
Opens a AsyncOutputStream that the application can write the contents of the file to.
|
GridFSUploadStream |
GridFSBucketImpl.openUploadStream(BsonValue id,
java.lang.String filename,
GridFSUploadOptions options) |
GridFSUploadStream |
GridFSBucket.openUploadStream(BsonValue id,
java.lang.String filename,
GridFSUploadOptions options)
Opens a AsyncOutputStream that the application can write the contents of the file to.
|
GridFSUploadStream |
GridFSBucketImpl.openUploadStream(ClientSession clientSession,
BsonValue id,
java.lang.String filename) |
GridFSUploadStream |
GridFSBucket.openUploadStream(ClientSession clientSession,
BsonValue id,
java.lang.String filename)
Opens a AsyncOutputStream that the application can write the contents of the file to.
|
GridFSUploadStream |
GridFSBucketImpl.openUploadStream(ClientSession clientSession,
BsonValue id,
java.lang.String filename,
GridFSUploadOptions options) |
GridFSUploadStream |
GridFSBucket.openUploadStream(ClientSession clientSession,
BsonValue id,
java.lang.String filename,
GridFSUploadOptions options)
Opens a AsyncOutputStream that the application can write the contents of the file to.
|
void |
GridFSBucketImpl.rename(BsonValue id,
java.lang.String newFilename,
SingleResultCallback<java.lang.Void> callback) |
void |
GridFSBucket.rename(BsonValue id,
java.lang.String newFilename,
SingleResultCallback<java.lang.Void> callback)
Renames the stored file with the specified
id . |
void |
GridFSBucketImpl.rename(ClientSession clientSession,
BsonValue id,
java.lang.String newFilename,
SingleResultCallback<java.lang.Void> callback) |
void |
GridFSBucket.rename(ClientSession clientSession,
BsonValue id,
java.lang.String newFilename,
SingleResultCallback<java.lang.Void> callback)
Renames the stored file with the specified
id . |
void |
GridFSBucketImpl.uploadFromStream(BsonValue id,
java.lang.String filename,
AsyncInputStream source,
GridFSUploadOptions options,
SingleResultCallback<java.lang.Void> callback) |
void |
GridFSBucket.uploadFromStream(BsonValue id,
java.lang.String filename,
AsyncInputStream source,
GridFSUploadOptions options,
SingleResultCallback<java.lang.Void> callback)
Uploads the contents of the given
AsyncInputStream to a GridFS bucket. |
void |
GridFSBucketImpl.uploadFromStream(BsonValue id,
java.lang.String filename,
AsyncInputStream source,
SingleResultCallback<java.lang.Void> callback) |
void |
GridFSBucket.uploadFromStream(BsonValue id,
java.lang.String filename,
AsyncInputStream source,
SingleResultCallback<java.lang.Void> callback)
Uploads the contents of the given
AsyncInputStream to a GridFS bucket. |
void |
GridFSBucketImpl.uploadFromStream(ClientSession clientSession,
BsonValue id,
java.lang.String filename,
AsyncInputStream source,
GridFSUploadOptions options,
SingleResultCallback<java.lang.Void> callback) |
void |
GridFSBucket.uploadFromStream(ClientSession clientSession,
BsonValue id,
java.lang.String filename,
AsyncInputStream source,
GridFSUploadOptions options,
SingleResultCallback<java.lang.Void> callback)
Uploads the contents of the given
AsyncInputStream to a GridFS bucket. |
void |
GridFSBucketImpl.uploadFromStream(ClientSession clientSession,
BsonValue id,
java.lang.String filename,
AsyncInputStream source,
SingleResultCallback<java.lang.Void> callback) |
void |
GridFSBucket.uploadFromStream(ClientSession clientSession,
BsonValue id,
java.lang.String filename,
AsyncInputStream source,
SingleResultCallback<java.lang.Void> callback)
Uploads the contents of the given
AsyncInputStream to a GridFS bucket. |
Constructor and Description |
---|
GridFSUploadStreamImpl(ClientSession clientSession,
MongoCollection<GridFSFile> filesCollection,
MongoCollection<Document> chunksCollection,
BsonValue fileId,
java.lang.String filename,
int chunkSizeBytes,
Document metadata,
GridFSIndexCheck indexCheck) |
Modifier and Type | Field and Description |
---|---|
private BsonValue |
BulkWriteUpsert.id |
Modifier and Type | Method and Description |
---|---|
BsonValue |
BulkWriteUpsert.getId()
Gets the id of the upserted item.
|
Constructor and Description |
---|
BulkWriteUpsert(int index,
BsonValue id)
Construct an instance.
|
Modifier and Type | Field and Description |
---|---|
private BsonValue |
GridFSUploadStreamImpl.fileId |
private BsonValue |
GridFSDownloadStreamImpl.fileId |
Modifier and Type | Method and Description |
---|---|
BsonValue |
GridFSUploadStreamImpl.getId() |
abstract BsonValue |
GridFSUploadStream.getId()
Gets the
BsonValue for the file to be uploaded |
Modifier and Type | Method and Description |
---|---|
private GridFSUploadStream |
GridFSBucketImpl.createGridFSUploadStream(ClientSession clientSession,
BsonValue id,
java.lang.String filename,
GridFSUploadOptions options) |
void |
GridFSBucketImpl.delete(BsonValue id) |
void |
GridFSBucket.delete(BsonValue id)
Given a
id , delete this stored file's files collection document and associated chunks from a GridFS bucket. |
void |
GridFSBucketImpl.delete(ClientSession clientSession,
BsonValue id) |
void |
GridFSBucket.delete(ClientSession clientSession,
BsonValue id)
Given a
id , delete this stored file's files collection document and associated chunks from a GridFS bucket. |
void |
GridFSBucketImpl.downloadToStream(BsonValue id,
java.io.OutputStream destination) |
void |
GridFSBucket.downloadToStream(BsonValue id,
java.io.OutputStream destination)
Downloads the contents of the stored file specified by
id and writes the contents to the destination Stream. |
void |
GridFSBucketImpl.downloadToStream(ClientSession clientSession,
BsonValue id,
java.io.OutputStream destination) |
void |
GridFSBucket.downloadToStream(ClientSession clientSession,
BsonValue id,
java.io.OutputStream destination)
Downloads the contents of the stored file specified by
id and writes the contents to the destination Stream. |
private void |
GridFSBucketImpl.executeDelete(ClientSession clientSession,
BsonValue id) |
private void |
GridFSBucketImpl.executeRename(ClientSession clientSession,
BsonValue id,
java.lang.String newFilename) |
private void |
GridFSBucketImpl.executeUploadFromStream(ClientSession clientSession,
BsonValue id,
java.lang.String filename,
java.io.InputStream source,
GridFSUploadOptions options) |
private GridFSFile |
GridFSBucketImpl.getFileInfoById(ClientSession clientSession,
BsonValue id) |
GridFSDownloadStream |
GridFSBucketImpl.openDownloadStream(BsonValue id) |
GridFSDownloadStream |
GridFSBucket.openDownloadStream(BsonValue id)
Opens a Stream from which the application can read the contents of the stored file specified by
id . |
GridFSDownloadStream |
GridFSBucketImpl.openDownloadStream(ClientSession clientSession,
BsonValue id) |
GridFSDownloadStream |
GridFSBucket.openDownloadStream(ClientSession clientSession,
BsonValue id)
Opens a Stream from which the application can read the contents of the stored file specified by
id . |
GridFSUploadStream |
GridFSBucketImpl.openUploadStream(BsonValue id,
java.lang.String filename) |
GridFSUploadStream |
GridFSBucket.openUploadStream(BsonValue id,
java.lang.String filename)
Opens a Stream that the application can write the contents of the file to.
|
GridFSUploadStream |
GridFSBucketImpl.openUploadStream(BsonValue id,
java.lang.String filename,
GridFSUploadOptions options) |
GridFSUploadStream |
GridFSBucket.openUploadStream(BsonValue id,
java.lang.String filename,
GridFSUploadOptions options)
Opens a Stream that the application can write the contents of the file to.
|
GridFSUploadStream |
GridFSBucketImpl.openUploadStream(ClientSession clientSession,
BsonValue id,
java.lang.String filename) |
GridFSUploadStream |
GridFSBucket.openUploadStream(ClientSession clientSession,
BsonValue id,
java.lang.String filename)
Opens a Stream that the application can write the contents of the file to.
|
GridFSUploadStream |
GridFSBucketImpl.openUploadStream(ClientSession clientSession,
BsonValue id,
java.lang.String filename,
GridFSUploadOptions options) |
GridFSUploadStream |
GridFSBucket.openUploadStream(ClientSession clientSession,
BsonValue id,
java.lang.String filename,
GridFSUploadOptions options)
Opens a Stream that the application can write the contents of the file to.
|
void |
GridFSBucketImpl.rename(BsonValue id,
java.lang.String newFilename) |
void |
GridFSBucket.rename(BsonValue id,
java.lang.String newFilename)
Renames the stored file with the specified
id . |
void |
GridFSBucketImpl.rename(ClientSession clientSession,
BsonValue id,
java.lang.String newFilename) |
void |
GridFSBucket.rename(ClientSession clientSession,
BsonValue id,
java.lang.String newFilename)
Renames the stored file with the specified
id . |
void |
GridFSBucketImpl.uploadFromStream(BsonValue id,
java.lang.String filename,
java.io.InputStream source) |
void |
GridFSBucket.uploadFromStream(BsonValue id,
java.lang.String filename,
java.io.InputStream source)
Uploads the contents of the given
InputStream to a GridFS bucket. |
void |
GridFSBucketImpl.uploadFromStream(BsonValue id,
java.lang.String filename,
java.io.InputStream source,
GridFSUploadOptions options) |
void |
GridFSBucket.uploadFromStream(BsonValue id,
java.lang.String filename,
java.io.InputStream source,
GridFSUploadOptions options)
Uploads the contents of the given
InputStream to a GridFS bucket. |
void |
GridFSBucketImpl.uploadFromStream(ClientSession clientSession,
BsonValue id,
java.lang.String filename,
java.io.InputStream source) |
void |
GridFSBucket.uploadFromStream(ClientSession clientSession,
BsonValue id,
java.lang.String filename,
java.io.InputStream source)
Uploads the contents of the given
InputStream to a GridFS bucket. |
void |
GridFSBucketImpl.uploadFromStream(ClientSession clientSession,
BsonValue id,
java.lang.String filename,
java.io.InputStream source,
GridFSUploadOptions options) |
void |
GridFSBucket.uploadFromStream(ClientSession clientSession,
BsonValue id,
java.lang.String filename,
java.io.InputStream source,
GridFSUploadOptions options)
Uploads the contents of the given
InputStream to a GridFS bucket. |
Constructor and Description |
---|
GridFSUploadStreamImpl(ClientSession clientSession,
MongoCollection<GridFSFile> filesCollection,
MongoCollection<Document> chunksCollection,
BsonValue fileId,
java.lang.String filename,
int chunkSizeBytes,
Document metadata) |
Modifier and Type | Field and Description |
---|---|
private BsonValue |
GridFSFile.id |
Modifier and Type | Method and Description |
---|---|
BsonValue |
GridFSFile.getId()
The
BsonValue id for this file. |
Constructor and Description |
---|
GridFSFile(BsonValue id,
java.lang.String filename,
long length,
int chunkSize,
java.util.Date uploadDate,
java.lang.String md5,
Document metadata)
Creates a new GridFSFile
|
GridFSFile(BsonValue id,
java.lang.String filename,
long length,
int chunkSize,
java.util.Date uploadDate,
java.lang.String md5,
Document metadata,
Document extraElements)
Creates a legacy implementation of the GridFSFile
|
Modifier and Type | Field and Description |
---|---|
private BsonValue |
Filters.SimpleFilter.value |
Modifier and Type | Method and Description |
---|---|
private static Bson |
Projections.combine(java.util.List<java.lang.String> fieldNames,
BsonValue value) |
private static Bson |
Indexes.compoundIndex(java.util.List<java.lang.String> fieldNames,
BsonValue value) |
private static Bson |
Updates.createBitUpdateDocument(java.lang.String fieldName,
java.lang.String bitwiseOperator,
BsonValue value) |
private BsonDocument |
Filters.NotFilter.createFilter(java.lang.String fieldName,
BsonValue value) |
private static Bson |
Sorts.orderBy(java.util.List<java.lang.String> fieldNames,
BsonValue value) |
Modifier and Type | Method and Description |
---|---|
private void |
Filters.AndFilter.addClause(BsonDocument document,
java.util.Map.Entry<java.lang.String,BsonValue> clause) |
private void |
Filters.AndFilter.promoteRenderableToDollarForm(BsonDocument document,
java.util.Map.Entry<java.lang.String,BsonValue> clause) |
Constructor and Description |
---|
SimpleFilter(java.lang.String fieldName,
BsonValue value) |
Modifier and Type | Field and Description |
---|---|
private BsonValue |
UpdateResult.AcknowledgedUpdateResult.upsertedId |
Modifier and Type | Method and Description |
---|---|
abstract BsonValue |
UpdateResult.getUpsertedId()
If the replace resulted in an inserted document, gets the _id of the inserted document, otherwise null.
|
BsonValue |
UpdateResult.AcknowledgedUpdateResult.getUpsertedId() |
BsonValue |
UpdateResult.UnacknowledgedUpdateResult.getUpsertedId() |
Modifier and Type | Method and Description |
---|---|
static UpdateResult |
UpdateResult.acknowledged(long matchedCount,
java.lang.Long modifiedCount,
BsonValue upsertedId)
Create an acknowledged UpdateResult
|
Constructor and Description |
---|
AcknowledgedUpdateResult(long matchedCount,
java.lang.Long modifiedCount,
BsonValue upsertedId) |
Modifier and Type | Class and Description |
---|---|
(package private) class |
AbstractByteBufBsonDocument |
(package private) class |
ByteBufBsonDocument |
Modifier and Type | Method and Description |
---|---|
private BsonValue |
AbstractByteBufBsonDocument.deserializeBsonValue(BsonReader bsonReader) |
BsonValue |
AbstractByteBufBsonDocument.get(java.lang.Object key) |
private static BsonValue |
ProtocolHelper.getField(BsonReader bsonReader,
java.lang.String fieldName) |
BsonValue |
AbstractByteBufBsonDocument.put(java.lang.String key,
BsonValue value) |
BsonValue |
AbstractByteBufBsonDocument.remove(java.lang.Object key) |
Modifier and Type | Method and Description |
---|---|
java.util.Set<java.util.Map.Entry<java.lang.String,BsonValue>> |
AbstractByteBufBsonDocument.entrySet() |
private static Codec<BsonValue> |
BsonWriterHelper.getCodec(BsonValue bsonValue) |
java.util.Collection<BsonValue> |
AbstractByteBufBsonDocument.values() |
Modifier and Type | Method and Description |
---|---|
BsonDocument |
AbstractByteBufBsonDocument.append(java.lang.String key,
BsonValue value) |
private static Codec<BsonValue> |
BsonWriterHelper.getCodec(BsonValue bsonValue) |
private static boolean |
ProtocolHelper.isCommandOk(BsonValue okValue) |
BsonValue |
AbstractByteBufBsonDocument.put(java.lang.String key,
BsonValue value) |
Modifier and Type | Method and Description |
---|---|
void |
AbstractByteBufBsonDocument.putAll(java.util.Map<? extends java.lang.String,? extends BsonValue> m) |
Modifier and Type | Class and Description |
---|---|
(package private) class |
BsonArrayWrapper<T> |
Modifier and Type | Field and Description |
---|---|
private BsonValue |
CountOperation.hint |
Modifier and Type | Method and Description |
---|---|
private <T extends BsonValue> |
CommandResultCodecProvider.addCodec(Codec<T> codec) |
Modifier and Type | Method and Description |
---|---|
private static BsonValue |
MapReduceToCollectionOperation.asValueOrNull(BsonValue value) |
private static BsonValue |
MapReduceWithInlineResultsOperation.asValueOrNull(BsonValue value) |
BsonValue |
BsonArrayWrapper.get(int index) |
BsonValue |
CountOperation.getHint()
Gets the hint to apply.
|
protected BsonValue |
CommandResultArrayCodec.readValue(BsonReader reader,
DecoderContext decoderContext) |
protected BsonValue |
CommandResultDocumentCodec.readValue(BsonReader reader,
DecoderContext decoderContext) |
BsonValue |
BsonArrayWrapper.remove(int index) |
BsonValue |
BsonArrayWrapper.set(int index,
BsonValue element) |
Modifier and Type | Method and Description |
---|---|
java.util.List<BsonValue> |
BsonArrayWrapper.getValues() |
java.util.Iterator<BsonValue> |
BsonArrayWrapper.iterator() |
java.util.ListIterator<BsonValue> |
BsonArrayWrapper.listIterator() |
java.util.ListIterator<BsonValue> |
BsonArrayWrapper.listIterator(int index) |
java.util.List<BsonValue> |
BsonArrayWrapper.subList(int fromIndex,
int toIndex) |
Modifier and Type | Method and Description |
---|---|
boolean |
BsonArrayWrapper.add(BsonValue bsonValue) |
void |
BsonArrayWrapper.add(int index,
BsonValue element) |
private static BsonValue |
MapReduceToCollectionOperation.asValueOrNull(BsonValue value) |
private static BsonValue |
MapReduceWithInlineResultsOperation.asValueOrNull(BsonValue value) |
CountOperation |
CountOperation.hint(BsonValue hint)
Sets the hint to apply.
|
(package private) static void |
DocumentHelper.putIfNotNull(BsonDocument command,
java.lang.String key,
BsonValue value) |
BsonValue |
BsonArrayWrapper.set(int index,
BsonValue element) |
Modifier and Type | Method and Description |
---|---|
boolean |
BsonArrayWrapper.addAll(java.util.Collection<? extends BsonValue> c) |
boolean |
BsonArrayWrapper.addAll(int index,
java.util.Collection<? extends BsonValue> c) |
Modifier and Type | Class and 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>
A
BsonDocument that begins its life as a document of any type and an Encoder 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 type
|
class |
BsonMinKey
Represent the minimum key value regardless of the key's type
|
class |
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 Ruby
|
class |
BsonTimestamp
A value representing the BSON timestamp type.
|
class |
BsonUndefined
Represents the value associated with the BSON Undefined type.
|
class |
RawBsonDocument
An immutable BSON document that is represented using only the raw bytes.
|
Modifier and Type | Field and Description |
---|---|
private BsonValue |
BsonDocumentWriter.Context.container |
private BsonValue |
BsonDocumentReader.currentValue |
private BsonValue |
BsonDocumentReader.Mark.currentValue |
private BsonValue |
BsonElement.value |
Modifier and Type | Field and Description |
---|---|
private BsonDocumentReader.BsonDocumentMarkableIterator<BsonValue> |
BsonDocumentReader.Context.arrayIterator |
private BsonDocumentReader.BsonDocumentMarkableIterator<java.util.Map.Entry<java.lang.String,BsonValue>> |
BsonDocumentReader.Context.documentIterator |
private java.util.Map<java.lang.String,BsonValue> |
BsonDocument.map |
private java.util.List<BsonValue> |
BsonArray.values |
Modifier and Type | Method and Description |
---|---|
private BsonValue |
RawBsonDocument.deserializeBsonValue(BsonBinaryReader bsonReader) |
BsonValue |
BsonArray.get(int index) |
BsonValue |
BsonDocumentWrapper.get(java.lang.Object key) |
BsonValue |
BsonDocument.get(java.lang.Object key) |
BsonValue |
RawBsonDocument.get(java.lang.Object key) |
BsonValue |
BsonDocument.get(java.lang.Object key,
BsonValue defaultValue)
If the document does not contain the given key, return the given default value.
|
BsonValue |
BsonDocumentReader.Context.getNextValue() |
BsonValue |
BsonElement.getValue()
Gets the value of this element.
|
BsonValue |
BsonDocumentWrapper.put(java.lang.String key,
BsonValue value) |
BsonValue |
BsonDocument.put(java.lang.String key,
BsonValue value) |
BsonValue |
RawBsonDocument.put(java.lang.String key,
BsonValue value) |
BsonValue |
BsonArray.remove(int index) |
BsonValue |
BsonDocumentWrapper.remove(java.lang.Object key) |
BsonValue |
BsonDocument.remove(java.lang.Object key) |
BsonValue |
RawBsonDocument.remove(java.lang.Object key) |
BsonValue |
BsonArray.set(int index,
BsonValue element) |
Modifier and Type | Method and Description |
---|---|
java.util.Set<java.util.Map.Entry<java.lang.String,BsonValue>> |
BsonDocumentWrapper.entrySet() |
java.util.Set<java.util.Map.Entry<java.lang.String,BsonValue>> |
BsonDocument.entrySet() |
java.util.Set<java.util.Map.Entry<java.lang.String,BsonValue>> |
RawBsonDocument.entrySet() |
java.util.Map.Entry<java.lang.String,BsonValue> |
BsonDocumentReader.Context.getNextElement() |
java.util.List<BsonValue> |
BsonArray.getValues()
Gets the values in this array as a list of
BsonValue objects. |
java.util.Iterator<BsonValue> |
BsonArray.iterator() |
java.util.ListIterator<BsonValue> |
BsonArray.listIterator() |
java.util.ListIterator<BsonValue> |
BsonArray.listIterator(int index) |
java.util.List<BsonValue> |
BsonArray.subList(int fromIndex,
int toIndex) |
java.util.Collection<BsonValue> |
BsonDocumentWrapper.values() |
java.util.Collection<BsonValue> |
BsonDocument.values() |
java.util.Collection<BsonValue> |
RawBsonDocument.values() |
Modifier and Type | Method and Description |
---|---|
boolean |
BsonArray.add(BsonValue bsonValue) |
(package private) void |
BsonDocumentWriter.Context.add(BsonValue value) |
void |
BsonArray.add(int index,
BsonValue element) |
BsonDocument |
BsonDocument.append(java.lang.String key,
BsonValue value)
Put the given key and value into this document, and return the document.
|
BsonDocument |
RawBsonDocument.append(java.lang.String key,
BsonValue value) |
BsonValue |
BsonDocument.get(java.lang.Object key,
BsonValue defaultValue)
If the document does not contain the given key, return the given default value.
|
private void |
AbstractBsonWriter.pipeValue(BsonValue value) |
BsonValue |
BsonDocumentWrapper.put(java.lang.String key,
BsonValue value) |
BsonValue |
BsonDocument.put(java.lang.String key,
BsonValue value) |
BsonValue |
RawBsonDocument.put(java.lang.String key,
BsonValue value) |
BsonValue |
BsonArray.set(int index,
BsonValue element) |
private void |
BsonDocumentWriter.write(BsonValue value) |
Modifier and Type | Method and Description |
---|---|
boolean |
BsonArray.addAll(java.util.Collection<? extends BsonValue> c) |
boolean |
BsonArray.addAll(int index,
java.util.Collection<? extends BsonValue> c) |
void |
BsonDocumentWrapper.putAll(java.util.Map<? extends java.lang.String,? extends BsonValue> m) |
void |
BsonDocument.putAll(java.util.Map<? extends java.lang.String,? extends BsonValue> m) |
void |
RawBsonDocument.putAll(java.util.Map<? extends java.lang.String,? extends BsonValue> m) |
Constructor and Description |
---|
BsonDocument(java.lang.String key,
BsonValue value)
Construct a new instance with a single key value pair
|
BsonElement(java.lang.String name,
BsonValue value)
Construct a new instance with the given key and value
|
Context(BsonValue container,
BsonContextType contextType,
BsonDocumentWriter.Context parent) |
Constructor and Description |
---|
BsonArray(java.util.List<? extends BsonValue> values)
Construct an instance with the given list of values.
|
Modifier and Type | Method and Description |
---|---|
private <T extends BsonValue> |
BsonValueCodecProvider.addCodec(Codec<T> codec) |
Modifier and Type | Method and Description |
---|---|
BsonValue |
BsonValueCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
BsonValue |
BsonDocumentCodec.getDocumentId(BsonDocument document) |
BsonValue |
DocumentCodec.getDocumentId(Document document) |
BsonValue |
CollectibleCodec.getDocumentId(T document)
Gets the _id of the given document if it contains one, otherwise throws
IllegalArgumentException . |
protected BsonValue |
BsonDocumentCodec.readValue(BsonReader reader,
DecoderContext decoderContext)
This method may be overridden to change the behavior of reading the current value from the given
BsonReader . |
protected BsonValue |
BsonArrayCodec.readValue(BsonReader reader,
DecoderContext decoderContext)
This method may be overridden to change the behavior of reading the current value from the given
BsonReader . |
Modifier and Type | Method and Description |
---|---|
static java.lang.Class<? extends BsonValue> |
BsonValueCodecProvider.getClassForBsonType(BsonType bsonType)
Get the
BsonValue subclass associated with the given BsonType . |
java.lang.Class<BsonValue> |
BsonValueCodec.getEncoderClass() |
Modifier and Type | Method and Description |
---|---|
void |
BsonValueCodec.encode(BsonWriter writer,
BsonValue value,
EncoderContext encoderContext) |
private void |
BsonDocumentCodec.writeValue(BsonWriter writer,
EncoderContext encoderContext,
BsonValue value) |