Search in sources :

Example 1 with GridSchemaV99

use of hex.schemas.GridSchemaV99 in project h2o-3 by h2oai.

the class GridsHandler method list.

/**
   * Return all the grids.
   */
// called through reflection by RequestServer
@SuppressWarnings("unused")
public GridsV99 list(int version, GridsV99 s) {
    final Key[] gridKeys = KeySnapshot.globalSnapshot().filter(new KeySnapshot.KVFilter() {

        @Override
        public boolean filter(KeySnapshot.KeyInfo k) {
            return Value.isSubclassOf(k._type, Grid.class);
        }
    }).keys();
    s.grids = new GridSchemaV99[gridKeys.length];
    for (int i = 0; i < gridKeys.length; i++) {
        s.grids[i] = new GridSchemaV99();
        s.grids[i].fillFromImpl(getFromDKV("(none)", gridKeys[i], Grid.class));
    }
    return s;
}
Also used : Grid(hex.grid.Grid) GridSchemaV99(hex.schemas.GridSchemaV99) Key(water.Key)

Aggregations

Grid (hex.grid.Grid)1 GridSchemaV99 (hex.schemas.GridSchemaV99)1 Key (water.Key)1