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