public enum MetadataCollections extends Enum<MetadataCollections>
Enum Constant and Description |
---|
OBJECTGROUP
ObjectGroup Collection
|
UNIT
Unit Collection
|
Modifier and Type | Method and Description |
---|---|
Class<?> |
getClasz() |
com.mongodb.client.MongoCollection |
getCollection() |
ElasticsearchAccessMetadata |
getEsClient() |
static MetadataCollections |
getFromValue(String collection)
get collection from value.
|
String |
getName() |
protected void |
initialize(ElasticsearchAccessMetadata esClient)
Initialize the collection
|
protected void |
initialize(com.mongodb.client.MongoDatabase db,
boolean recreate)
Initialize the collection
|
boolean |
useScore() |
static MetadataCollections |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MetadataCollections[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MetadataCollections UNIT
public static final MetadataCollections OBJECTGROUP
public static MetadataCollections[] values()
for (MetadataCollections c : MetadataCollections.values()) System.out.println(c);
public static MetadataCollections valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullprotected void initialize(com.mongodb.client.MongoDatabase db, boolean recreate)
db
- database typerecreate
- true is as recreate typeprotected void initialize(ElasticsearchAccessMetadata esClient)
esClient
- ElasticsearchAccessMetadatapublic String getName()
public com.mongodb.client.MongoCollection getCollection()
public Class<?> getClasz()
public ElasticsearchAccessMetadata getEsClient()
public boolean useScore()
public static MetadataCollections getFromValue(String collection)
collection
- Copyright © 2018 Vitam. All rights reserved.