org.elasticsearch.cluster.metadata.MetaData.diff()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(2.3k)|赞(0)|评价(0)|浏览(118)

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

MetaData.diff介绍

暂无

代码示例

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

ClusterStateDiff(ClusterState before, ClusterState after) {
  fromUuid = before.stateUUID;
  toUuid = after.stateUUID;
  toVersion = after.version;
  clusterName = after.clusterName;
  routingTable = after.routingTable.diff(before.routingTable);
  nodes = after.nodes.diff(before.nodes);
  metaData = after.metaData.diff(before.metaData);
  blocks = after.blocks.diff(before.blocks);
  customs = DiffableUtils.diff(before.customs, after.customs, DiffableUtils.getStringKeySerializer(), CUSTOM_VALUE_SERIALIZER);
}

代码示例来源:origin: harbby/presto-connectors

public ClusterStateDiff(ClusterState before, ClusterState after) {
  fromUuid = before.stateUUID;
  toUuid = after.stateUUID;
  toVersion = after.version;
  clusterName = after.clusterName;
  routingTable = after.routingTable.diff(before.routingTable);
  nodes = after.nodes.diff(before.nodes);
  metaData = after.metaData.diff(before.metaData);
  blocks = after.blocks.diff(before.blocks);
  customs = DiffableUtils.diff(before.customs, after.customs);
}

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

ClusterStateDiff(ClusterState before, ClusterState after) {
  fromUuid = before.stateUUID;
  toUuid = after.stateUUID;
  toVersion = after.version;
  clusterName = after.clusterName;
  routingTable = after.routingTable.diff(before.routingTable);
  nodes = after.nodes.diff(before.nodes);
  metaData = after.metaData.diff(before.metaData);
  blocks = after.blocks.diff(before.blocks);
  customs = DiffableUtils.diff(before.customs, after.customs, DiffableUtils.getStringKeySerializer(), CUSTOM_VALUE_SERIALIZER);
}

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

ClusterStateDiff(ClusterState before, ClusterState after) {
  fromUuid = before.stateUUID;
  toUuid = after.stateUUID;
  toVersion = after.version;
  clusterName = after.clusterName;
  routingTable = after.routingTable.diff(before.routingTable);
  nodes = after.nodes.diff(before.nodes);
  metaData = after.metaData.diff(before.metaData);
  blocks = after.blocks.diff(before.blocks);
  customs = DiffableUtils.diff(before.customs, after.customs, DiffableUtils.getStringKeySerializer(), CUSTOM_VALUE_SERIALIZER);
}

相关文章