當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。