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