public class DefaultElasticsearchSchemaDropper extends Object implements ElasticsearchSchemaDropper, Startable, Stoppable
ElasticsearchSchemaDropper
implementation.Constructor and Description |
---|
DefaultElasticsearchSchemaDropper() |
Modifier and Type | Method and Description |
---|---|
void |
drop(String indexName,
ExecutionOptions executionOptions)
Drops an index, throwing an exception if dropping fails.
|
void |
dropIfExisting(String indexName,
ExecutionOptions executionOptions)
Drops an index, throwing an exception if dropping fails.
|
void |
start(Properties properties,
BuildContext context) |
void |
stop() |
public void start(Properties properties, BuildContext context)
public void drop(String indexName, ExecutionOptions executionOptions)
ElasticsearchSchemaDropper
drop
in interface ElasticsearchSchemaDropper
indexName
- The name of the index to drop.executionOptions
- The execution options, giving more context information.public void dropIfExisting(String indexName, ExecutionOptions executionOptions)
ElasticsearchSchemaDropper
This method will skip operations silently if the index does not exist.
dropIfExisting
in interface ElasticsearchSchemaDropper
indexName
- The name of the index to drop.executionOptions
- The execution options, giving more context information.Copyright © 2006–2017 Hibernate. All rights reserved.