Package tigase.mongodb
Class Helper
java.lang.Object
tigase.mongodb.Helper
Created by andrzej on 23.03.2016.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
collectionExists
(com.mongodb.client.MongoDatabase db, String collection) static String
createIndexName
(org.bson.Document index) static void
indexCreateOrReplace
(com.mongodb.client.MongoCollection<org.bson.Document> collection, org.bson.Document index, com.mongodb.client.model.IndexOptions options)
-
Constructor Details
-
Helper
public Helper()
-
-
Method Details
-
collectionExists
-
createIndexName
-
indexCreateOrReplace
public static void indexCreateOrReplace(com.mongodb.client.MongoCollection<org.bson.Document> collection, org.bson.Document index, com.mongodb.client.model.IndexOptions options)
-