All Downloads are FREE. Search and download functionalities are using the official Maven repository.

water.FetchClazz Maven / Gradle / Ivy

There is a newer version: 3.8.2.9
Show newest version
package water;

// Helper to fetch classForName strings from IDs from the leader
class FetchClazz extends DTask {
  final int _id;
  String _clazz;
  private FetchClazz(int id) { super(H2O.FETCH_ACK_PRIORITY); _id=id; }
  public static String fetchClazz(int id) {
    String clazz = RPC.call(H2O.CLOUD.leader(), new FetchClazz(id)).get()._clazz;
    assert clazz != null : "No class matching id "+id;
    return clazz;
  }
  @Override public void compute2() { _clazz = TypeMap.className(_id); tryComplete(); }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy