类 ElasticSearchClient
java.lang.Object
org.apache.skywalking.oap.server.library.client.elasticsearch.ElasticSearchClient
- 所有已实现的接口:
Client,HealthCheckable
ElasticSearchClient connects to the ES server by using ES client APIs.
-
字段概要
字段 -
构造器概要
构造器构造器说明ElasticSearchClient(String clusterNodes, String protocol, String trustStorePath, String trustStorePass, String user, String password, Function<String, String> indexNameConverter, int connectTimeout, int socketTimeout, int responseTimeout, int numHttpClientThread) ElasticSearchClient(String clusterNodes, String protocol, String trustStorePath, Function<String, String> indexNameConverter, int connectTimeout, int socketTimeout, int responseTimeout, int numHttpClientThread) -
方法概要
修饰符和类型方法说明voidconnect()createBulkProcessor(int bulkActions, int flushInterval, int concurrentRequests, int batchOfBytes) booleancreateIndex(String indexName) booleancreateIndex(String indexName, Mappings mappings, Map<String, ?> settings) booleanvoiddeleteById(String indexName, String id) booleandeleteByIndexName(String indexName) If your indexName is retrieved from elasticsearch throughretrievalIndexByAliases(String)or some other method and it already contains namespace.booleandeleteScrollContextQuietly(String scrollId) booleandeleteTemplate(String indexName) booleanvoidvoidformatIndexName(String indexName) getTemplate(String name) Provide to get documents from multi indices by IDs.booleanisExistsIndex(String indexName) booleanisExistsTemplate(String indexName) prepareInsert(String indexName, String id, Optional<String> routingValue, Map<String, Object> source) voidregisterChecker(HealthChecker healthChecker) Register health checker.retrievalIndexByAliases(String alias) search(String indexName, Search search, SearchParams params) Search by ids with index alias, when can not locate the physical index.voidsetPassword(String password) voidsetTrustStorePass(String trustStorePass) voidvoidshutdown()booleanupdateIndexMapping(String indexName, Mappings mapping)
-
字段详细资料
-
TYPE
- 另请参阅:
-
-
构造器详细资料
-
ElasticSearchClient
-
ElasticSearchClient
-
-
方法详细资料
-
connect
public void connect() -
shutdown
public void shutdown() -
registerChecker
从接口复制的说明:HealthCheckableRegister health checker.- 指定者:
registerChecker在接口中HealthCheckable- 参数:
healthChecker- HealthChecker to be registered.
-
createIndex
-
createIndex
-
updateIndexMapping
-
getIndex
-
retrievalIndexByAliases
-
deleteByIndexName
If your indexName is retrieved from elasticsearch throughretrievalIndexByAliases(String)or some other method and it already contains namespace. Then you should delete the index by this method, this method will no longer concatenate namespace. https://github.com/apache/skywalking/pull/3017 -
isExistsIndex
-
getTemplate
-
isExistsTemplate
-
createOrUpdateTemplate
-
deleteTemplate
-
search
-
search
-
search
-
scroll
-
deleteScrollContextQuietly
-
get
-
existDoc
-
ids
Provide to get documents from multi indices by IDs.- 参数:
indexIds- key: indexName, value: ids list- 返回:
- Documents
- 从以下版本开始:
- 9.2.0
-
searchIDs
Search by ids with index alias, when can not locate the physical index. Otherwise, recommend use methodids(java.util.Map<java.lang.String, java.util.List<java.lang.String>>)- 参数:
indexName- Index alias name or physical nameids- ID list- 返回:
- SearchResponse
- 从以下版本开始:
- 9.2.0 this method was ids
-
forceInsert
-
forceUpdate
-
deleteById
-
prepareInsert
-
prepareInsert
-
prepareUpdate
-
createBulkProcessor
public BulkProcessor createBulkProcessor(int bulkActions, int flushInterval, int concurrentRequests, int batchOfBytes) -
formatIndexName
-
setTrustStorePass
-
setUser
-
setPassword
-