code: public static List<String> getColumnLabels(ResultSet resultSet) {
      return Lists.transform(
          Lists.newArrayList(resultSet.getColumnTypes()), new Function<ColumnType, String>() {
        public String apply(ColumnType input) {
          return input.getLabelName();
        }
      });
    }
docs: Gets the column labels for the result set.
  
  @param resultSet the result set to get the column labels for
  @return the string list of column labels