Class Row
- java.lang.Object
-
- com.google.cloud.bigtable.data.v2.models.Row
-
- All Implemented Interfaces:
Serializable
@InternalExtensionOnly public abstract class Row extends Object 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.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Row()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static Comparator<Row>
compareByKey()
Returns a comparator that compares two Row objects by comparing the result ofgetKey()
} for each.static Row
create(com.google.protobuf.ByteString key, List<RowCell> cells)
Creates a new instance of theRow
.abstract List<RowCell>
getCells()
Returns a sorted list of cells.List<RowCell>
getCells(String family)
Returns a sublist of the cells that belong to the specified family.List<RowCell>
getCells(String family, com.google.protobuf.ByteString qualifier)
Returns a sublist of the cells that belong to the specified family and qualifier.List<RowCell>
getCells(String family, String qualifier)
Returns a sublist of the cells that belong to the specified family and qualifier.abstract com.google.protobuf.ByteString
getKey()
Returns the row key
-
-
-
Method Detail
-
compareByKey
public static Comparator<Row> compareByKey()
Returns a comparator that compares two Row objects by comparing the result ofgetKey()
} for each.
-
create
@InternalApi public static Row create(com.google.protobuf.ByteString key, List<RowCell> cells)
Creates a new instance of theRow
.
-
getKey
@Nonnull public abstract com.google.protobuf.ByteString getKey()
Returns the row key
-
getCells
public abstract List<RowCell> getCells()
Returns a sorted list of cells. The cells will be sorted natively.- See Also:
For details about the ordering.
-
getCells
public List<RowCell> getCells(@Nonnull String family)
Returns a sublist of the cells that belong to the specified family.- See Also:
For details about the ordering.
-
getCells
public List<RowCell> getCells(@Nonnull String family, @Nonnull String qualifier)
Returns a sublist of the cells that belong to the specified family and qualifier.- See Also:
For details about the ordering.
-
-