Exemple #1
0
 @Override
 public <T> List<T> getValues(String name, Class<T> type) {
   List<T> result = new ArrayList<T>();
   for (DatasetRow rec : rows) {
     result.addAll(rec.getValues(name, type));
   }
   return result;
 }
Exemple #2
0
 @Override
 public List<Object> getValues(String name) {
   List<Object> result = new ArrayList<Object>();
   for (DatasetRow rec : rows) {
     result.addAll(rec.getValues(name));
   }
   return result;
 }
Exemple #3
0
 /**
  * Constructor.
  *
  * @param wrappedRecords records to wrap
  */
 protected Dataset(List<DatasetRow> wrappedRecords) {
   this.rows = wrappedRecords;
   int tempSize = 0;
   for (DatasetRow wr : wrappedRecords) {
     tempSize += wr.size();
   }
   size = tempSize;
 }
Exemple #4
0
 @Override
 public Set<ParameterSelection> getAllParameterConfigurations() {
   Set<ParameterSelection> result = new HashSet<ParameterSelection>();
   for (DatasetRow wr : rows) {
     result.addAll(wr.getAllParameterConfigurations());
   }
   return result;
 }
Exemple #5
0
  @Override
  public <T extends AbstractRecord> java.util.List<T> getRecords(Class<T> recordType) {
    List<T> result = new ArrayList<T>();

    for (DatasetRow rec : rows) {
      result.addAll(rec.getRecords(recordType));
    }
    return result;
  }
Exemple #6
0
  @Override
  public List<AbstractRecord> getRecords() {
    List<AbstractRecord> result = new ArrayList<AbstractRecord>();

    for (DatasetRow rec : rows) {
      result.addAll(rec.getRecords());
    }
    return result;
  }
Exemple #7
0
 @Override
 public String[] getTypes() {
   if (rows.isEmpty()) {
     return null;
   }
   for (DatasetRow wr : rows) {
     String[] types = wr.getTypes();
     if (types != null) {
       return types;
     }
   }
   return null;
 }
Exemple #8
0
 @Override
 public String[] getHeader() {
   if (rows.isEmpty()) {
     return null;
   }
   for (DatasetRow wr : rows) {
     String[] header = wr.getHeader();
     if (header != null) {
       return header;
     }
   }
   return null;
 }