當前位置: 首頁>>代碼示例>>Java>>正文


Java StreamInput.readZLong方法代碼示例

本文整理匯總了Java中org.elasticsearch.common.io.stream.StreamInput.readZLong方法的典型用法代碼示例。如果您正苦於以下問題:Java StreamInput.readZLong方法的具體用法?Java StreamInput.readZLong怎麽用?Java StreamInput.readZLong使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.elasticsearch.common.io.stream.StreamInput的用法示例。


在下文中一共展示了StreamInput.readZLong方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: readFrom

import org.elasticsearch.common.io.stream.StreamInput; //導入方法依賴的package包/類
@Override
public void readFrom(StreamInput in) throws IOException {
    super.readFrom(in);
    recoveryId = in.readLong();
    shardId = ShardId.readShardId(in);
    if (in.getVersion().onOrAfter(Version.V_6_0_0_alpha1_UNRELEASED)) {
        globalCheckpoint = in.readZLong();
    } else {
        globalCheckpoint = SequenceNumbersService.UNASSIGNED_SEQ_NO;
    }
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:12,代碼來源:RecoveryFinalizeRecoveryRequest.java

示例2: InternalMappedTerms

import org.elasticsearch.common.io.stream.StreamInput; //導入方法依賴的package包/類
/**
 * Read from a stream.
 */
protected InternalMappedTerms(StreamInput in, Bucket.Reader<B> bucketReader) throws IOException {
    super(in);
    docCountError = in.readZLong();
    format = in.readNamedWriteable(DocValueFormat.class);
    shardSize = readSize(in);
    showTermDocCountError = in.readBoolean();
    otherDocCount = in.readVLong();
    buckets = in.readList(stream -> bucketReader.read(stream, format, showTermDocCountError));
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:13,代碼來源:InternalMappedTerms.java

示例3: readFrom

import org.elasticsearch.common.io.stream.StreamInput; //導入方法依賴的package包/類
@Override
public void readFrom(StreamInput in) throws IOException {
    super.readFrom(in);
    shardId = ShardId.readShardId(in);
    type = in.readString();
    id = in.readString();
    version = in.readZLong();
    if (in.getVersion().onOrAfter(Version.V_6_0_0_alpha1_UNRELEASED)) {
        seqNo = in.readZLong();
    } else {
        seqNo = SequenceNumbersService.UNASSIGNED_SEQ_NO;
    }
    forcedRefresh = in.readBoolean();
    result = Result.readFrom(in);
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:16,代碼來源:DocWriteResponse.java

示例4: readFrom

import org.elasticsearch.common.io.stream.StreamInput; //導入方法依賴的package包/類
@Override
public void readFrom(StreamInput in) throws IOException {
    if (in.getVersion().onOrAfter(Version.V_6_0_0_alpha1_UNRELEASED)) {
        super.readFrom(in);
        localCheckpoint = in.readZLong();
        allocationId = in.readString();
    } else {
        // 5.x used to read empty responses, which don't really read anything off the stream, so just do nothing.
    }
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:11,代碼來源:TransportReplicationAction.java

示例5: readFrom

import org.elasticsearch.common.io.stream.StreamInput; //導入方法依賴的package包/類
@Override
public void readFrom(StreamInput in) throws IOException {
    super.readFrom(in);
    responses = new BulkItemResponse[in.readVInt()];
    for (int i = 0; i < responses.length; i++) {
        responses[i] = BulkItemResponse.readBulkItem(in);
    }
    tookInMillis = in.readVLong();
    ingestTookInMillis = in.readZLong();
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:11,代碼來源:BulkResponse.java

示例6: readFrom

import org.elasticsearch.common.io.stream.StreamInput; //導入方法依賴的package包/類
@Override
public void readFrom(StreamInput in) throws IOException {
    super.readFrom(in);
    checkpoint = in.readZLong();
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:6,代碼來源:GlobalCheckpointSyncAction.java

示例7: SeqNoStats

import org.elasticsearch.common.io.stream.StreamInput; //導入方法依賴的package包/類
public SeqNoStats(StreamInput in) throws IOException {
    this(in.readZLong(), in.readZLong(), in.readZLong());
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:4,代碼來源:SeqNoStats.java

示例8: TimeValue

import org.elasticsearch.common.io.stream.StreamInput; //導入方法依賴的package包/類
/**
 * Read from a stream.
 */
public TimeValue(StreamInput in) throws IOException {
    duration = in.readZLong();
    timeUnit = BYTE_TIME_UNIT_MAP.get(in.readByte());
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:8,代碼來源:TimeValue.java


注:本文中的org.elasticsearch.common.io.stream.StreamInput.readZLong方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。