public class DefaultElasticsearchSchemaMigrator extends Object implements ElasticsearchSchemaMigrator, Startable, Stoppable
ElasticsearchSchemaMigrator implementation.| Constructor and Description |
|---|
DefaultElasticsearchSchemaMigrator() |
| Modifier and Type | Method and Description |
|---|---|
void |
merge(IndexMetadata indexMetadata,
ExecutionOptions executionOptions)
Merge metadata with the existing schema: for each mapping, merge the existing mapping
with the expected one, throwing
SearchException if an incompatible attribute
is detected. |
void |
start(Properties properties,
BuildContext context) |
void |
stop() |
public void start(Properties properties, BuildContext context)
public void merge(IndexMetadata indexMetadata, ExecutionOptions executionOptions)
ElasticsearchSchemaMigratorSearchException if an incompatible attribute
is detected.
The index is expected to already exist.
merge in interface ElasticsearchSchemaMigratorindexMetadata - The expected index metadata.Copyright © 2006–2016 Hibernate. All rights reserved.