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

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

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

MetaData.readFrom介绍

暂无

代码示例

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

@Override
public void readFrom(StreamInput in) throws IOException {
  super.readFrom(in);
  if (in.readBoolean()) {
    metaData = MetaData.readFrom(in);
  }
}

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

public static MetaData readFrom(StreamInput in) throws IOException {
    return PROTO.readFrom(in);
  }
}

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

public static ClusterState readFrom(StreamInput in, DiscoveryNode localNode) throws IOException {
  ClusterName clusterName = new ClusterName(in);
  Builder builder = new Builder(clusterName);
  builder.version = in.readLong();
  builder.uuid = in.readString();
  builder.metaData = MetaData.readFrom(in);
  builder.routingTable = RoutingTable.readFrom(in);
  builder.nodes = DiscoveryNodes.readFrom(in, localNode);
  builder.blocks = new ClusterBlocks(in);
  int customSize = in.readVInt();
  for (int i = 0; i < customSize; i++) {
    Custom customIndexMetaData = in.readNamedWriteable(Custom.class);
    builder.putCustom(customIndexMetaData.getWriteableName(), customIndexMetaData);
  }
  return builder.build();
}

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

@Override
public void readFrom(StreamInput in) throws IOException {
  super.readFrom(in);
  if (in.readBoolean()) {
    metaData = MetaData.readFrom(in);
  }
}

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

@Override
public void readFrom(StreamInput in) throws IOException {
  super.readFrom(in);
  if (in.readBoolean()) {
    metaData = MetaData.readFrom(in);
  }
}

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

@Override
public void readFrom(StreamInput in) throws IOException {
  super.readFrom(in);
  if (in.readBoolean()) {
    metaData = MetaData.readFrom(in);
  }
}

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

public static ClusterState readFrom(StreamInput in, DiscoveryNode localNode) throws IOException {
  ClusterName clusterName = new ClusterName(in);
  Builder builder = new Builder(clusterName);
  builder.version = in.readLong();
  builder.uuid = in.readString();
  builder.metaData = MetaData.readFrom(in);
  builder.routingTable = RoutingTable.readFrom(in);
  builder.nodes = DiscoveryNodes.readFrom(in, localNode);
  builder.blocks = new ClusterBlocks(in);
  int customSize = in.readVInt();
  for (int i = 0; i < customSize; i++) {
    Custom customIndexMetaData = in.readNamedWriteable(Custom.class);
    builder.putCustom(customIndexMetaData.getWriteableName(), customIndexMetaData);
  }
  return builder.build();
}

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

public static ClusterState readFrom(StreamInput in, DiscoveryNode localNode) throws IOException {
  ClusterName clusterName = new ClusterName(in);
  Builder builder = new Builder(clusterName);
  builder.version = in.readLong();
  builder.uuid = in.readString();
  builder.metaData = MetaData.readFrom(in);
  builder.routingTable = RoutingTable.readFrom(in);
  builder.nodes = DiscoveryNodes.readFrom(in, localNode);
  builder.blocks = new ClusterBlocks(in);
  int customSize = in.readVInt();
  for (int i = 0; i < customSize; i++) {
    Custom customIndexMetaData = in.readNamedWriteable(Custom.class);
    builder.putCustom(customIndexMetaData.getWriteableName(), customIndexMetaData);
  }
  return builder.build();
}

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

public static ClusterState readFrom(StreamInput in, DiscoveryNode localNode) throws IOException {
  ClusterName clusterName = new ClusterName(in);
  Builder builder = new Builder(clusterName);
  builder.version = in.readLong();
  builder.uuid = in.readString();
  builder.metaData = MetaData.readFrom(in);
  builder.routingTable = RoutingTable.readFrom(in);
  builder.nodes = DiscoveryNodes.readFrom(in, localNode);
  builder.blocks = new ClusterBlocks(in);
  int customSize = in.readVInt();
  for (int i = 0; i < customSize; i++) {
    Custom customIndexMetaData = in.readNamedWriteable(Custom.class);
    builder.putCustom(customIndexMetaData.getWriteableName(), customIndexMetaData);
  }
  return builder.build();
}

相关文章