Class ColumnFamilyModification (2.20.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
Name Description
ColumnFamilyModification &&

ColumnFamilyModification(ColumnFamilyModification const &)

Use default constructors and assignments.

Parameter
Name Description
ColumnFamilyModification const &

Operators

operator=(ColumnFamilyModification &&)

Use default constructors and assignments.

Parameter
Name Description
ColumnFamilyModification &&
Returns
Type Description
ColumnFamilyModification &

operator=(ColumnFamilyModification const &)

Use default constructors and assignments.

Parameter
Name Description
ColumnFamilyModification const &
Returns
Type Description
ColumnFamilyModification &

Functions

static Create(std::string, GcRule)

Return a modification that creates a new column family.

Parameters
Name Description
id std::string
gc GcRule
Returns
Type Description
ColumnFamilyModification

static Update(std::string, GcRule)

Return a modification that creates a new column family.

Parameters
Name Description
id std::string
gc GcRule
Returns
Type Description
ColumnFamilyModification

static Drop(std::string)

Return a modification that drops the id column family.

Parameter
Name Description
id std::string
Returns
Type Description
ColumnFamilyModification

as_proto() const &

Convert to the proto form.

Returns
Type Description
::google::bigtable::admin::v2::ModifyColumnFamiliesRequest::Modification const &

as_proto() &&

Move out the underlying proto contents.

Returns
Type Description
::google::bigtable::admin::v2::ModifyColumnFamiliesRequest::Modification &&