@Override
  public synchronized <T extends Indexed> List<T> loadAll(Class<T> model, FilteringStrategy filter) {
    LinkedList<T> list = new LinkedList<T>();
    LOG.debug(String.format("Loading all %s-s", model.getName()));
    try {
      for(T item: context.getDataStore().findAll(model, null)) {
        if ((filter == null) || filter.isConform(item)) {
          list.add(item);
        }
      }
    } catch (PersistenceException e) {
      throw new ServiceFormattedException("Error while finding all objects in DataStorage", e);
    }
    return list;
  }
Constructor
@param context View Context instance
contrib/views/pig/src/main/java/org/apache/ambari/view/pig/persistence/DataStoreStorage.java