@InternalApi public final class RowSetUtil extends Object
RowSet
into segments based on keys.
This class is considered an internal implementation detail and not meant to be used by applications.
Modifier and Type | Class and Description |
---|---|
static class |
RowSetUtil.Split
Represents a RowSet split into 2 non-overlapping parts.
|
Modifier and Type | Method and Description |
---|---|
static Range.ByteStringRange |
getBound(com.google.bigtable.v2.RowSet rowSet)
Get the bounding range of a
RowSet . |
static List<com.google.bigtable.v2.RowSet> |
shard(com.google.bigtable.v2.RowSet rowSet,
SortedSet<ByteString> splitPoints)
Splits the provided
RowSet into segments partitioned by the provided splitPoints . |
static RowSetUtil.Split |
split(com.google.bigtable.v2.RowSet rowSet,
ByteString splitPoint)
Splits the provided
RowSet along the provided splitPoint into 2 segments. |
@Nonnull public static RowSetUtil.Split split(@Nonnull com.google.bigtable.v2.RowSet rowSet, @Nonnull ByteString splitPoint)
RowSet
along the provided splitPoint into 2 segments. The right
segment will contain all keys that are strictly greater than the splitPoint and all RowRange
s truncated to start right after the splitPoint.@Nonnull public static List<com.google.bigtable.v2.RowSet> shard(@Nonnull com.google.bigtable.v2.RowSet rowSet, @Nonnull SortedSet<ByteString> splitPoints)
RowSet
into segments partitioned by the provided splitPoints
. Each split point represents the last row of the corresponding segment. The row
keys contained in the provided RowSet
will be distributed across the segments. Each
range in the RowSet
will be split up across each segment.for more details.
public static Range.ByteStringRange getBound(com.google.bigtable.v2.RowSet rowSet)
RowSet
.Copyright © 2019 Google LLC. All rights reserved.