本文整理汇总了Java中org.elasticsearch.script.Script.readScript方法的典型用法代码示例。如果您正苦于以下问题:Java Script.readScript方法的具体用法?Java Script.readScript怎么用?Java Script.readScript使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.elasticsearch.script.Script
的用法示例。
在下文中一共展示了Script.readScript方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: doReadFrom
import org.elasticsearch.script.Script; //导入方法依赖的package包/类
@Override
protected void doReadFrom(StreamInput in) throws IOException {
if (in.readBoolean()) {
reduceScript = Script.readScript(in);
}
aggregation = in.readGenericValue();
}
示例2: doReadFrom
import org.elasticsearch.script.Script; //导入方法依赖的package包/类
@SuppressWarnings("unchecked")
@Override
protected void doReadFrom(StreamInput in) throws IOException {
script = Script.readScript(in);
gapPolicy = GapPolicy.readFrom(in);
bucketsPathsMap = (Map<String, String>) in.readGenericValue();
}
示例3: doReadFrom
import org.elasticsearch.script.Script; //导入方法依赖的package包/类
@SuppressWarnings("unchecked")
@Override
protected void doReadFrom(StreamInput in) throws IOException {
script = Script.readScript(in);
formatter = ValueFormatterStreams.readOptional(in);
gapPolicy = GapPolicy.readFrom(in);
bucketsPathsMap = (Map<String, String>) in.readGenericValue();
}
示例4: readFrom
import org.elasticsearch.script.Script; //导入方法依赖的package包/类
@Override
public void readFrom(StreamInput in) throws IOException {
super.readFrom(in);
consistencyLevel = WriteConsistencyLevel.fromId(in.readByte());
type = in.readString();
id = in.readString();
routing = in.readOptionalString();
parent = in.readOptionalString();
if (in.readBoolean()) {
script = Script.readScript(in);
}
retryOnConflict = in.readVInt();
refresh = in.readBoolean();
if (in.readBoolean()) {
doc = new IndexRequest();
doc.readFrom(in);
}
int size = in.readInt();
if (size >= 0) {
fields = new String[size];
for (int i = 0; i < size; i++) {
fields[i] = in.readString();
}
}
if (in.readBoolean()) {
upsertRequest = new IndexRequest();
upsertRequest.readFrom(in);
}
docAsUpsert = in.readBoolean();
version = in.readLong();
versionType = VersionType.fromValue(in.readByte());
detectNoop = in.readBoolean();
scriptedUpsert = in.readBoolean();
}
示例5: readResult
import org.elasticsearch.script.Script; //导入方法依赖的package包/类
@Override
public SignificanceHeuristic readResult(StreamInput in) throws IOException {
Script script = Script.readScript(in);
return new ScriptHeuristic(null, script);
}