Package tigase.mongodb
Class Helper
- java.lang.Object
-
- tigase.mongodb.Helper
-
public class Helper extends java.lang.Object
Created by andrzej on 23.03.2016.
-
-
Constructor Summary
Constructors Constructor Description Helper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
collectionExists(com.mongodb.client.MongoDatabase db, java.lang.String collection)
static java.lang.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)
-
-
-
Method Detail
-
collectionExists
public static boolean collectionExists(com.mongodb.client.MongoDatabase db, java.lang.String collection)
-
createIndexName
public static java.lang.String createIndexName(org.bson.Document index)
-
indexCreateOrReplace
public static void indexCreateOrReplace(com.mongodb.client.MongoCollection<org.bson.Document> collection, org.bson.Document index, com.mongodb.client.model.IndexOptions options)
-
-