public class ElasticSearchIndex extends Object implements IndexProvider
REPLACEMENT_CHAR| Constructor and Description |
|---|
ElasticSearchIndex(Configuration config) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckKeyValiditypublic static final ConfigNamespace ELASTICSEARCH_NS
public static final ConfigOption<String> INTERFACE
public static final ConfigOption<String> HEALTH_REQUEST_TIMEOUT
public static final ConfigOption<String> BULK_REFRESH
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 ConfigOption<Boolean> USE_EXTERNAL_MAPPINGS
public static final ConfigOption<Integer> NUMBER_OF_REPLICAS
public static final ConfigOption<Integer> NUMBER_OF_SHARDS
public static final ConfigOption<Boolean> ALLOW_MAPPING_UPDATE
public static final ConfigOption<Boolean> USE_ALL_FIELD
public static final ConfigOption<Integer> ES_SCROLL_KEEP_ALIVE
public static final ConfigNamespace ES_INGEST_PIPELINES
public static final ConfigNamespace SSL_NS
public static final ConfigOption<Boolean> SSL_ENABLED
public static final ConfigOption<Boolean> SSL_DISABLE_HOSTNAME_VERIFICATION
public static final ConfigOption<Boolean> SSL_ALLOW_SELF_SIGNED_CERTIFICATES
public static final ConfigNamespace SSL_TRUSTSTORE_NS
public static final ConfigOption<String> SSL_TRUSTSTORE_LOCATION
public static final ConfigOption<String> SSL_TRUSTSTORE_PASSWORD
public static final ConfigNamespace SSL_KEYSTORE_NS
public static final ConfigOption<String> SSL_KEYSTORE_LOCATION
public static final ConfigOption<String> SSL_KEYSTORE_PASSWORD
public static final ConfigOption<String> SSL_KEY_PASSWORD
public static final ConfigNamespace ES_HTTP_NS
public static final ConfigNamespace ES_HTTP_AUTH_NS
public static final ConfigOption<String> ES_HTTP_AUTH_TYPE
public static final ConfigNamespace ES_HTTP_AUTH_BASIC_NS
public static final ConfigOption<String> ES_HTTP_AUTH_USERNAME
public static final ConfigOption<String> ES_HTTP_AUTH_PASSWORD
public static final ConfigOption<String> ES_HTTP_AUTH_REALM
public static final ConfigNamespace ES_HTTP_AUTH_CUSTOM_NS
public static final ConfigOption<String> ES_HTTP_AUTHENTICATOR_CLASS
public static final ConfigOption<String[]> ES_HTTP_AUTHENTICATOR_ARGS
public static final ConfigOption<Boolean> SETUP_MAX_OPEN_SCROLL_CONTEXTS
public static final ConfigOption<Boolean> USE_MAPPING_FOR_ES7
public static final ConfigOption<Long> CLIENT_KEEP_ALIVE
public static final ConfigOption<Integer> RETRY_ON_CONFLICT
public static final ConfigOption<Boolean> ENABLE_INDEX_STORE_NAMES_CACHE
public static final ConfigOption<Integer> CONNECT_TIMEOUT
public static final ConfigOption<Integer> SOCKET_TIMEOUT
public static final ConfigOption<Integer> RETRY_LIMIT
public static final ConfigOption<Long> RETRY_INITIAL_WAIT
public static final ConfigOption<Long> RETRY_MAX_WAIT
public static final ConfigOption<String[]> RETRY_ERROR_CODES
public static final int HOST_PORT_DEFAULT
public static final int DEFAULT_GEO_MAX_LEVELS
public static final double DEFAULT_GEO_DIST_ERROR_PCT
public ElasticSearchIndex(Configuration config) throws BackendException
BackendExceptionpublic static String determineIndexName(Configuration config)
public void register(String store, String key, KeyInformation information, BaseTransaction tx) throws BackendException
register in interface IndexProviderBackendExceptionpublic Map<String,Object> getNewDocument(List<IndexEntry> additions, KeyInformation.StoreRetriever information) throws BackendException
BackendExceptionpublic void mutate(Map<String,Map<String,IndexMutation>> mutations, KeyInformation.IndexRetriever information, BaseTransaction tx) throws BackendException
mutate in interface IndexProviderBackendExceptionpublic void restore(Map<String,Map<String,List<IndexEntry>>> documents, KeyInformation.IndexRetriever information, BaseTransaction tx) throws BackendException
restore in interface IndexProviderBackendExceptionpublic Map<String,Object> getFilter(Condition<?> condition, KeyInformation.StoreRetriever information)
public Stream<String> query(IndexQuery query, KeyInformation.IndexRetriever informations, BaseTransaction tx) throws BackendException
query in interface IndexProviderBackendExceptionpublic Stream<RawQuery.Result<String>> query(RawQuery query, KeyInformation.IndexRetriever information, BaseTransaction tx) throws BackendException
query in interface IndexProviderBackendExceptionpublic Number queryAggregation(IndexQuery query, KeyInformation.IndexRetriever information, BaseTransaction tx, Aggregation aggregation) throws BackendException
queryAggregation in interface IndexProviderBackendExceptionpublic Long totals(RawQuery query, KeyInformation.IndexRetriever information, BaseTransaction tx) throws BackendException
totals in interface IndexProviderBackendExceptionpublic boolean supports(KeyInformation information, JanusGraphPredicate janusgraphPredicate)
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 IndexProviderBackendExceptionpublic void clearStore(String storeName) throws BackendException
clearStore in interface IndexProviderBackendExceptionpublic boolean exists()
throws BackendException
exists in interface IndexProviderBackendExceptionCopyright © 2012–2024. All rights reserved.