code: private static Map<String, Pair<String, String>> autoGenerateMapping(List<ColumnMetadata> columns, Optional<Map<String, Set<String>>> groups)
      {
          Map<String, Pair<String, String>> mapping = new HashMap<>();
          for (ColumnMetadata column : columns) {
              Optional<String> family = getColumnLocalityGroup(column.getName(), groups);
              mapping.put(column.getName(), Pair.of(family.orElse(column.getName()), column.getName()));
          }
          return mapping;
      }
docs: Auto-generates the mapping of Presto column name to Accumulo family/qualifier, respecting the locality groups (if any).
  
  @param columns Presto columns for the table
  @param groups Mapping of locality groups to a set of Presto columns, or null if none
  @return Column mappings