hbase2.1.x java 封装一行数据:RowData 作者:马育民 • 2022-11-25 13:29 • 阅读:10045 # 封装一行数据 ``` package day1; import java.util.ArrayList; import java.util.List; /** * 封装一行数据 */ public class RowData { private String rowkey; private List cellDatas = new ArrayList<>(); public RowData() { } public RowData(String rowkey) { this.rowkey = rowkey; } public String getRowkey() { return rowkey; } public void setRowkey(String rowkey) { this.rowkey = rowkey; } public void addCellData(CellData cellData){ cellDatas.add(cellData); } public List getCellDatas() { return cellDatas; } public void setCellDatas(List cellDatas) { this.cellDatas = cellDatas; } } ``` 原文出处:http://malaoshi.top/show_1IX4TfPFhNmC.html