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

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
TypeDescription
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
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. See Also: RowCell#compareByNative()For details about the ordering.

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. See Also: RowCell#compareByNative()For details about the ordering.

Parameters
NameDescription
familyString
qualifierString
Returns
TypeDescription
List<RowCell>

getKey()

public abstract ByteString getKey()

Returns the row key

Returns
TypeDescription
ByteString