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


Java StreamInput.readOptionalStreamable方法代碼示例

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


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

示例1: CommonStats

import org.elasticsearch.common.io.stream.StreamInput; //導入方法依賴的package包/類
public CommonStats(StreamInput in) throws IOException {
    docs = in.readOptionalStreamable(DocsStats::new);
    store = in.readOptionalStreamable(StoreStats::new);
    indexing = in.readOptionalStreamable(IndexingStats::new);
    get = in.readOptionalStreamable(GetStats::new);
    search = in.readOptionalStreamable(SearchStats::new);
    merge = in.readOptionalStreamable(MergeStats::new);
    refresh =  in.readOptionalStreamable(RefreshStats::new);
    flush =  in.readOptionalStreamable(FlushStats::new);
    warmer =  in.readOptionalStreamable(WarmerStats::new);
    queryCache = in.readOptionalStreamable(QueryCacheStats::new);
    fieldData =  in.readOptionalStreamable(FieldDataStats::new);
    completion =  in.readOptionalStreamable(CompletionStats::new);
    segments =  in.readOptionalStreamable(SegmentsStats::new);
    translog = in.readOptionalStreamable(TranslogStats::new);
    requestCache = in.readOptionalStreamable(RequestCacheStats::new);
    recoveryStats = in.readOptionalStreamable(RecoveryStats::new);
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:19,代碼來源:CommonStats.java

示例2: readFrom

import org.elasticsearch.common.io.stream.StreamInput; //導入方法依賴的package包/類
@Override
public void readFrom(StreamInput in) throws IOException {
    super.readFrom(in);
    request = in.readOptionalStreamable(SearchRequest::new);
    simulate = in.readBoolean();
    explain = in.readBoolean();
    profile = in.readBoolean();
    scriptType = ScriptType.readFrom(in);
    script = in.readOptionalString();
    if (in.readBoolean()) {
        scriptParams = in.readMap();
    }
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:14,代碼來源:SearchTemplateRequest.java

示例3: readFrom

import org.elasticsearch.common.io.stream.StreamInput; //導入方法依賴的package包/類
@Override
public void readFrom(StreamInput in) throws IOException {
    super.readFrom(in);
    int size = in.readVInt();
    tokens = new ArrayList<>(size);
    for (int i = 0; i < size; i++) {
        tokens.add(AnalyzeToken.readAnalyzeToken(in));
    }
    if (in.getVersion().onOrAfter(Version.V_2_2_0)) {
        detail = in.readOptionalStreamable(DetailAnalyzeResponse::new);
    }
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:13,代碼來源:AnalyzeResponse.java

示例4: readFrom

import org.elasticsearch.common.io.stream.StreamInput; //導入方法依賴的package包/類
@Override
public void readFrom(StreamInput in) throws IOException {
    super.readFrom(in);
    int size = in.readVInt();
    tokens = new ArrayList<>(size);
    for (int i = 0; i < size; i++) {
        tokens.add(AnalyzeToken.readAnalyzeToken(in));
    }
    if (in.getVersion().onOrAfter(Version.V_2_2_0)) {
        detail = in.readOptionalStreamable(new DetailAnalyzeResponse());
    }
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:13,代碼來源:AnalyzeResponse.java

示例5: readFrom

import org.elasticsearch.common.io.stream.StreamInput; //導入方法依賴的package包/類
@Override
public void readFrom(StreamInput in) throws IOException {
    super.readFrom(in);
    timestamp = in.readVLong();
    if (in.readBoolean()) {
        indices = NodeIndicesStats.readIndicesStats(in);
    }
    if (in.readBoolean()) {
        os = OsStats.readOsStats(in);
    }
    if (in.readBoolean()) {
        process = ProcessStats.readProcessStats(in);
    }
    if (in.readBoolean()) {
        jvm = JvmStats.readJvmStats(in);
    }
    if (in.readBoolean()) {
        threadPool = ThreadPoolStats.readThreadPoolStats(in);
    }
    if (in.readBoolean()) {
        fs = FsInfo.readFsInfo(in);
    }
    if (in.readBoolean()) {
        transport = TransportStats.readTransportStats(in);
    }
    if (in.readBoolean()) {
        http = HttpStats.readHttpStats(in);
    }
    breaker = AllCircuitBreakerStats.readOptionalAllCircuitBreakerStats(in);
    scriptStats = in.readOptionalStreamable(new ScriptStats());

}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:33,代碼來源:NodeStats.java

示例6: readFrom

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

示例7: readOptionalAggregations

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

示例8: readOptionalCommitStatsFrom

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

示例9: readOptionalAllCircuitBreakerStats

import org.elasticsearch.common.io.stream.StreamInput; //導入方法依賴的package包/類
public static AllCircuitBreakerStats readOptionalAllCircuitBreakerStats(StreamInput in) throws IOException {
    AllCircuitBreakerStats stats = in.readOptionalStreamable(new AllCircuitBreakerStats());
    return stats;
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:5,代碼來源:AllCircuitBreakerStats.java

示例10: readOptionalCircuitBreakerStats

import org.elasticsearch.common.io.stream.StreamInput; //導入方法依賴的package包/類
public static CircuitBreakerStats readOptionalCircuitBreakerStats(StreamInput in) throws IOException {
    CircuitBreakerStats stats = in.readOptionalStreamable(new CircuitBreakerStats());
    return stats;
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:5,代碼來源:CircuitBreakerStats.java

示例11: readOptionalAggregations

import org.elasticsearch.common.io.stream.StreamInput; //導入方法依賴的package包/類
public static InternalAggregations readOptionalAggregations(StreamInput in) throws IOException {
    return in.readOptionalStreamable(new InternalAggregations());
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:4,代碼來源:InternalAggregations.java

示例12: readFrom

import org.elasticsearch.common.io.stream.StreamInput; //導入方法依賴的package包/類
@Override
public void readFrom(StreamInput in) throws IOException {
    field = in.readOptionalText();
    offset = in.readInt();
    child = in.readOptionalStreamable(new InternalNestedIdentity());
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:7,代碼來源:InternalSearchHit.java

示例13: readOptionalCommitStatsFrom

import org.elasticsearch.common.io.stream.StreamInput; //導入方法依賴的package包/類
public static CommitStats readOptionalCommitStatsFrom(StreamInput in) throws IOException {
    return in.readOptionalStreamable(new CommitStats());
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:4,代碼來源:CommitStats.java

示例14: RoutingValidationException

import org.elasticsearch.common.io.stream.StreamInput; //導入方法依賴的package包/類
public RoutingValidationException(StreamInput in) throws IOException {
    super(in);
    validation = in.readOptionalStreamable(new RoutingTableValidation());
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:5,代碼來源:RoutingValidationException.java

示例15: readOptionalRestoreSource

import org.elasticsearch.common.io.stream.StreamInput; //導入方法依賴的package包/類
public static RestoreSource readOptionalRestoreSource(StreamInput in) throws IOException {
    return in.readOptionalStreamable(new RestoreSource());
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:4,代碼來源:RestoreSource.java


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