public enum ElasticSearchSetup extends Enum<ElasticSearchSetup>
RestClient
from a JanusGraph
Configuration
.
Any key-value pairs under the ElasticSearchIndex.ES_CREATE_EXTRAS_NS
namespace
are copied into the Elasticsearch settings builder. This allows overriding arbitrary
ES settings from within the JanusGraph properties file.
Assumes that an ES cluster is already running. It does not attempt to start an
embedded ES instance. It just connects to whatever hosts are given in
GraphDatabaseConfiguration.INDEX_HOSTS
.
Modifier and Type | Class and Description |
---|---|
static class |
ElasticSearchSetup.Connection |
Enum Constant and Description |
---|
REST_CLIENT
Create an ES RestClient connected to
GraphDatabaseConfiguration.INDEX_HOSTS . |
Modifier and Type | Method and Description |
---|---|
abstract ElasticSearchSetup.Connection |
connect(Configuration config) |
static ElasticSearchSetup |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ElasticSearchSetup[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ElasticSearchSetup REST_CLIENT
GraphDatabaseConfiguration.INDEX_HOSTS
.public static ElasticSearchSetup[] values()
for (ElasticSearchSetup c : ElasticSearchSetup.values()) System.out.println(c);
public static ElasticSearchSetup valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic abstract ElasticSearchSetup.Connection connect(Configuration config) throws IOException
IOException
Copyright © 2012–2023. All rights reserved.