code: public static KeySnapshot localSnapshot(boolean homeOnly){
      Object [] kvs = H2O.STORE.raw_array();
      ArrayList<KeyInfo> res = new ArrayList<>();
      for(int i = 2; i < kvs.length; i+= 2){
        Object ok = kvs[i];
        if( !(ok instanceof Key  ) ) continue; // Ignore tombstones and Primes and null's
        Key key = (Key )ok;
        if(!key.user_allowed())continue;
        if(homeOnly && !key.home())continue;
        // Raw array can contain regular and also wrapped values into Prime marker class:
        //  - if we see Value object, create instance of KeyInfo
        //  - if we do not see Value object directly (it can be wrapped in Prime marker class),
        //    try to unwrap it via calling STORE.get (~H2O.get) and then
        //    look at wrapped value again.
        Value val = Value.STORE_get(key);
        if( val == null ) continue;
        res.add(new KeyInfo(key,val));
      }
      final KeyInfo [] arr = res.toArray(new KeyInfo[res.size()]);
      Arrays.sort(arr);
      return new KeySnapshot(arr);
    }
docs: Get the user keys from this node only.
  @param homeOnly - exclude the non-local (cached) keys if set
  @return KeySnapshot containing keys from the local K/V.