public class SubsetView extends Object implements AuthorizedView.AuthorizedViewType
Users can specify the rows in the form of row key prefixes, and specify the column families by adding the family id along with its familySubsets rule to the family subsets map. The subset is defined by the intersection of the specified row key prefixes and column family subsets.
| Modifier and Type | Method and Description |
|---|---|
SubsetView |
addRowPrefix(com.google.protobuf.ByteString rowPrefix)
Adds a new rowPrefix to the subset view.
|
SubsetView |
addRowPrefix(String rowPrefix)
Adds a new rowPrefix to the subset view.
|
static SubsetView |
create() |
boolean |
equals(Object o) |
static SubsetView |
fromProto(AuthorizedView.SubsetView proto)
Wraps the protobuf.
|
Map<String,FamilySubsets> |
getFamilySubsets()
Gets the map from familyId to familySubsets in this subset view.
|
List<com.google.protobuf.ByteString> |
getRowPrefixes()
Gets the row prefixes to be included in this subset view.
|
int |
hashCode() |
SubsetView |
setFamilySubsets(String familyId,
FamilySubsets familySubsets)
Adds a new familyId with its familySubsets to the subset view.
|
AuthorizedView.SubsetView |
toProto()
Creates the request protobuf.
|
@InternalApi public static SubsetView fromProto(@Nonnull AuthorizedView.SubsetView proto)
public static SubsetView create()
public List<com.google.protobuf.ByteString> getRowPrefixes()
public Map<String,FamilySubsets> getFamilySubsets()
public SubsetView addRowPrefix(com.google.protobuf.ByteString rowPrefix)
public SubsetView addRowPrefix(String rowPrefix)
public SubsetView setFamilySubsets(String familyId, FamilySubsets familySubsets)
@InternalApi public AuthorizedView.SubsetView toProto()
Copyright © 2026 Google LLC. All rights reserved.