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


Java StreamOutput.writeList方法代码示例

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


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

示例1: doWriteTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
protected void doWriteTo(StreamOutput out) throws IOException {
    out.writeOptionalStringArray(fields);
    out.writeStringArray(likeTexts);
    out.writeList(Arrays.asList(likeItems));
    out.writeStringArray(unlikeTexts);
    out.writeList(Arrays.asList(unlikeItems));
    out.writeVInt(maxQueryTerms);
    out.writeVInt(minTermFreq);
    out.writeVInt(minDocFreq);
    out.writeVInt(maxDocFreq);
    out.writeVInt(minWordLength);
    out.writeVInt(maxWordLength);
    out.writeOptionalStringArray(stopWords);
    out.writeOptionalString(analyzer);
    out.writeString(minimumShouldMatch);
    out.writeGenericValue(boostTerms);
    out.writeBoolean(include);
    out.writeBoolean(failOnUnsupportedField);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:21,代码来源:MoreLikeThisQueryBuilder.java

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

示例3: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    indicesLevelRequest.writeTo(out);
    out.writeList(shards);
    out.writeString(nodeId);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:8,代码来源:TransportBroadcastByNodeAction.java

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

示例5: 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.writeLong(offset);
    out.writeNamedWriteable(format);
    out.writeBoolean(keyed);
    out.writeList(buckets);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:13,代码来源:InternalDateHistogram.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: writeTo

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

示例8: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    out.writeVLong(timestamp);
    out.writeVLong(uptime);
    mem.writeTo(out);
    threads.writeTo(out);
    gc.writeTo(out);
    out.writeList(bufferPools);
    classes.writeTo(out);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:11,代码来源:JvmStats.java

示例9: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    took.writeTo(out);
    status.writeTo(out);
    out.writeList(bulkFailures);
    out.writeList(searchFailures);
    out.writeBoolean(timedOut);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:10,代码来源:BulkByScrollResponse.java

示例10: doWriteTo

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

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

示例12: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(final StreamOutput out) throws IOException {
    out.writeList(added);
    out.writeVInt(removedCount);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:6,代码来源:IndexGraveyard.java

示例13: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    out.writeList(entries);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:5,代码来源:SnapshotDeletionsInProgress.java

示例14: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    out.writeList(stats);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:5,代码来源:ThreadPoolStats.java

示例15: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    out.writeList(infos);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:5,代码来源:ThreadPoolInfo.java


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