Class MongoDocumentStoreHelper
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.document.mongo.MongoDocumentStoreHelper
-
public class MongoDocumentStoreHelper extends Object
Helper class to access package private methods on MongoDocumentStore.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends Document>
TconvertFromDBObject(MongoDocumentStore store, Collection<T> col, com.mongodb.DBObject obj)
static com.mongodb.ReadPreference
getConfiguredReadPreference(MongoDocumentStore mongoStore, Collection<? extends Document> collection)
static <T extends Document>
com.mongodb.client.MongoCollection<com.mongodb.BasicDBObject>getDBCollection(MongoDocumentStore store, Collection<T> c)
static String
getMongoDatabaseName(MongoDocumentStore store)
static NodeDocumentCache
getNodeDocumentCache(MongoDocumentStore mongoStore)
static void
repair(MongoDocumentStore store, String path)
-
-
-
Method Detail
-
repair
public static void repair(MongoDocumentStore store, String path)
-
getDBCollection
public static <T extends Document> com.mongodb.client.MongoCollection<com.mongodb.BasicDBObject> getDBCollection(MongoDocumentStore store, Collection<T> c)
-
convertFromDBObject
public static <T extends Document> T convertFromDBObject(MongoDocumentStore store, Collection<T> col, com.mongodb.DBObject obj)
-
getNodeDocumentCache
public static NodeDocumentCache getNodeDocumentCache(MongoDocumentStore mongoStore)
-
getConfiguredReadPreference
public static com.mongodb.ReadPreference getConfiguredReadPreference(MongoDocumentStore mongoStore, Collection<? extends Document> collection)
-
getMongoDatabaseName
public static String getMongoDatabaseName(MongoDocumentStore store)
-
-