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


Java StreamInput.readList方法代码示例

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


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

示例1: Status

import org.elasticsearch.common.io.stream.StreamInput; //导入方法依赖的package包/类
public Status(StreamInput in) throws IOException {
    if (in.getVersion().onOrAfter(Version.V_5_1_1_UNRELEASED)) {
        sliceId = in.readOptionalVInt();
    } else {
        sliceId = null;
    }
    total = in.readVLong();
    updated = in.readVLong();
    created = in.readVLong();
    deleted = in.readVLong();
    batches = in.readVInt();
    versionConflicts = in.readVLong();
    noops = in.readVLong();
    bulkRetries = in.readVLong();
    searchRetries = in.readVLong();
    throttled = new TimeValue(in);
    requestsPerSecond = in.readFloat();
    reasonCancelled = in.readOptionalString();
    throttledUntil = new TimeValue(in);
    if (in.getVersion().onOrAfter(Version.V_5_1_1_UNRELEASED)) {
        sliceStatuses = in.readList(stream -> stream.readOptionalWriteable(StatusOrException::new));
    } else {
        sliceStatuses = emptyList();
    }
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:26,代码来源:BulkByScrollTask.java

示例2: readFrom

import org.elasticsearch.common.io.stream.StreamInput; //导入方法依赖的package包/类
@Override
public void readFrom(StreamInput in) throws IOException {
    aggregations = in.readList(stream -> in.readNamedWriteable(InternalAggregation.class));
    if (aggregations.isEmpty()) {
        aggregationsAsMap = emptyMap();
    }
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:8,代码来源:InternalAggregations.java

示例3: readFrom

import org.elasticsearch.common.io.stream.StreamInput; //导入方法依赖的package包/类
@Override
public void readFrom(StreamInput in) throws IOException {
    super.readFrom(in);
    took = new TimeValue(in);
    status = new BulkByScrollTask.Status(in);
    bulkFailures = in.readList(Failure::new);
    searchFailures = in.readList(SearchFailure::new);
    timedOut = in.readBoolean();
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:10,代码来源:BulkByScrollResponse.java

示例4: InternalBinaryRange

import org.elasticsearch.common.io.stream.StreamInput; //导入方法依赖的package包/类
/**
 * Read from a stream.
 */
public InternalBinaryRange(StreamInput in) throws IOException {
    super(in);
    format = in.readNamedWriteable(DocValueFormat.class);
    keyed = in.readBoolean();
    buckets = in.readList(stream -> new Bucket(stream, format, keyed));
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:10,代码来源:InternalBinaryRange.java

示例5: AbstractRangeBuilder

import org.elasticsearch.common.io.stream.StreamInput; //导入方法依赖的package包/类
/**
 * Read from a stream.
 */
protected AbstractRangeBuilder(StreamInput in, InternalRange.Factory<?, ?> rangeFactory, Writeable.Reader<R> rangeReader)
        throws IOException {
    super(in, rangeFactory.getValueSourceType(), rangeFactory.getValueType());
    this.rangeFactory = rangeFactory;
    ranges = in.readList(rangeReader);
    keyed = in.readBoolean();
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:11,代码来源:AbstractRangeBuilder.java

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

示例7: InternalHistogram

import org.elasticsearch.common.io.stream.StreamInput; //导入方法依赖的package包/类
/**
 * Stream from a stream.
 */
public InternalHistogram(StreamInput in) throws IOException {
    super(in);
    order = InternalOrder.Streams.readOrder(in);
    minDocCount = in.readVLong();
    if (minDocCount == 0) {
        emptyBucketInfo = new EmptyBucketInfo(in);
    } else {
        emptyBucketInfo = null;
    }
    format = in.readNamedWriteable(DocValueFormat.class);
    keyed = in.readBoolean();
    buckets = in.readList(stream -> new Bucket(stream, keyed, format));
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:17,代码来源:InternalHistogram.java

示例8: InternalDateHistogram

import org.elasticsearch.common.io.stream.StreamInput; //导入方法依赖的package包/类
/**
 * Stream from a stream.
 */
public InternalDateHistogram(StreamInput in) throws IOException {
    super(in);
    order = InternalOrder.Streams.readOrder(in);
    minDocCount = in.readVLong();
    if (minDocCount == 0) {
        emptyBucketInfo = new EmptyBucketInfo(in);
    } else {
        emptyBucketInfo = null;
    }
    offset = in.readLong();
    format = in.readNamedWriteable(DocValueFormat.class);
    keyed = in.readBoolean();
    buckets = in.readList(stream -> new Bucket(stream, keyed, format));
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:18,代码来源:InternalDateHistogram.java

示例9: JvmStats

import org.elasticsearch.common.io.stream.StreamInput; //导入方法依赖的package包/类
public JvmStats(StreamInput in) throws IOException {
    timestamp = in.readVLong();
    uptime = in.readVLong();
    mem = new Mem(in);
    threads = new Threads(in);
    gc = new GarbageCollectors(in);
    bufferPools = in.readList(BufferPool::new);
    classes = new Classes(in);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:10,代码来源:JvmStats.java

示例10: Mem

import org.elasticsearch.common.io.stream.StreamInput; //导入方法依赖的package包/类
public Mem(StreamInput in) throws IOException {
    heapCommitted = in.readVLong();
    heapUsed = in.readVLong();
    nonHeapCommitted = in.readVLong();
    nonHeapUsed = in.readVLong();
    heapMax = in.readVLong();
    pools = in.readList(MemoryPool::new);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:9,代码来源:JvmStats.java

示例11: readFrom

import org.elasticsearch.common.io.stream.StreamInput; //导入方法依赖的package包/类
@Override
public void readFrom(StreamInput in) throws IOException {
    super.readFrom(in);
    clusterName = new ClusterName(in);
    nodes = readNodesFrom(in);
    failures = in.readList(FailedNodeException::new);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:8,代码来源:BaseNodesResponse.java

示例12: readNodesFrom

import org.elasticsearch.common.io.stream.StreamInput; //导入方法依赖的package包/类
@Override
protected List<ClusterStatsNodeResponse> readNodesFrom(StreamInput in) throws IOException {
    List<ClusterStatsNodeResponse> nodes = in.readList(ClusterStatsNodeResponse::readNodeResponse);

    // built from nodes rather than from the stream directly
    nodesStats = new ClusterStatsNodes(nodes);
    indicesStats = new ClusterStatsIndices(nodes);

    return nodes;
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:11,代码来源:ClusterStatsResponse.java

示例13: readFrom

import org.elasticsearch.common.io.stream.StreamInput; //导入方法依赖的package包/类
@Override
public void readFrom(StreamInput in) throws IOException {
    super.readFrom(in);
    nodeId = in.readString();
    totalShards = in.readVInt();
    results = in.readList((stream) -> stream.readBoolean() ? readShardResult(stream) : null);
    if (in.readBoolean()) {
        exceptions = in.readList(BroadcastShardOperationFailedException::new);
    } else {
        exceptions = null;
    }
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:13,代码来源:TransportBroadcastByNodeAction.java

示例14: readNodesFrom

import org.elasticsearch.common.io.stream.StreamInput; //导入方法依赖的package包/类
@Override
protected List<NodeStoreFilesMetaData> readNodesFrom(StreamInput in) throws IOException {
    return in.readList(NodeStoreFilesMetaData::readListShardStoreNodeOperationResponse);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:5,代码来源:TransportNodesListShardStoreMetaData.java

示例15: InternalGeoHashGrid

import org.elasticsearch.common.io.stream.StreamInput; //导入方法依赖的package包/类
/**
 * Read from a stream.
 */
public InternalGeoHashGrid(StreamInput in) throws IOException {
    super(in);
    requiredSize = readSize(in);
    buckets = in.readList(Bucket::new);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:9,代码来源:InternalGeoHashGrid.java


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