当前位置: 首页>>代码示例>>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;未经允许,请勿转载。