Class SubsetView (2.37.0)

public class SubsetView implements 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.

Inheritance

Object > SubsetView

Static Methods

create()

public static SubsetView create()
Returns
TypeDescription
SubsetView

fromProto(AuthorizedView.SubsetView proto)

public static SubsetView fromProto(AuthorizedView.SubsetView proto)

Wraps the protobuf. This method is considered an internal implementation detail and not meant to be used by applications.

Parameter
NameDescription
protocom.google.bigtable.admin.v2.AuthorizedView.SubsetView
Returns
TypeDescription
SubsetView

Methods

addRowPrefix(ByteString rowPrefix)

public SubsetView addRowPrefix(ByteString rowPrefix)

Adds a new rowPrefix to the subset view.

Parameter
NameDescription
rowPrefixByteString
Returns
TypeDescription
SubsetView

addRowPrefix(String rowPrefix)

public SubsetView addRowPrefix(String rowPrefix)

Adds a new rowPrefix to the subset view.

Parameter
NameDescription
rowPrefixString
Returns
TypeDescription
SubsetView

equals(Object o)

public boolean equals(Object o)
Parameter
NameDescription
oObject
Returns
TypeDescription
boolean
Overrides

getFamilySubsets()

public Map<String,FamilySubsets> getFamilySubsets()

Gets the map from familyId to familySubsets in this subset view.

Returns
TypeDescription
Map<String,FamilySubsets>

getRowPrefixes()

public List<ByteString> getRowPrefixes()

Gets the row prefixes to be included in this subset view.

Returns
TypeDescription
List<ByteString>

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

setFamilySubsets(String familyId, FamilySubsets familySubsets)

public SubsetView setFamilySubsets(String familyId, FamilySubsets familySubsets)

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.

Parameters
NameDescription
familyIdString
familySubsetsFamilySubsets
Returns
TypeDescription
SubsetView

toProto()

public AuthorizedView.SubsetView toProto()

Creates the request protobuf. This method is considered an internal implementation detail and not meant to be used by applications.

Returns
TypeDescription
com.google.bigtable.admin.v2.AuthorizedView.SubsetView