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


Java StreamOutput.writeOptionalNamedWriteable方法代码示例

本文整理汇总了Java中org.elasticsearch.common.io.stream.StreamOutput.writeOptionalNamedWriteable方法的典型用法代码示例。如果您正苦于以下问题:Java StreamOutput.writeOptionalNamedWriteable方法的具体用法?Java StreamOutput.writeOptionalNamedWriteable怎么用?Java StreamOutput.writeOptionalNamedWriteable使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.elasticsearch.common.io.stream.StreamOutput的用法示例。


在下文中一共展示了StreamOutput.writeOptionalNamedWriteable方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    taskId.writeTo(out);
    out.writeString(type);
    out.writeString(action);
    out.writeOptionalString(description);
    out.writeOptionalNamedWriteable(status);
    out.writeLong(startTime);
    out.writeLong(runningTimeNanos);
    out.writeBoolean(cancellable);
    parentTaskId.writeTo(out);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:13,代码来源:TaskInfo.java

示例2: innerWriteTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
protected void innerWriteTo(StreamOutput out) throws IOException {
    bucketCountThresholds.writeTo(out);
    out.writeOptionalString(executionHint);
    out.writeOptionalNamedWriteable(filterBuilder);
    out.writeOptionalWriteable(includeExclude);
    out.writeNamedWriteable(significanceHeuristic);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:9,代码来源:SignificantTermsAggregationBuilder.java

示例3: doWriteTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void doWriteTo(StreamOutput out) throws IOException {
    out.writeFloat(maxErrors);
    out.writeFloat(realWordErrorLikelihood);
    out.writeFloat(confidence);
    out.writeOptionalVInt(gramSize);
    out.writeOptionalNamedWriteable(model);
    out.writeBoolean(forceUnigrams);
    out.writeVInt(tokenLimit);
    out.writeOptionalString(preTag);
    out.writeOptionalString(postTag);
    out.writeString(separator);
    if (collateQuery != null) {
        out.writeBoolean(true);
        collateQuery.writeTo(out);
    } else {
        out.writeBoolean(false);
    }
    out.writeMapWithConsistentOrder(collateParams);
    out.writeOptionalBoolean(collatePrune);
    out.writeVInt(this.generators.size());
    for (Entry<String, List<CandidateGenerator>> entry : this.generators.entrySet()) {
        out.writeString(entry.getKey());
        List<CandidateGenerator> generatorsList = entry.getValue();
        out.writeVInt(generatorsList.size());
        for (CandidateGenerator generator : generatorsList) {
            generator.writeTo(out);
        }
    }
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:31,代码来源:PhraseSuggestionBuilder.java

示例4: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    out.writeString(fieldName);
    out.writeGenericValue(points);
    geoDistance.writeTo(out);
    unit.writeTo(out);
    order.writeTo(out);
    out.writeOptionalWriteable(sortMode);
    out.writeOptionalNamedWriteable(nestedFilter);
    out.writeOptionalString(nestedPath);
    validation.writeTo(out);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:13,代码来源:GeoDistanceSortBuilder.java

示例5: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    out.writeString(fieldName);
    out.writeOptionalNamedWriteable(nestedFilter);
    out.writeOptionalString(nestedPath);
    out.writeGenericValue(missing);
    out.writeOptionalWriteable(order);
    out.writeOptionalWriteable(sortMode);
    out.writeOptionalString(unmappedType);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:11,代码来源:FieldSortBuilder.java

示例6: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    script.writeTo(out);
    type.writeTo(out);
    order.writeTo(out);
    out.writeOptionalWriteable(sortMode);
    out.writeOptionalString(nestedPath);
    out.writeOptionalNamedWriteable(nestedFilter);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:10,代码来源:ScriptSortBuilder.java

示例7: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    out.writeStringArray(aliases);
    if (out.getVersion().onOrAfter(Version.V_5_1_1_UNRELEASED)) {
        out.writeOptionalNamedWriteable(filter);
    }
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:8,代码来源:AliasFilter.java

示例8: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    out.writeOptionalWriteable(aggregations);
    out.writeOptionalBoolean(explain);
    out.writeOptionalWriteable(fetchSourceContext);
    out.writeGenericValue(docValueFields);
    out.writeOptionalWriteable(storedFieldsContext);
    out.writeVInt(from);
    out.writeOptionalWriteable(highlightBuilder);
    out.writeList(indexBoosts);
    out.writeOptionalFloat(minScore);
    out.writeOptionalNamedWriteable(postQueryBuilder);
    out.writeOptionalNamedWriteable(queryBuilder);
    boolean hasRescoreBuilders = rescoreBuilders != null;
    out.writeBoolean(hasRescoreBuilders);
    if (hasRescoreBuilders) {
        out.writeNamedWriteableList(rescoreBuilders);
    }
    boolean hasScriptFields = scriptFields != null;
    out.writeBoolean(hasScriptFields);
    if (hasScriptFields) {
        out.writeList(scriptFields);
    }
    out.writeVInt(size);
    boolean hasSorts = sorts != null;
    out.writeBoolean(hasSorts);
    if (hasSorts) {
        out.writeVInt(sorts.size());
        for (SortBuilder<?> sort : sorts) {
            out.writeNamedWriteable(sort);
        }
    }
    boolean hasStats = stats != null;
    out.writeBoolean(hasStats);
    if (hasStats) {
        out.writeStringList(stats);
    }
    out.writeOptionalWriteable(suggestBuilder);
    out.writeVInt(terminateAfter);
    out.writeOptionalWriteable(timeout);
    out.writeBoolean(trackScores);
    out.writeOptionalBoolean(version);
    out.writeNamedWriteableList(extBuilders);
    out.writeBoolean(profile);
    out.writeOptionalWriteable(searchAfterBuilder);
    out.writeOptionalWriteable(sliceBuilder);
    if (out.getVersion().onOrAfter(Version.V_5_3_0_UNRELEASED)) {
        out.writeOptionalWriteable(collapse);
    }
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:51,代码来源:SearchSourceBuilder.java


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