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


Java StreamOutput.writeVLong方法代码示例

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


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

示例1: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    out.writeString(index);
    out.writeString(type);
    out.writeString(id);
    out.writeVLong(docVersion);
    final boolean docExists = isExists();
    out.writeBoolean(docExists);
    out.writeBoolean(artificial);
    out.writeVLong(tookInMillis);
    out.writeBoolean(hasTermVectors());
    if (hasTermVectors()) {
        out.writeBytesReference(headerRef);
        out.writeBytesReference(termVectors);
    }
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:17,代码来源:TermVectorsResponse.java

示例2: writeTo

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

    out.writeVLong(fetchCount);
    out.writeVLong(fetchTimeInMillis);
    out.writeVLong(fetchCurrent);

    out.writeVLong(scrollCount);
    out.writeVLong(scrollTimeInMillis);
    out.writeVLong(scrollCurrent);

    out.writeVLong(suggestCount);
    out.writeVLong(suggestTimeInMillis);
    out.writeVLong(suggestCurrent);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:19,代码来源:SearchStats.java

示例3: innerWriteTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
protected void innerWriteTo(StreamOutput out, boolean asKey) throws IOException {
    shardId.writeTo(out);
    out.writeByte(searchType.id());
    if (!asKey) {
        out.writeVInt(numberOfShards);
    }
    out.writeOptionalWriteable(scroll);
    out.writeOptionalWriteable(source);
    out.writeStringArray(types);
    aliasFilter.writeTo(out);
    if (out.getVersion().onOrAfter(Version.V_5_2_0_UNRELEASED)) {
        out.writeFloat(indexBoost);
    }
    if (!asKey) {
        out.writeVLong(nowInMillis);
    }
    out.writeOptionalBoolean(requestCache);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:19,代码来源:ShardSearchLocalRequest.java

示例4: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    out.writeVLong(sizeInBytes);
    if (out.getVersion().before(Version.V_6_0_0_alpha1_UNRELEASED)) {
        out.writeVLong(0L); // throttleTimeInNanos
    }
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:8,代码来源:StoreStats.java

示例5: doWriteTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
protected void doWriteTo(StreamOutput out) throws IOException {
    out.writeVLong(count);
    if (centroid != null) {
        out.writeBoolean(true);
        out.writeLong(GeoEncodingUtils.mortonHash(centroid.lon(), centroid.lat()));
    } else {
        out.writeBoolean(false);
    }
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:11,代码来源:InternalGeoCentroid.java

示例6: writeTo

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

示例7: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    out.writeVLong(heapCommitted);
    out.writeVLong(heapUsed);
    out.writeVLong(nonHeapCommitted);
    out.writeVLong(nonHeapUsed);
    out.writeVLong(heapMax);
    out.writeVInt(pools.length);
    for (MemoryPool pool : pools) {
        pool.writeTo(out);
    }
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:13,代码来源:JvmStats.java

示例8: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    out.writeVLong(transferId);
    out.writeBytesReference(content);
    out.writeBoolean(isLast);
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:8,代码来源:BlobRecoveryChunkRequest.java

示例9: doWriteTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
protected final void doWriteTo(StreamOutput out) throws IOException {
    out.writeNamedWriteable(format);
    out.writeVLong(count);
    out.writeDouble(min);
    out.writeDouble(max);
    out.writeDouble(sum);
    writeOtherStatsTo(out);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:10,代码来源:InternalStats.java

示例10: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    out.writeVLong(existsCount);
    out.writeVLong(existsTimeInMillis);
    out.writeVLong(missingCount);
    out.writeVLong(missingTimeInMillis);
    out.writeVLong(current);
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:9,代码来源:GetStats.java

示例11: writeTo

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

    out.writeVInt(shardFailures.length);
    for (ShardSearchFailure shardSearchFailure : shardFailures) {
        shardSearchFailure.writeTo(out);
    }

    out.writeOptionalString(scrollId);
    out.writeVLong(tookInMillis);
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:16,代码来源:SearchResponse.java

示例12: doWriteTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
protected void doWriteTo(StreamOutput out) throws IOException {
    out.writeString(factory.type());
    InternalOrder.Streams.writeOrder(order, out);
    out.writeVLong(minDocCount);
    if (minDocCount == 0) {
        EmptyBucketInfo.writeTo(emptyBucketInfo, out);
    }
    ValueFormatterStreams.writeOptional(formatter, out);
    out.writeBoolean(keyed);
    out.writeVInt(buckets.size());
    for (B bucket : buckets) {
        bucket.writeTo(out);
    }
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:16,代码来源:InternalHistogram.java

示例13: writeTo

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

示例14: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    out.writeVLong(n);
    out.writeDouble(value);
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:6,代码来源:GeometricMeanAggregation.java

示例15: doWriteTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
protected void doWriteTo(StreamOutput out) throws IOException {
    ValueFormatterStreams.writeOptional(valueFormatter, out);
    out.writeDouble(sum);
    out.writeVLong(count);
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:7,代码来源:InternalAvg.java


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