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)
ElasticsearchSchemaMigrator
SearchException
if an incompatible attribute
is detected.
The index is expected to already exist.
merge
in interface ElasticsearchSchemaMigrator
indexMetadata
- The expected index metadata.executionOptions
- The execution options, giving more context information.Copyright © 2006–2017 Hibernate. All rights reserved.