Class Row (2.4.0)

public abstract class Row implements Serializable

Default representation of a logical row.

The cells contained within, will be sorted by the native order. Please see RowCell#compareByNative() for details.

Inheritance

java.lang.Object > Row

Implements

Serializable

Constructors

Row()

public Row()

Methods

compareByKey()

public static Comparator<Row> compareByKey()

Returns a comparator that compares two Row objects by comparing the result of #getKey()} for each.

Returns
TypeDescription
Comparator<Row>

create(ByteString key, List<RowCell> cells)

public static Row create(ByteString key, List<RowCell> cells)

Creates a new instance of the Row.

Parameters
NameDescription
keyByteString
cellsList<RowCell>
Returns
TypeDescription
Row

getCells()

public abstract List<RowCell> getCells()

Returns a sorted list of cells. The cells will be sorted natively.

Returns
TypeDescription
List<RowCell>

getCells(String family)

public List<RowCell> getCells(String family)

Returns a sublist of the cells that belong to the specified family.

Parameter
NameDescription
familyString
Returns
TypeDescription
List<RowCell>

getCells(String family, ByteString qualifier)

public List<RowCell> getCells(String family, ByteString qualifier)

Returns a sublist of the cells that belong to the specified family and qualifier.

Parameters
NameDescription
familyString
qualifierByteString
Returns
TypeDescription
List<RowCell>

getCells(String family, String qualifier)

public List<RowCell> getCells(String family, String qualifier)

Returns a sublist of the cells that belong to the specified family and qualifier.

Parameters
NameDescription
familyString
qualifierString
Returns
TypeDescription
List<RowCell>

getKey()

public abstract ByteString getKey()

Returns the row key

Returns
TypeDescription
ByteString