本文整理汇总了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();
}