Class Row (2.42.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

Static Methods

compareByKey()

public static Comparator<Row> compareByKey()

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

Returns
Type Description
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
Name Description
key ByteString
cells List<RowCell>
Returns
Type Description
Row

Constructors

Row()

public Row()

Methods

getCells()

public abstract List<RowCell> getCells()

Returns a sorted list of cells. The cells will be sorted natively. See Also: RowCell#compareByNative()For details about the ordering.

Returns
Type Description
List<RowCell>

getCells(String family)

public List<RowCell> getCells(String family)

Returns a sublist of the cells that belong to the specified family. See Also: RowCell#compareByNative()For details about the ordering.

Parameter
Name Description
family String
Returns
Type Description
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. See Also: RowCell#compareByNative()For details about the ordering.

Parameters
Name Description
family String
qualifier ByteString
Returns
Type Description
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. See Also: RowCell#compareByNative()For details about the ordering.

Parameters
Name Description
family String
qualifier String
Returns
Type Description
List<RowCell>

getKey()

public abstract ByteString getKey()

Returns the row key

Returns
Type Description
ByteString