All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.es.plus.adapter.lock.ELockClient Maven / Gradle / Ivy

There is a newer version: 0.3.3
Show newest version
package com.es.plus.adapter.lock;

import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.action.update.UpdateResponse;
import org.elasticsearch.script.Script;

import java.util.Map;

public interface ELockClient {
    /**
     * 更新Es数据根据script语音更新
     */
     SearchResponse search(String index, String key,String value);
    /**
     * 更新Es数据根据script语音更新
     */
    UpdateResponse updateByScript(String index, String id, Script painless);

    /**
     * 新增或更新
     */
    UpdateResponse upsertByScript(String index, String id, Map insertBody, Script painless);

    /**
     * 更新Es数据
     *
     * @param esData Es数据对象
     * @return
     * @throws Exception
     */
    UpdateResponse update(String index, Object esData);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy