private String dealOneRow(ArrayList<ArrayList<KeyValue>> args, String rowKeyStr, BaseRow input,
                              ResultFuture<BaseRow> resultFuture, AbstractSideCache sideCache) {
        if(args == null || args.size() == 0){
            dealMissKey(input, resultFuture);
            if (openCache) {
                sideCache.putCache(rowKeyStr, CacheMissVal.getMissKeyObj());
            }
        }

        List<Object> cacheContent = Lists.newArrayList();
        List<BaseRow> rowList = Lists.newArrayList();

        for(List<KeyValue> oneRow : args){
            try {
                Map<String, Object> sideMap = Maps.newHashMap();
                for (KeyValue keyValue : oneRow) {
                    String cf = new String(keyValue.family());
                    String col = new String(keyValue.qualifier());
                    String mapKey = cf + ":" + col;

                    //The table format defined using different data type conversion byte
                    String colType = colRefType.get(mapKey);
                    Object val = HbaseUtils.convertByte(keyValue.value(), colType);
                    sideMap.put(mapKey, val);
                }
                try {
                    if (oneRow.size() > 0) {
                        //The order of the fields defined in the data conversion table
                        List<Object> sideVal = Lists.newArrayList();
                        for (String key : colNames) {

                            if (!sideMap.containsKey(key)) {
                                sideVal.add(rowKeyStr);
                                continue;
                            }

                            Object val = sideMap.get(key);
                            if (val == null) {
                                LOG.error("can't get data with column {}", key);
                            }

                            sideVal.add(val);
                        }

                        BaseRow row = fillData(input, sideVal);
                        if (openCache) {
                            cacheContent.add(sideVal);
                        }

                        rowList.add(row);
                    }
                }catch (Exception e) {
                    resultFuture.completeExceptionally(e);
                }
            } catch (Exception e) {
                resultFuture.complete(Collections.EMPTY_LIST);
                LOG.error("record:" + input);
                LOG.error("get side record exception:", e);
            }
        }

        if (rowList.size() > 0){
            RowDataComplete.completeBaseRow(resultFuture, rowList);
        }

        if(openCache){
            sideCache.putCache(rowKeyStr, CacheObj.buildCacheObj(ECacheContentType.MultiLine, cacheContent));
        }

        return "";
    }
Reason:
Date: 2018/9/10
Company: www.dtstack.com
@author xuchao
hbase/hbase-side/hbase-async-side/src/main/java/com/dtstack/flink/sql/side/hbase/rowkeydealer/PreRowKeyModeDealerDealer.java