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


Java StreamOutput.writeGenericValue方法代码示例

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


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

示例1: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    // marshall doc count
    out.writeGenericValue(docCount);
    // marshall fieldSum
    out.writeGenericValue(fieldSum);
    // counts
    out.writeGenericValue(counts);
    // mean
    out.writeGenericValue(means);
    // variances
    out.writeGenericValue(variances);
    // skewness
    out.writeGenericValue(skewness);
    // kurtosis
    out.writeGenericValue(kurtosis);
    // covariances
    out.writeGenericValue(covariances);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:20,代码来源:RunningStats.java

示例2: doWriteTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
protected void doWriteTo(StreamOutput out) throws IOException {
    out.writeGenericValue(value);
    out.writeVInt(fieldsBoosts.size());
    for (Map.Entry<String, Float> fieldsEntry : fieldsBoosts.entrySet()) {
        out.writeString(fieldsEntry.getKey());
        out.writeFloat(fieldsEntry.getValue());
    }
    type.writeTo(out);
    operator.writeTo(out);
    out.writeOptionalString(analyzer);
    out.writeVInt(slop);
    out.writeOptionalWriteable(fuzziness);
    out.writeVInt(prefixLength);
    out.writeVInt(maxExpansions);
    out.writeOptionalString(minimumShouldMatch);
    out.writeOptionalString(fuzzyRewrite);
    out.writeOptionalBoolean(useDisMax);
    out.writeOptionalFloat(tieBreaker);
    out.writeBoolean(lenient);
    out.writeOptionalFloat(cutoffFrequency);
    zeroTermsQuery.writeTo(out);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:24,代码来源:MultiMatchQueryBuilder.java

示例3: doWriteTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
protected void doWriteTo(StreamOutput out) throws IOException {
    out.writeString(this.fieldName);
    out.writeGenericValue(this.from);
    out.writeGenericValue(this.to);
    out.writeBoolean(this.includeLower);
    out.writeBoolean(this.includeUpper);
    out.writeOptionalTimeZone(timeZone);
    String formatString = null;
    if (this.format != null) {
        formatString = this.format.format();
    }
    out.writeOptionalString(formatString);
    if (out.getVersion().onOrAfter(Version.V_5_2_0_UNRELEASED)) {
        String relationString = null;
        if (this.relation != null) {
            relationString = this.relation.getRelationName();
        }
        out.writeOptionalString(relationString);
    }
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:22,代码来源:RangeQueryBuilder.java

示例4: writeTo

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

示例5: doWriteTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
protected void doWriteTo(StreamOutput out) throws IOException {
    out.writeString(this.fieldName);
    out.writeGenericValue(this.value);
    this.fuzziness.writeTo(out);
    out.writeVInt(this.prefixLength);
    out.writeVInt(this.maxExpansions);
    out.writeBoolean(this.transpositions);
    out.writeOptionalString(this.rewrite);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:11,代码来源:FuzzyQueryBuilder.java

示例6: 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.writeBoolean(doc != null);
    if (doc != null) {
        out.writeBytesReference(doc);
    }
    out.writeOptionalString(routing);
    out.writeOptionalString(preference);
    long longFlags = 0;
    for (Flag flag : flagsEnum) {
        longFlags |= (1 << flag.ordinal());
    }
    out.writeVLong(longFlags);
    if (selectedFields != null) {
        out.writeVInt(selectedFields.size());
        for (String selectedField : selectedFields) {
            out.writeString(selectedField);
        }
    } else {
        out.writeVInt(0);
    }
    out.writeBoolean(perFieldAnalyzer != null);
    if (perFieldAnalyzer != null) {
        out.writeGenericValue(perFieldAnalyzer);
    }
    out.writeBoolean(filterSettings != null);
    if (filterSettings != null) {
        filterSettings.writeTo(out);
    }
    out.writeBoolean(realtime());
    out.writeByte(versionType.getValue());
    out.writeLong(version);
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:38,代码来源:TermVectorsRequest.java

示例7: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    out.writeString(term);
    out.writeInt(startOffset);
    out.writeInt(endOffset);
    out.writeVInt(position);
    if (out.getVersion().onOrAfter(Version.V_5_2_0_UNRELEASED)) {
        out.writeOptionalVInt(positionLength > 1 ? positionLength : null);
    }
    out.writeOptionalString(type);
    if (out.getVersion().onOrAfter(Version.V_2_2_0)) {
        out.writeGenericValue(attributes);
    }
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:15,代码来源:AnalyzeResponse.java

示例8: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);

    out.writeBoolean(rowCount < 0);
    out.writeVLong(Math.abs(rowCount));
    out.writeInt(rows.length);
    for (Object[] row : rows) {
        for (int j = 0, len = cols().length; j < len; j++) {
            out.writeGenericValue(row[j]);
        }
    }
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:14,代码来源:SQLResponse.java

示例9: writeTo

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

示例10: writeTo

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

示例11: doWriteTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
protected void doWriteTo(StreamOutput out) throws IOException {
    boolean hasScript = reduceScript != null;
    out.writeBoolean(hasScript);
    if (hasScript) {
        reduceScript.writeTo(out);
    }
    out.writeGenericValue(aggregation);
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:10,代码来源:InternalScriptedMetric.java

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

示例13: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    out.writeString(name);
    out.writeVInt(values.size());
    for (Object value : values) {
        out.writeGenericValue(value);
    }
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:9,代码来源:SearchHitField.java

示例14: doWriteTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
protected void doWriteTo(StreamOutput out) throws IOException {
    out.writeString(fieldName);
    out.writeGenericValue(value);
    out.writeVInt(slop);
    out.writeVInt(maxExpansions);
    out.writeOptionalString(analyzer);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:9,代码来源:MatchPhrasePrefixQueryBuilder.java

示例15: writeValueTo

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


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