Class ColumnFamilyModification (2.21.0)

Define the interfaces to create column family modifications.

Applications can modify a Cloud Bigtable schema through a set of column family modifications. These modifications may include creating new column families, deleting existing column families, or changing the garbage collection rules for existing column families.

This class contain helper functions to create the different protos encapsulating these changes.

Constructors

ColumnFamilyModification(ColumnFamilyModification &&)

Use default constructors and assignments.

Parameter
NameDescription
ColumnFamilyModification &&

ColumnFamilyModification(ColumnFamilyModification const &)

Use default constructors and assignments.

Parameter
NameDescription
ColumnFamilyModification const &

Operators

operator=(ColumnFamilyModification &&)

Use default constructors and assignments.

Parameter
NameDescription
ColumnFamilyModification &&
Returns
TypeDescription
ColumnFamilyModification &

operator=(ColumnFamilyModification const &)

Use default constructors and assignments.

Parameter
NameDescription
ColumnFamilyModification const &
Returns
TypeDescription
ColumnFamilyModification &

Functions

static Create(std::string, GcRule)

Return a modification that creates a new column family.

Parameters
NameDescription
id std::string
gc GcRule
Returns
TypeDescription
ColumnFamilyModification

static Update(std::string, GcRule)

Return a modification that creates a new column family.

Parameters
NameDescription
id std::string
gc GcRule
Returns
TypeDescription
ColumnFamilyModification

static Drop(std::string)

Return a modification that drops the id column family.

Parameter
NameDescription
id std::string
Returns
TypeDescription
ColumnFamilyModification

as_proto() const &

Convert to the proto form.

Returns
TypeDescription
::google::bigtable::admin::v2::ModifyColumnFamiliesRequest::Modification const &

as_proto() &&

Move out the underlying proto contents.

Returns
TypeDescription
::google::bigtable::admin::v2::ModifyColumnFamiliesRequest::Modification &&