org.elasticsearch.Version.max()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(119)

本文整理了Java中org.elasticsearch.Version.max()方法的一些代码示例,展示了Version.max()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Version.max()方法的具体详情如下:
包路径:org.elasticsearch.Version
类名称:Version
方法名:max

Version.max介绍

[英]Returns the maximum version between the 2
[中]返回2之间的最大版本

代码示例

代码示例来源:origin: org.elasticsearch/elasticsearch

} else {
    minNonClientNodeVersion = Version.min(minNonClientNodeVersion, version);
    maxNonClientNodeVersion = Version.max(maxNonClientNodeVersion, version);
maxNodeVersion = maxNodeVersion == null ? version : Version.max(maxNodeVersion, version);

代码示例来源:origin: org.elasticsearch/elasticsearch

nodesChanged = true;
  minClusterNodeVersion = Version.min(minClusterNodeVersion, node.getVersion());
  maxClusterNodeVersion = Version.max(maxClusterNodeVersion, node.getVersion());
} catch (IllegalArgumentException | IllegalStateException e) {
  results.failure(node, e);

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch

} else {
    minNonClientNodeVersion = Version.min(minNonClientNodeVersion, version);
    maxNonClientNodeVersion = Version.max(maxNonClientNodeVersion, version);
maxNodeVersion = maxNodeVersion == null ? version : Version.max(maxNodeVersion, version);

代码示例来源:origin: apache/servicemix-bundles

} else {
    minNonClientNodeVersion = Version.min(minNonClientNodeVersion, version);
    maxNonClientNodeVersion = Version.max(maxNonClientNodeVersion, version);
maxNodeVersion = maxNodeVersion == null ? version : Version.max(maxNodeVersion, version);

代码示例来源:origin: com.strapdata.elasticsearch/elasticsearch

maxNodeVersion = Version.max(maxNodeVersion, nodeEntry.value.getVersion());

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch

nodesChanged = true;
  minClusterNodeVersion = Version.min(minClusterNodeVersion, node.getVersion());
  maxClusterNodeVersion = Version.max(maxClusterNodeVersion, node.getVersion());
} catch (IllegalArgumentException | IllegalStateException e) {
  results.failure(node, e);

代码示例来源:origin: apache/servicemix-bundles

nodesChanged = true;
  minClusterNodeVersion = Version.min(minClusterNodeVersion, node.getVersion());
  maxClusterNodeVersion = Version.max(maxClusterNodeVersion, node.getVersion());
} catch (IllegalArgumentException | IllegalStateException e) {
  results.failure(node, e);

相关文章