Class ElasticsearchIndexAlias
java.lang.Object
fr.gouv.vitam.common.database.server.elasticsearch.ElasticsearchIndexAlias
Represents an elasticsearch index or index alias
-
Method Summary
Modifier and TypeMethodDescriptiongetName()booleanisValidAliasOfIndex(ElasticsearchIndexAlias indexName) static ElasticsearchIndexAliasofCrossTenantCollection(String collectionName) Builder for collection that store documents of all tenants in same index (functional admin collections)static ElasticsearchIndexAliasofFullIndexName(String fullIndexName) Stored for building indexes with exact full name (eg.static ElasticsearchIndexAliasofMultiTenantCollection(String collectionName, int tenantId) Builder for collection that store documents per-tenant indexes (unit/objectgroup/logbookoperation collections when tenant is not in a tenant group)static ElasticsearchIndexAliasofMultiTenantCollection(String collectionName, String tenantGroupName) Builder for collection that store documents per-tenant-group indexes (unit/objectgroup/logbookoperation collections when tenant is in a tenant group)toString()
-
Method Details
-
ofCrossTenantCollection
Builder for collection that store documents of all tenants in same index (functional admin collections) -
ofMultiTenantCollection
Builder for collection that store documents per-tenant indexes (unit/objectgroup/logbookoperation collections when tenant is not in a tenant group) -
ofMultiTenantCollection
public static ElasticsearchIndexAlias ofMultiTenantCollection(String collectionName, String tenantGroupName) Builder for collection that store documents per-tenant-group indexes (unit/objectgroup/logbookoperation collections when tenant is in a tenant group) -
ofFullIndexName
Stored for building indexes with exact full name (eg. index creation / alias switching) -
getName
-
isValidAliasOfIndex
-
createUniqueIndexName
-
toString
-