當前位置: 首頁>>代碼示例>>Java>>正文


Java ScriptService.SCRIPT_INDEX屬性代碼示例

本文整理匯總了Java中org.elasticsearch.script.ScriptService.SCRIPT_INDEX屬性的典型用法代碼示例。如果您正苦於以下問題:Java ScriptService.SCRIPT_INDEX屬性的具體用法?Java ScriptService.SCRIPT_INDEX怎麽用?Java ScriptService.SCRIPT_INDEX使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在org.elasticsearch.script.ScriptService的用法示例。


在下文中一共展示了ScriptService.SCRIPT_INDEX屬性的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: toString

@Override
public String toString() {
    String sSource = "_na_";
    try {
        sSource = XContentHelper.convertToJson(source, false);
    } catch (Exception e) {
        // ignore
    }
    return "index {[" + ScriptService.SCRIPT_INDEX + "][" + scriptLang + "][" + id + "], source[" + sSource + "]}";
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:10,代碼來源:PutIndexedScriptRequest.java

示例2: PutIndexedScriptResponse

public PutIndexedScriptResponse(String type, String id, long version, boolean created) {
    this.index = ScriptService.SCRIPT_INDEX;
    this.id = id;
    this.scriptLang = type;
    this.version = version;
    this.created = created;
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:7,代碼來源:PutIndexedScriptResponse.java

示例3: readFrom

@Override
public void readFrom(StreamInput in) throws IOException {
    super.readFrom(in);
    index = ScriptService.SCRIPT_INDEX;
    scriptLang = in.readString();
    id = in.readString();
    version = in.readLong();
    created = in.readBoolean();
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:9,代碼來源:PutIndexedScriptResponse.java

示例4: indices

@Override
public String[] indices() {
    return new String[]{ScriptService.SCRIPT_INDEX};
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:4,代碼來源:GetIndexedScriptRequest.java

示例5: toString

@Override
public String toString() {
    return "[" + ScriptService.SCRIPT_INDEX + "][" + scriptLang + "][" + id + "]";
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:4,代碼來源:GetIndexedScriptRequest.java

示例6: toString

@Override
public String toString() {
    return "delete {[" + ScriptService.SCRIPT_INDEX + "][" + scriptLang + "][" + id + "]}";
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:4,代碼來源:DeleteIndexedScriptRequest.java


注:本文中的org.elasticsearch.script.ScriptService.SCRIPT_INDEX屬性示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。