code: private static void convertData2Row(MappingConfig.HbaseMapping hbaseMapping, HRow hRow, Map<String, Object> data) {
          Map<String, MappingConfig.ColumnItem> columnItems = hbaseMapping.getColumnItems();
          int i = 0;
          for (Map.Entry<String, Object> entry : data.entrySet()) {
              if (hbaseMapping.getExcludeColumns() != null && hbaseMapping.getExcludeColumns().contains(entry.getKey())) {
                  continue;
              }
              if (entry.getValue() != null) {
                  MappingConfig.ColumnItem columnItem = columnItems.get(entry.getKey());
  
                  byte[] bytes = typeConvert(columnItem, hbaseMapping, entry.getValue());
  
                  if (columnItem == null) {
                      String familyName = hbaseMapping.getFamily();
                      String qualifier = entry.getKey();
                      if (hbaseMapping.isUppercaseQualifier()) {
                          qualifier = qualifier.toUpperCase();
                      }
  
                      if (hbaseMapping.getRowKey() == null && i == 0) {
                          hRow.setRowKey(bytes);
                      } else {
                          hRow.addCell(familyName, qualifier, bytes);
                      }
                  } else {
                      if (columnItem.isRowKey()) {
                          if (columnItem.getRowKeyLen() != null && entry.getValue() != null) {
                              if (entry.getValue() instanceof Number) {
                                  String v = String.format("%0" + columnItem.getRowKeyLen() + "d",
                                      ((Number) entry.getValue()).longValue());
                                  bytes = Bytes.toBytes(v);
                              } else {
                                  try {
                                      String v = String.format("%0" + columnItem.getRowKeyLen() + "d",
                                          Integer.parseInt((String) entry.getValue()));
                                      bytes = Bytes.toBytes(v);
                                  } catch (Exception e) {
                                      logger.error(e.getMessage(), e);
                                  }
                              }
                          }
                          hRow.setRowKey(bytes);
                      } else {
                          hRow.addCell(columnItem.getFamily(), columnItem.getQualifier(), bytes);
                      }
                  }
              }
              i++;
          }
      }
docs: 将Map数据转换为HRow行数据
  
  @param hbaseMapping hbase映射配置
  @param hRow 行对象
  @param data Map数据