当前位置: 首页>>代码示例>>Java>>正文


Java Script.readScript方法代码示例

本文整理汇总了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();
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:8,代码来源:InternalScriptedMetric.java

示例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();
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:8,代码来源:BucketSelectorPipelineAggregator.java

示例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();
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:9,代码来源:BucketScriptPipelineAggregator.java

示例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();
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:35,代码来源:UpdateRequest.java

示例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);
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:6,代码来源:ScriptHeuristic.java


注:本文中的org.elasticsearch.script.Script.readScript方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。