hbase2.1.x java 封装一个cell数据:CellData

封装一个cell数据

package day1;

/**
 * 封装一个cell数据
 */
public class CellData{
    private String rowkey;
    private String family;
    private String qualifier;
    private Long timestamp;
    private Object value;

    public CellData() {
    }

    public CellData(String family, String qualifier, Object value) {
        this.family = family;
        this.qualifier = qualifier;
        this.value = value;
    }

    /**
     *
     * @param family
     * @param qualifier
     * @param rowkey
     * @param timestamp
     * @param value
     */
    public CellData(String family, String qualifier, String rowkey, Long timestamp, Object value) {
        this.family = family;
        this.qualifier = qualifier;
        this.value = value;
        this.timestamp = timestamp;
        this.rowkey = rowkey;
    }

    public String getRowkey() {
        return rowkey;
    }

    public void setRowkey(String rowkey) {
        this.rowkey = rowkey;
    }

    public String getFamily() {
        return family;
    }

    public void setFamily(String family) {
        this.family = family;
    }

    public String getQualifier() {
        return qualifier;
    }

    public void setQualifier(String qualifier) {
        this.qualifier = qualifier;
    }

    public Object getValue() {
        return value;
    }

    public void setValue(Object value) {
        this.value = value;
    }

    public Long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Long timestamp) {
        this.timestamp = timestamp;
    }
}

原文出处:https://malaoshi.top/show_1IX4TIP4WYDK.html