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)
Start phase notification.
|
void |
stop()
Stop phase notification
|
public void start(Properties properties, BuildContext context)
Startable
public void stop()
Stoppable
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 Red Hat, Inc. All Rights Reserved