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


Java StreamOutput.writeNamedWriteable方法代码示例

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


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

示例1: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    out.writeString(type);
    out.writeString(id);
    out.writeOptionalString(routing);
    out.writeOptionalString(preference);
    out.writeNamedWriteable(query);
    filteringAlias.writeTo(out);
    out.writeOptionalStringArray(storedFields);
    out.writeOptionalWriteable(fetchSourceContext);
    out.writeVLong(nowInMillis);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:14,代码来源:ExplainRequest.java

示例2: doWriteTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void doWriteTo(StreamOutput out) throws IOException {
    out.writeNamedWriteable(queryBuilder);
    scoreMode.writeTo(out);
    out.writeFloat(rescoreQueryWeight);
    out.writeFloat(queryWeight);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:8,代码来源:QueryRescorerBuilder.java

示例3: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    out.writeOptionalString(globalText);
    final int size = suggestions.size();
    out.writeVInt(size);
    for (Entry<String, SuggestionBuilder<?>> suggestion : suggestions.entrySet()) {
        out.writeString(suggestion.getKey());
        out.writeNamedWriteable(suggestion.getValue());
    }
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:11,代码来源:SuggestBuilder.java

示例4: doWriteTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
protected void doWriteTo(StreamOutput out) throws IOException {
    out.writeNamedWriteable(format);
    if (counts != null) {
        out.writeBoolean(true);
        counts.writeTo(0, out);
    } else {
        out.writeBoolean(false);
    }
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:11,代码来源:InternalCardinality.java

示例5: doWriteTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
protected void doWriteTo(StreamOutput out) throws IOException {
    out.writeString(type);
    out.writeBoolean(score);
    out.writeNamedWriteable(query);
    out.writeOptionalWriteable(innerHit);
    out.writeBoolean(ignoreUnmapped);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:9,代码来源:HasParentQueryBuilder.java

示例6: doWriteTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
protected void doWriteTo(StreamOutput out) throws IOException {
    out.writeNamedWriteable(query);
    out.writeList(Arrays.asList(filterFunctionBuilders));
    out.writeFloat(maxBoost);
    out.writeOptionalFloat(minScore);
    out.writeOptionalWriteable(boostMode);
    scoreMode.writeTo(out);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:10,代码来源:FunctionScoreQueryBuilder.java

示例7: doWriteTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void doWriteTo(StreamOutput out) throws IOException {
    out.writeNamedWriteable(formatter);
    gapPolicy.writeTo(out);
    out.writeVInt(window);
    out.writeVInt(predict);
    out.writeNamedWriteable(model);
    out.writeBoolean(minimize);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:10,代码来源:MovAvgPipelineAggregator.java

示例8: writeTermTypeInfoTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
protected final void writeTermTypeInfoTo(StreamOutput out) throws IOException {
    out.writeNamedWriteable(format);
    out.writeVLong(subsetSize);
    out.writeVLong(supersetSize);
    out.writeNamedWriteable(significanceHeuristic);
    out.writeList(buckets);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:9,代码来源:InternalMappedSignificantTerms.java

示例9: doWriteTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
protected void doWriteTo(StreamOutput out) throws IOException {
    InternalOrder.Streams.writeOrder(order, out);
    out.writeVLong(minDocCount);
    if (minDocCount == 0) {
        emptyBucketInfo.writeTo(out);
    }
    out.writeNamedWriteable(format);
    out.writeBoolean(keyed);
    out.writeList(buckets);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:12,代码来源:InternalHistogram.java

示例10: doWriteTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
protected void doWriteTo(StreamOutput out) throws IOException {
    out.writeString(path);
    out.writeVInt(scoreMode.ordinal());
    out.writeNamedWriteable(query);
    out.writeOptionalWriteable(innerHitBuilder);
    out.writeBoolean(ignoreUnmapped);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:9,代码来源:NestedQueryBuilder.java

示例11: writeToNoId

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
public void writeToNoId(StreamOutput out) throws IOException {
    out.writeVInt(from);
    out.writeVInt(size);
    if (sortValueFormats == null) {
        out.writeVInt(0);
    } else {
        out.writeVInt(1 + sortValueFormats.length);
        for (int i = 0; i < sortValueFormats.length; ++i) {
            out.writeNamedWriteable(sortValueFormats[i]);
        }
    }
    writeTopDocs(out, topDocs);
    if (aggregations == null) {
        out.writeBoolean(false);
    } else {
        out.writeBoolean(true);
        aggregations.writeTo(out);
    }
    out.writeNamedWriteableList(pipelineAggregators == null ? emptyList() : pipelineAggregators);
    if (suggest == null) {
        out.writeBoolean(false);
    } else {
        out.writeBoolean(true);
        suggest.writeTo(out);
    }
    out.writeBoolean(searchTimedOut);
    out.writeOptionalBoolean(terminatedEarly);
    out.writeOptionalWriteable(profileShardResults);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:30,代码来源:QuerySearchResult.java

示例12: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    out.writeVInt(shapes.size());
    for (ShapeBuilder shape : shapes) {
        out.writeNamedWriteable(shape);
    }
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:8,代码来源:GeometryCollectionBuilder.java

示例13: 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

示例14: doWriteTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
protected void doWriteTo(StreamOutput out) throws IOException {
    out.writeNamedWriteable(format);
    out.writeByteArray(hyperLogLogPlusBytes);
}
 
开发者ID:bazaarvoice,项目名称:elasticsearch-hyperloglog,代码行数:6,代码来源:InternalHyperUniqueSum.java

示例15: doWriteTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
protected void doWriteTo(StreamOutput out) throws IOException {
    out.writeNamedWriteable(matchBuilder);
    out.writeInt(end);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:6,代码来源:SpanFirstQueryBuilder.java


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