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