public final class AutoCreateIndex extends Object
Constructor and Description |
---|
AutoCreateIndex(Settings settings,
IndexNameExpressionResolver resolver) |
Modifier and Type | Method and Description |
---|---|
boolean |
needToCheck()
Do we really need to check if an index should be auto created?
|
boolean |
shouldAutoCreate(String index,
ClusterState state)
Should the index be auto created?
|
@Inject public AutoCreateIndex(Settings settings, IndexNameExpressionResolver resolver)
public boolean needToCheck()
public boolean shouldAutoCreate(String index, ClusterState state)
Copyright © 2009–2017. All rights reserved.