本文整理匯總了Java中org.elasticsearch.script.ScriptService.ScriptType方法的典型用法代碼示例。如果您正苦於以下問題:Java ScriptService.ScriptType方法的具體用法?Java ScriptService.ScriptType怎麽用?Java ScriptService.ScriptType使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.elasticsearch.script.ScriptService
的用法示例。
在下文中一共展示了ScriptService.ScriptType方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: parse
import org.elasticsearch.script.ScriptService; //導入方法依賴的package包/類
public static Template parse(XContentParser parser, ParseFieldMatcher parseFieldMatcher, String... parameters) throws IOException {
Map<String, ScriptService.ScriptType> parameterMap = new HashMap<>(parametersToTypes);
for (String parameter : parameters) {
parameterMap.put(parameter, ScriptService.ScriptType.INLINE);
}
return parse(parser, parameterMap, parseFieldMatcher);
}
示例2: templateQuery
import org.elasticsearch.script.ScriptService; //導入方法依賴的package包/類
/**
* Facilitates creating template query requests
*/
public static TemplateQueryBuilder templateQuery(String template, ScriptService.ScriptType templateType, Map<String, Object> vars) {
return new TemplateQueryBuilder(template, templateType, vars);
}
示例3: scriptType
import org.elasticsearch.script.ScriptService; //導入方法依賴的package包/類
/**
* @deprecated Use {@link #script()} instead
*/
@Deprecated
public ScriptService.ScriptType scriptType() {
return this.script == null ? null : this.script.getType();
}
示例4: setTemplateType
import org.elasticsearch.script.ScriptService; //導入方法依賴的package包/類
/**
* @deprecated Use {@link #setTemplate(Template)} instead.
*/
@Deprecated
public SearchRequestBuilder setTemplateType(ScriptService.ScriptType templateType) {
request.templateType(templateType);
return this;
}
示例5: TemplateQueryBuilder
import org.elasticsearch.script.ScriptService; //導入方法依賴的package包/類
/**
* @param template
* the template to use for that query.
* @param vars
* the parameters to fill the template with.
* @param templateType
* what kind of template (INLINE,FILE,ID)
* @deprecated Use {@link #TemplateQueryBuilder(Template)} instead.
* */
@Deprecated
public TemplateQueryBuilder(String template, ScriptService.ScriptType templateType, Map<String, Object> vars) {
this.templateString = template;
this.vars = vars;
this.templateType = templateType;
}
示例6: templateType
import org.elasticsearch.script.ScriptService; //導入方法依賴的package包/類
/**
* The name of the stored template
*
* @deprecated use {@link #template()} instead.
*/
@Deprecated
public ScriptService.ScriptType templateType() {
return template == null ? null : template.getType();
}