public class VitamCollection extends Object
Modifier and Type | Field and Description |
---|---|
static String |
TYPEUNIQUE |
Modifier | Constructor and Description |
---|---|
protected |
VitamCollection(Class<?> clasz,
boolean isMultiTenant,
boolean useScore) |
Modifier and Type | Method and Description |
---|---|
static Boolean |
containMatch() |
static BuilderToken.FILTERARGS |
get() |
Class<?> |
getClasz() |
com.mongodb.client.MongoCollection<?> |
getCollection() |
ElasticsearchAccess |
getEsClient() |
static com.mongodb.MongoClientOptions |
getMongoClientOptions() |
static com.mongodb.MongoClientOptions |
getMongoClientOptions(List<Class<?>> claszList) |
String |
getName() |
static String |
getTypeunique() |
void |
initialize(ElasticsearchAccess esClient)
Initialize the ES Client
|
void |
initialize(ElasticsearchAccess esClient,
boolean createIndexByTenant)
Initialize the ES Client
|
void |
initialize(com.mongodb.client.MongoDatabase db,
boolean recreate)
Initialize the collection
|
boolean |
isCreateIndexByTenant() |
boolean |
isMultiTenant() |
boolean |
isUseScore() |
static void |
set(BuilderToken.FILTERARGS collection) |
void |
setCreateIndexByTenant(boolean createIndexByTenant) |
static void |
setMatch(Boolean match) |
public static final String TYPEUNIQUE
protected VitamCollection(Class<?> clasz, boolean isMultiTenant, boolean useScore)
public static Boolean containMatch()
public static void setMatch(Boolean match)
match
- if the final query contains matchpublic static BuilderToken.FILTERARGS get()
public static void set(BuilderToken.FILTERARGS collection)
collection
- the collection to work on currentlypublic static String getTypeunique()
public void initialize(com.mongodb.client.MongoDatabase db, boolean recreate)
db
- mongodb databaserecreate
- boolean if recreate the databasepublic void initialize(ElasticsearchAccess esClient)
esClient
- ElasticsearchAccess ES Clientpublic void initialize(ElasticsearchAccess esClient, boolean createIndexByTenant)
esClient
- ElasticsearchAccess ES Clientpublic String getName()
public com.mongodb.client.MongoCollection<?> getCollection()
public Class<?> getClasz()
public ElasticsearchAccess getEsClient()
public static com.mongodb.MongoClientOptions getMongoClientOptions(List<Class<?>> claszList)
claszList
- Vitam document extended class listpublic static com.mongodb.MongoClientOptions getMongoClientOptions()
public boolean isMultiTenant()
public boolean isUseScore()
public boolean isCreateIndexByTenant()
public void setCreateIndexByTenant(boolean createIndexByTenant)
Copyright © 2018 Vitam. All rights reserved.