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


Java StreamOutput.writeMap方法代码示例

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


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

示例1: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    out.writeOptionalStreamable(request);
    out.writeBoolean(simulate);
    out.writeBoolean(explain);
    out.writeBoolean(profile);
    scriptType.writeTo(out);
    out.writeOptionalString(script);
    boolean hasParams = scriptParams != null;
    out.writeBoolean(hasParams);
    if (hasParams) {
        out.writeMap(scriptParams);
    }
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:16,代码来源:SearchTemplateRequest.java

示例2: doWriteTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
protected final void doWriteTo(StreamOutput out) throws IOException {
    if (serializeTargetValueType()) {
        out.writeOptionalWriteable(targetValueType);
    }
    out.writeGenericValue(fields);
    out.writeOptionalWriteable(valueType);
    out.writeOptionalString(format);
    out.writeMap(missingMap);
    innerWriteTo(out);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:12,代码来源:MultiValuesSourceAggregationBuilder.java

示例3: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
/**
 * Writes a {@link StoredScriptSource} to a stream.  Version 5.3+ will write
 * all of the lang, code, and options parameters.  For versions prior to 5.3,
 * only the code parameter will be read in as a bytes reference.
 */
@Override
public void writeTo(StreamOutput out) throws IOException {
    if (out.getVersion().onOrAfter(Version.V_5_3_0_UNRELEASED)) {
        out.writeString(lang);
        out.writeString(code);
        @SuppressWarnings("unchecked")
        Map<String, Object> options = (Map<String, Object>)(Map)this.options;
        out.writeMap(options);
    } else {
        out.writeBytesReference(new BytesArray(code));
    }
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:18,代码来源:StoredScriptSource.java

示例4: writeTo

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

示例5: doWriteTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
protected void doWriteTo(StreamOutput out) throws IOException {
    out.writeOptionalWriteable(initScript);
    out.writeOptionalWriteable(mapScript);
    out.writeOptionalWriteable(combineScript);
    out.writeOptionalWriteable(reduceScript);
    boolean hasParams = params != null;
    out.writeBoolean(hasParams);
    if (hasParams) {
        out.writeMap(params);
    }
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:13,代码来源:ScriptedMetricAggregationBuilder.java

示例6: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public final void writeTo(StreamOutput out) throws IOException {
    out.writeString(name);
    out.writeStringArray(bucketsPaths);
    out.writeMap(metaData);
    doWriteTo(out);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:8,代码来源:PipelineAggregator.java

示例7: writeTo

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

示例8: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    totalStats.writeTo(out);
    out.writeVLong(openContexts);
    if (groupStats == null || groupStats.isEmpty()) {
        out.writeBoolean(false);
    } else {
        out.writeBoolean(true);
        out.writeMap(groupStats, StreamOutput::writeString, (stream, stats) -> stats.writeTo(stream));
    }
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:12,代码来源:SearchStats.java

示例9: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    totalStats.writeTo(out);
    if (typeStats == null || typeStats.isEmpty()) {
        out.writeBoolean(false);
    } else {
        out.writeBoolean(true);
        out.writeMap(typeStats, StreamOutput::writeString, (stream, stats) -> stats.writeTo(stream));
    }
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:11,代码来源:IndexingStats.java

示例10: doWriteTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
protected final void doWriteTo(StreamOutput out) throws IOException {
  if (serializeTargetValueType()) {
    out.writeOptionalWriteable(targetValueType);
  }
  out.writeGenericValue(fields);
  out.writeOptionalWriteable(valueType);
  out.writeOptionalString(format);
  out.writeMap(missingMap);
  innerWriteTo(out);
}
 
开发者ID:scaleborn,项目名称:elasticsearch-linear-regression,代码行数:12,代码来源:MultiValuesSourceAggregationBuilder.java

示例11: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public final void writeTo(StreamOutput out) throws IOException {
    out.writeString(script);
    boolean hasType = type != null;
    out.writeBoolean(hasType);
    if (hasType) {
        ScriptType.writeTo(type, out);
    }
    out.writeOptionalString(lang);
    boolean hasParams = params != null;
    out.writeBoolean(hasParams);
    if (hasParams) {
        out.writeMap(params);
    }
    doWriteTo(out);
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:17,代码来源:Script.java

示例12: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    if (headers == null) {
        out.writeBoolean(false);
    } else {
        out.writeBoolean(true);
        out.writeMap(headers);
    }
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:10,代码来源:TransportMessage.java

示例13: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
/**
 * write common parameters to {@link StreamOutput}
 */
@Override
public final void writeTo(StreamOutput out) throws IOException {
    out.writeOptionalStringArray(preTags);
    out.writeOptionalStringArray(postTags);
    out.writeOptionalVInt(fragmentSize);
    out.writeOptionalVInt(numOfFragments);
    out.writeOptionalString(highlighterType);
    out.writeOptionalString(fragmenter);
    boolean hasQuery = highlightQuery != null;
    out.writeBoolean(hasQuery);
    if (hasQuery) {
        out.writeNamedWriteable(highlightQuery);
    }
    out.writeOptionalWriteable(order);
    out.writeOptionalBoolean(highlightFilter);
    out.writeOptionalBoolean(forceSource);
    if (out.getVersion().onOrAfter(Version.V_5_4_0_UNRELEASED)) {
        out.writeOptionalWriteable(boundaryScannerType);
    }
    out.writeOptionalVInt(boundaryMaxScan);
    boolean hasBounaryChars = boundaryChars != null;
    out.writeBoolean(hasBounaryChars);
    if (hasBounaryChars) {
        out.writeString(String.valueOf(boundaryChars));
    }
    if (out.getVersion().onOrAfter(Version.V_5_4_0_UNRELEASED)) {
        boolean hasBoundaryScannerLocale = boundaryScannerLocale != null;
        out.writeBoolean(hasBoundaryScannerLocale);
        if (hasBoundaryScannerLocale) {
            out.writeString(boundaryScannerLocale.toLanguageTag());
        }
    }
    out.writeOptionalVInt(noMatchSize);
    out.writeOptionalVInt(phraseLimit);
    boolean hasOptions = options != null;
    out.writeBoolean(hasOptions);
    if (hasOptions) {
        out.writeMap(options);
    }
    out.writeOptionalBoolean(requireFieldMatch);
    doWriteTo(out);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:46,代码来源:AbstractHighlighterBuilder.java

示例14: writeTo

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

示例15: writeValueTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeValueTo(StreamOutput out, Object v) throws IOException {
    out.writeMap((Map<String, Object>)v);
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:5,代码来源:GeoShapeType.java


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