Class SubsetView
java.lang.Object
com.google.cloud.bigtable.admin.v2.models.SubsetView
- All Implemented Interfaces:
AuthorizedView.AuthorizedViewType
Defines a simple authorized view that is a subset of the underlying Table.
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.
-
Method Summary
Modifier and TypeMethodDescriptionaddRowPrefix
(com.google.protobuf.ByteString rowPrefix) Adds a new rowPrefix to the subset view.addRowPrefix
(String rowPrefix) Adds a new rowPrefix to the subset view.static SubsetView
create()
boolean
static SubsetView
Wraps the protobuf.Gets the map from familyId to familySubsets in this subset view.List<com.google.protobuf.ByteString>
Gets the row prefixes to be included in this subset view.int
hashCode()
setFamilySubsets
(String familyId, FamilySubsets familySubsets) Adds a new familyId with its familySubsets to the subset view.toProto()
Creates the request protobuf.
-
Method Details
-
fromProto
Wraps the protobuf. This method is considered an internal implementation detail and not meant to be used by applications. -
create
-
getRowPrefixes
Gets the row prefixes to be included in this subset view. -
getFamilySubsets
Gets the map from familyId to familySubsets in this subset view. -
addRowPrefix
Adds a new rowPrefix to the subset view. -
addRowPrefix
Adds a new rowPrefix to the subset view. -
setFamilySubsets
Adds a new familyId with its familySubsets to the subset view. Please note that calling this method with the same familyId will overwrite the previous rule set on the family. -
toProto
Creates the request protobuf. This method is considered an internal implementation detail and not meant to be used by applications. -
equals
-
hashCode
public int hashCode()
-