class BasicTablesTransformer {

  public static List<RowGroupMetadata> rowGroups(List<TableMetadataUnit> units) {
    return units.stream()
      .filter(unit -> MetadataType.ROW_GROUP == MetadataType.fromValue(unit.metadataType()))
      .map(unit -> RowGroupMetadata.builder().metadataUnit(unit).build())
      .collect(Collectors.toList());
  }

}