Methods
| Type Params |
Return Type |
Name and description |
|
static AggregateIterable<Document> |
aggregate(MongoCollection<Document> collection, List<? extends Map<String, Object>> pipeline)
|
<T> |
static AggregateIterable<T> |
aggregate(MongoCollection<Document> collection, List<? extends Map<String, Object>> pipeline, Class<T> resultClass)
|
<T> |
static T |
asType(Document document, Class<T> cls)
|
<T> |
static T |
asType(FindIterable iterable, Class<T> cls)
|
|
static long |
count(MongoCollection<Document> collection) ********** MongoCollection Extensions ************ |
|
static long |
count(MongoCollection<Document> collection, Map<String, Object> query)
|
|
static long |
count(MongoCollection<Document> collection, Map<String, Object> query, ReadPreference readPreference)
|
|
static long |
count(MongoCollection<Document> collection, Map query, Map<String, Object> options)
|
|
static MongoCollection<Document> |
createAndGetCollection(MongoDatabase db, String collectionName, Map<String, Object> options)
|
|
static void |
createIndex(MongoCollection<Document> collection, Map<String, Object> keys, String name)
|
|
static void |
createIndex(MongoCollection<Document> collection, Map<String, Object> keys, String name, boolean unique)
|
|
static void |
createIndex(MongoCollection<Document> collection, Map<String, Object> keys)
|
|
static void |
createIndex(MongoCollection<Document> collection, Map<String, Object> keys, IndexOptions options)
|
|
static void |
createIndex(MongoCollection<Document> collection, Map<String, Object> keys, Map<String, Object> options)
|
|
static DeleteResult |
deleteMany(MongoCollection<Document> collection, Map<String, Object> query)
|
|
static DeleteResult |
deleteMany(MongoCollection<Document> collection, Map<String, Object> query, WriteConcern writeConcern)
|
|
static DeleteResult |
deleteMany(MongoCollection<Document> collection, Map<String, Object> query, Map<String, Object> options)
|
|
static DeleteResult |
deleteOne(MongoCollection<Document> collection, Map<String, Object> query, WriteConcern writeConcern)
|
|
static DeleteResult |
deleteOne(MongoCollection<Document> collection, Map<String, Object> query, Map<String, Object> options)
|
|
static DistinctIterable<Document> |
distinct(MongoCollection<Document> collection, String fieldName)
|
|
static DistinctIterable<Document> |
distinct(MongoCollection<Document> collection, String fieldName, ReadPreference readPreference)
|
|
static DistinctIterable<Document> |
distinct(MongoCollection<Document> collection, String fieldName, Map<String, Object> query)
|
<T> |
static DistinctIterable<T> |
distinct(MongoCollection<Document> collection, String fieldName, Map<String, Object> query, Class<T> resultClass)
|
|
static DistinctIterable<Document> |
distinct(MongoCollection<Document> collection, String fieldName, Map<String, Object> query, ReadPreference readPreference)
|
|
static void |
dropIndex(MongoCollection<Document> collection, Map<String, Object> index)
|
|
static void |
dropIndex(MongoCollection<Document> collection, Map<String, Object> index, Map<String, Object> options)
|
|
static void |
dropIndex(MongoCollection<Document> collection, Map<String, Object> index, DropIndexOptions dropIndexOptions)
|
|
static FindIterable<Document> |
filter(FindIterable<Document> iterable, Map<String, Object> filter) ********** FindIterable Extensions ************ |
|
static DistinctIterable<Document> |
filter(DistinctIterable<Document> iterable, Map<String, Object> filter) ********** DistinctIterable Extensions ************ |
<T> |
static FindIterable<T> |
find(MongoCollection<T> collection, Map<String, Object> query, Class<T> type)
|
|
static FindIterable<Document> |
find(MongoCollection<Document> collection, Map<String, Object> query, Map<String, Object> projection)
|
|
static Document |
findOne(MongoCollection<Document> collection, Map<String, Object> query)
|
|
static Document |
findOne(MongoCollection<Document> collection, ObjectId id)
|
|
static Document |
findOne(MongoCollection<Document> collection, CharSequence id)
|
<T> |
static T |
findOne(MongoCollection<Document> collection, Serializable id, Class<T> type)
|
|
static Document |
findOne(MongoCollection<Document> collection, Map<String, Object> query, Map<String, Object> projection)
|
|
static Document |
findOne(MongoCollection<Document> collection, Map<String, Object> query, Map<String, Object> projection, Map<String, Object> sort)
|
|
static Document |
findOne(MongoCollection<Document> collection)
|
|
static Document |
findOne(MongoCollection<Document> collection, Map<String, Object> query, Map<String, Object> projection, ReadPreference readPreference)
|
|
static Document |
findOne(MongoCollection<Document> collection, Map<String, Object> query, Map<String, Object> projection, Map<String, Object> sort, ReadPreference readPreference)
|
|
static Document |
findOneAndDelete(MongoCollection<Document> collection, Map<String, Object> filter)
|
|
static Document |
findOneAndDelete(MongoCollection<Document> collection, Map<String, Object> filter, Map<String, Object> options)
|
|
static Document |
findOneAndReplace(MongoCollection<Document> collection, Map<String, Object> filter, Map<String, Object> replacement)
|
|
static Document |
findOneAndReplace(MongoCollection<Document> collection, Map<String, Object> filter, Map<String, Object> replacement, Map<String, Object> options)
|
|
static Document |
findOneAndUpdate(MongoCollection<Document> collection, Map<String, Object> filter, Map<String, Object> update)
|
|
static Document |
findOneAndUpdate(MongoCollection<Document> collection, Map<String, Object> filter, Map<String, Object> update, Map<String, Object> options)
|
|
static Object |
getAt(MongoDatabase db, String name) Adds a method to return a collection using the dot syntax |
|
static MongoIterable<String> |
getCollectionNames(MongoDatabase db) ********** MongoDatabase Extensions ************ |
|
static long |
getCount(MongoCollection<Document> collection, Map<String, Object> query)
|
|
static long |
getCount(MongoCollection<Document> collection, Map<String, Object> query, ReadPreference readPreference)
|
|
static long |
getCount(MongoCollection<Document> collection, Map<String, Object> query, Map<String, Object> options)
|
|
static String |
getName(MongoCollection<Document> collection)
|
|
static FindIterable<Document> |
hint(FindIterable<Document> iterable, Map<String, Object> hint)
|
|
static void |
insert(MongoCollection<Document> collection, Map<String, Object> document)
|
|
static MongoCollection<Document> |
insert(MongoCollection<Document> collection, Map<String, Object> document, WriteConcern writeConcern)
|
|
static void |
insert(MongoCollection<Document> collection, Map<String, Object>[] documents)
|
|
static MongoCollection<Document> |
insert(MongoCollection<Document> collection, WriteConcern writeConcern, Map<String, Object>[] documents)
|
|
static MongoCollection<Document> |
insert(MongoCollection<Document> collection, Map<String, Object>[] documents, WriteConcern writeConcern)
|
|
static MongoCollection<Document> |
insert(MongoCollection<Document> collection, List<? extends Map<String, Object>> documents)
|
|
static MongoCollection<Document> |
insert(MongoCollection<Document> collection, List<? extends Map<String, Object>> documents, WriteConcern aWriteConcern)
|
|
static MongoCollection<Document> |
insert(MongoCollection<Document> collection, List<? extends Map<String, Object>> documents, WriteConcern writeConcern, InsertManyOptions insertOptions)
|
|
static MongoCollection<Document> |
insert(MongoCollection<Document> collection, List<? extends Map> documents, InsertManyOptions insertOptions)
|
|
static MongoCollection<Document> |
leftShift(MongoCollection<Document> collection, Map<String, Object>[] documents)
|
|
static FindIterable<Document> |
max(FindIterable<Document> iterable, Map<String, Object> max)
|
|
static FindIterable<Document> |
min(FindIterable<Document> iterable, Map<String, Object> min)
|
|
static FindIterable<Document> |
projection(FindIterable<Document> iterable, Map<String, Object> projection)
|
|
static Object |
propertyMissing(MongoDatabase db, String name) Adds a method to return a collection using the dot syntax |
|
static DeleteResult |
remove(MongoCollection<Document> collection, Map<String, Object> query)
|
|
static UpdateResult |
replaceOne(MongoCollection<Document> collection, Map<String, Object> filter, Document replacement)
|
|
static UpdateResult |
replaceOne(MongoCollection<Document> collection, Map<String, Object> filter, Document replacement, Map<String, Object> options)
|
|
static MongoCollection<Document> |
rightShift(MongoCollection<Document> collection, Map<String, Object> query)
|
|
static MongoCollection |
save(MongoCollection<Document> collection, Map<String, Object> document)
|
|
static MongoCollection |
save(MongoCollection<Document> collection, Map<String, Object> document, WriteConcern writeConcern)
|
|
static FindIterable<Document> |
sort(FindIterable<Document> iterable, Map<String, Object> sort)
|
|
static DBObject |
toDBObject(Document document)
|
<T> |
static List<T> |
toList(FindIterable iterable, Class<T> cls)
|
|
static UpdateResult |
update(MongoCollection<Document> collection, Map<String, Object> filter, Map<String, Object> update)
|
|
static UpdateResult |
update(MongoCollection<Document> collection, Map<String, Object> filter, Map<String, Object> update, Map<String, Object> options)
|
|
static UpdateResult |
update(MongoCollection<Document> collection, Map<String, Object> filter, Map<String, Object> update, UpdateOptions updateOptions)
|
|
static UpdateResult |
updateMany(MongoCollection<Document> collection, Map<String, Object> filter, Map<String, Object> update)
|
|
static UpdateResult |
updateMany(MongoCollection<Document> collection, Map<String, Object> filter, Map<String, Object> update, Map<String, Object> options)
|
|
static UpdateResult |
updateMany(MongoCollection<Document> collection, Map<String, Object> filter, Map<String, Object> update, UpdateOptions updateOptions)
|
|
static UpdateResult |
updateMany(MongoCollection<Document> collection, Map<String, Object> filter, List<? extends Map<String, Object>> update)
|
|
static UpdateResult |
updateMany(MongoCollection<Document> collection, Map<String, Object> filter, List<? extends Map<String, Object>> update, Map<String, Object> options)
|
|
static UpdateResult |
updateMany(MongoCollection<Document> collection, Map<String, Object> filter, List<? extends Map<String, Object>> update, UpdateOptions updateOptions)
|
|
static UpdateResult |
updateOne(MongoCollection<Document> collection, Map<String, Object> filter, Map<String, Object> update)
|
|
static UpdateResult |
updateOne(MongoCollection<Document> collection, Map<String, Object> filter, Map<String, Object> update, Map<String, Object> options)
|
|
static UpdateResult |
updateOne(MongoCollection<Document> collection, Map<String, Object> filter, Map<String, Object> update, UpdateOptions updateOptions)
|
|
static UpdateResult |
updateOne(MongoCollection<Document> collection, Map<String, Object> filter, List<? extends Map<String, Object>> update)
|
|
static UpdateResult |
updateOne(MongoCollection<Document> collection, Map<String, Object> filter, List<? extends Map<String, Object>> update, Map<String, Object> options)
|
|
static UpdateResult |
updateOne(MongoCollection<Document> collection, Map<String, Object> filter, List<? extends Map<String, Object>> update, UpdateOptions updateOptions)
|
|
static ChangeStreamIterable<Document> |
watch(MongoCollection<Document> collection, List<? extends Map<String, Object>> pipeline)
|
<T> |
static ChangeStreamIterable<T> |
watch(MongoCollection<Document> collection, List<? extends Map<String, Object>> pipeline, Class<T> resultClass)
|