public class ElasticSearchIndex extends Object implements IndexProvider
| Modifier and Type | Field and Description |
|---|---|
static ConfigOption<Boolean> |
CLIENT_ONLY |
static ConfigOption<Boolean> |
CLIENT_SNIFF |
static ConfigOption<String> |
CLUSTER_NAME |
static ConfigOption<Long> |
CREATE_SLEEP |
static com.google.common.collect.ImmutableList<String> |
DATA_SUBDIRS |
static ConfigNamespace |
ELASTICSEARCH_NS |
static ConfigNamespace |
ES_CREATE_EXTRAS_NS |
static ConfigNamespace |
ES_CREATE_NS |
static ConfigNamespace |
ES_EXTRAS_NS |
static ConfigOption<String> |
HEALTH_REQUEST_TIMEOUT |
static int |
HOST_PORT_DEFAULT |
static ConfigOption<Boolean> |
IGNORE_CLUSTER_NAME |
static ConfigOption<ElasticSearchSetup> |
INTERFACE |
static ConfigOption<Boolean> |
LOAD_DEFAULT_NODE_SETTINGS |
static ConfigOption<Boolean> |
LOCAL_MODE |
static ConfigOption<String> |
TTL_INTERVAL |
| Constructor and Description |
|---|
ElasticSearchIndex(Configuration config) |
public static final com.google.common.collect.ImmutableList<String> DATA_SUBDIRS
public static final ConfigNamespace ELASTICSEARCH_NS
public static final ConfigOption<Boolean> CLIENT_ONLY
public static final ConfigOption<String> CLUSTER_NAME
public static final ConfigOption<Boolean> LOCAL_MODE
public static final ConfigOption<Boolean> CLIENT_SNIFF
public static final ConfigOption<ElasticSearchSetup> INTERFACE
public static final ConfigOption<Boolean> IGNORE_CLUSTER_NAME
public static final ConfigOption<String> TTL_INTERVAL
public static final ConfigOption<String> HEALTH_REQUEST_TIMEOUT
public static final ConfigOption<Boolean> LOAD_DEFAULT_NODE_SETTINGS
public static final ConfigNamespace ES_EXTRAS_NS
public static final ConfigNamespace ES_CREATE_NS
public static final ConfigOption<Long> CREATE_SLEEP
public static final ConfigNamespace ES_CREATE_EXTRAS_NS
public static final int HOST_PORT_DEFAULT
public ElasticSearchIndex(Configuration config)
public void register(String store, String key, KeyInformation information, BaseTransaction tx) throws BackendException
register in interface IndexProviderBackendExceptionpublic org.elasticsearch.common.xcontent.XContentBuilder getContent(List<IndexEntry> additions, KeyInformation.StoreRetriever informations, int ttl) throws BackendException
BackendExceptionpublic void mutate(Map<String,Map<String,IndexMutation>> mutations, KeyInformation.IndexRetriever informations, BaseTransaction tx) throws BackendException
mutate in interface IndexProviderBackendExceptionpublic void restore(Map<String,Map<String,List<IndexEntry>>> documents, KeyInformation.IndexRetriever informations, BaseTransaction tx) throws BackendException
restore in interface IndexProviderBackendExceptionpublic org.elasticsearch.index.query.FilterBuilder getFilter(Condition<?> condition, KeyInformation.StoreRetriever informations)
public List<String> query(IndexQuery query, KeyInformation.IndexRetriever informations, BaseTransaction tx) throws BackendException
query in interface IndexProviderBackendExceptionpublic Iterable<RawQuery.Result<String>> query(RawQuery query, KeyInformation.IndexRetriever informations, BaseTransaction tx) throws BackendException
query in interface IndexProviderBackendExceptionpublic boolean supports(KeyInformation information, TitanPredicate titanPredicate)
supports in interface IndexInformationpublic boolean supports(KeyInformation information)
supports in interface IndexInformationpublic String mapKey2Field(String key, KeyInformation information)
mapKey2Field in interface IndexInformationpublic IndexFeatures getFeatures()
getFeatures in interface IndexInformationpublic BaseTransactionConfigurable beginTransaction(BaseTransactionConfig config) throws BackendException
beginTransaction in interface IndexProviderBackendExceptionpublic void close()
throws BackendException
close in interface IndexProviderBackendExceptionpublic void clearStorage()
throws BackendException
clearStorage in interface IndexProviderBackendExceptionCopyright © 2012–2016. All rights reserved.