public class MongoSetCollection extends Object implements SetCollection
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_SET |
| Constructor and Description |
|---|
MongoSetCollection(com.mongodb.MongoClient c) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containEnabledSet(String set,
String publisherDBName)
Test if a set is in this collection.
|
boolean |
containSet(String set,
String dbName)
Test if a set is in this collection.
|
int |
count(String setSpec,
String mdPrefix,
String dbName)
Gets the number of elements in the set with the given set spec for the given metadata prefix.
|
void |
dropConfigurationSets(String dbName) |
void |
dropOAISets(String dbName) |
void |
dropSet(String dbName,
String setSpec) |
void |
ensureIndexes(String dbName) |
protected List<SetInfo> |
findSets(org.bson.conversions.Bson query,
String dbName) |
List<SetInfo> |
getAllSets(boolean enabledOnly,
String dbName)
Get all sets.
|
List<SetInfo> |
getConfiguredSets(String dbName) |
com.mongodb.MongoClient |
getPublisherMongoClient() |
String |
getSetCollection() |
String |
getSetCountCollection() |
String |
getSetQuery(String set,
String dbName)
Obtains the set query.
|
com.mongodb.client.MongoCollection<com.mongodb.DBObject> |
getSetsCollection(String dbName) |
com.mongodb.client.MongoCollection<com.mongodb.DBObject> |
getSetsCountCollection(String dbName) |
List<SetInfo> |
getSetsFromData(String dbName) |
String |
normalizeSetSpec(String setName) |
void |
setPublisherMongoClient(com.mongodb.MongoClient publisherMongoClient) |
void |
setSetCollection(String setCollection) |
void |
setSetCountCollection(String setCountCollection) |
void |
updateCounts(String setSpec,
String mdPrefix,
int count,
String dbName) |
void |
upsertSet(SetInfo setInfo,
boolean fromConfiguration,
String dbName) |
public static String DEFAULT_SET
public void ensureIndexes(String dbName)
public List<SetInfo> getAllSets(boolean enabledOnly, String dbName)
SetCollectiongetAllSets in interface SetCollectionpublic boolean containSet(String set, String dbName)
SetCollectioncontainSet in interface SetCollectionset - set specpublic boolean containEnabledSet(String set, String publisherDBName)
SetCollectioncontainEnabledSet in interface SetCollectionset - set specpublic String getSetQuery(String set, String dbName)
SetCollectiongetSetQuery in interface SetCollectionset - set specpublic int count(String setSpec, String mdPrefix, String dbName)
SetCollectioncount in interface SetCollectionpublic void dropOAISets(String dbName)
public void dropConfigurationSets(String dbName)
public com.mongodb.client.MongoCollection<com.mongodb.DBObject> getSetsCollection(String dbName)
public com.mongodb.client.MongoCollection<com.mongodb.DBObject> getSetsCountCollection(String dbName)
public String getSetCollection()
public void setSetCollection(String setCollection)
public String getSetCountCollection()
public void setSetCountCollection(String setCountCollection)
public com.mongodb.MongoClient getPublisherMongoClient()
public void setPublisherMongoClient(com.mongodb.MongoClient publisherMongoClient)
Copyright © 2018. All rights reserved.