A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mongodb.github.io/mongo-java-driver/3.4/javadoc/com/mongodb/client/MongoCollection.html below:

MongoCollection

Modifier and Type Method and Description AggregateIterable<TDocument> aggregate(List<? extends Bson> pipeline)

Aggregates documents according to the specified aggregation pipeline.

<TResult> AggregateIterable<TResult> aggregate(List<? extends Bson> pipeline, Class<TResult> resultClass)

Aggregates documents according to the specified aggregation pipeline.

BulkWriteResult bulkWrite(List<? extends WriteModel<? extends TDocument>> requests)

Executes a mix of inserts, updates, replaces, and deletes.

BulkWriteResult bulkWrite(List<? extends WriteModel<? extends TDocument>> requests, BulkWriteOptions options)

Executes a mix of inserts, updates, replaces, and deletes.

long count()

Counts the number of documents in the collection.

long count(Bson filter)

Counts the number of documents in the collection according to the given options.

long count(Bson filter, CountOptions options)

Counts the number of documents in the collection according to the given options.

String createIndex(Bson keys)

Create an index with the given keys.

String createIndex(Bson keys, IndexOptions indexOptions)

Create an index with the given keys and options.

List<String> createIndexes(List<IndexModel> indexes)

Create multiple indexes.

DeleteResult deleteMany(Bson filter)

Removes all documents from the collection that match the given query filter.

DeleteResult deleteMany(Bson filter, DeleteOptions options)

Removes all documents from the collection that match the given query filter.

DeleteResult deleteOne(Bson filter)

Removes at most one document from the collection that matches the given filter.

DeleteResult deleteOne(Bson filter, DeleteOptions options)

Removes at most one document from the collection that matches the given filter.

<TResult> DistinctIterable<TResult> distinct(String fieldName, Bson filter, Class<TResult> resultClass)

Gets the distinct values of the specified field name.

<TResult> DistinctIterable<TResult> distinct(String fieldName, Class<TResult> resultClass)

Gets the distinct values of the specified field name.

void drop()

Drops this collection from the Database.

void dropIndex(Bson keys)

Drops the index given the keys used to create it.

void dropIndex(String indexName)

Drops the index given its name.

void dropIndexes()

Drop all the indexes on this collection, except for the default on _id.

FindIterable<TDocument> find()

Finds all documents in the collection.

FindIterable<TDocument> find(Bson filter)

Finds all documents in the collection.

<TResult> FindIterable<TResult> find(Bson filter, Class<TResult> resultClass)

Finds all documents in the collection.

<TResult> FindIterable<TResult> find(Class<TResult> resultClass)

Finds all documents in the collection.

TDocument findOneAndDelete(Bson filter)

Atomically find a document and remove it.

TDocument findOneAndDelete(Bson filter, FindOneAndDeleteOptions options)

Atomically find a document and remove it.

TDocument findOneAndReplace(Bson filter, TDocument replacement)

Atomically find a document and replace it.

TDocument findOneAndReplace(Bson filter, TDocument replacement, FindOneAndReplaceOptions options)

Atomically find a document and replace it.

TDocument findOneAndUpdate(Bson filter, Bson update)

Atomically find a document and update it.

TDocument findOneAndUpdate(Bson filter, Bson update, FindOneAndUpdateOptions options)

Atomically find a document and update it.

CodecRegistry getCodecRegistry()

Get the codec registry for the MongoCollection.

Class<TDocument> getDocumentClass()

Get the class of documents stored in this collection.

MongoNamespace getNamespace()

Gets the namespace of this collection.

ReadConcern getReadConcern()

Get the read concern for the MongoCollection.

ReadPreference getReadPreference()

Get the read preference for the MongoCollection.

WriteConcern getWriteConcern()

Get the write concern for the MongoCollection.

void insertMany(List<? extends TDocument> documents)

Inserts one or more documents.

void insertMany(List<? extends TDocument> documents, InsertManyOptions options)

Inserts one or more documents.

void insertOne(TDocument document)

Inserts the provided document.

void insertOne(TDocument document, InsertOneOptions options)

Inserts the provided document.

ListIndexesIterable<Document> listIndexes()

Get all the indexes in this collection.

<TResult> ListIndexesIterable<TResult> listIndexes(Class<TResult> resultClass)

Get all the indexes in this collection.

MapReduceIterable<TDocument> mapReduce(String mapFunction, String reduceFunction)

Aggregates documents according to the specified map-reduce function.

<TResult> MapReduceIterable<TResult> mapReduce(String mapFunction, String reduceFunction, Class<TResult> resultClass)

Aggregates documents according to the specified map-reduce function.

void renameCollection(MongoNamespace newCollectionNamespace)

Rename the collection with oldCollectionName to the newCollectionName.

void renameCollection(MongoNamespace newCollectionNamespace, RenameCollectionOptions renameCollectionOptions)

Rename the collection with oldCollectionName to the newCollectionName.

UpdateResult replaceOne(Bson filter, TDocument replacement)

Replace a document in the collection according to the specified arguments.

UpdateResult replaceOne(Bson filter, TDocument replacement, UpdateOptions updateOptions)

Replace a document in the collection according to the specified arguments.

UpdateResult updateMany(Bson filter, Bson update)

Update all documents in the collection according to the specified arguments.

UpdateResult updateMany(Bson filter, Bson update, UpdateOptions updateOptions)

Update all documents in the collection according to the specified arguments.

UpdateResult updateOne(Bson filter, Bson update)

Update a single document in the collection according to the specified arguments.

UpdateResult updateOne(Bson filter, Bson update, UpdateOptions updateOptions)

Update a single document in the collection according to the specified arguments.

MongoCollection<TDocument> withCodecRegistry(CodecRegistry codecRegistry)

Create a new MongoCollection instance with a different codec registry.

<NewTDocument>
MongoCollection<NewTDocument>
withDocumentClass(Class<NewTDocument> clazz)

Create a new MongoCollection instance with a different default class to cast any documents returned from the database into..

MongoCollection<TDocument> withReadConcern(ReadConcern readConcern)

Create a new MongoCollection instance with a different read concern.

MongoCollection<TDocument> withReadPreference(ReadPreference readPreference)

Create a new MongoCollection instance with a different read preference.

MongoCollection<TDocument> withWriteConcern(WriteConcern writeConcern)

Create a new MongoCollection instance with a different write concern.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4