Google Cloud Bigtable C++ Client 2.13.0
A C++ Client Library for Google Cloud Bigtable
|
Implement a thin wrapper around google::bigtable::admin::v2::GcRule. More...
#include <google/cloud/bigtable/column_family.h>
Public Member Functions | |
google::bigtable::admin::v2::GcRule const & | as_proto () const & |
Convert to the proto form. More... | |
google::bigtable::admin::v2::GcRule && | as_proto () && |
Move the internal proto out. More... | |
Use default constructors and assignments. | |
GcRule (GcRule &&)=default | |
GcRule & | operator= (GcRule &&)=default |
GcRule (GcRule const &)=default | |
GcRule & | operator= (GcRule const &)=default |
Static Public Member Functions | |
static GcRule | MaxNumVersions (std::int32_t n) |
Create a garbage collection rule that keeps the last n versions. More... | |
template<typename Rep , typename Period > | |
static GcRule | MaxAge (std::chrono::duration< Rep, Period > duration) |
Return a garbage collection rule that deletes cells in a column older than the given duration. More... | |
template<typename... GcRuleTypes> | |
static GcRule | Intersection (GcRuleTypes &&... gc_rules) |
Return a GcRule that deletes cells if all the rules passed in would delete the cells. More... | |
template<typename... GcRuleTypes> | |
static GcRule | Union (GcRuleTypes &&... gc_rules) |
Return a GcRule that deletes cells if any the rules passed in would delete the cells. More... | |
Friends | |
bool | operator== (GcRule const &a, GcRule const &b) noexcept |
bool | operator!= (GcRule const &a, GcRule const &b) noexcept |
Implement a thin wrapper around google::bigtable::admin::v2::GcRule.
Provides functions to create GcRules in a convenient form.
|
default |
|
default |
|
inline |
Move the internal proto out.
|
inline |
Convert to the proto form.
|
inlinestatic |
|
inlinestatic |
Return a garbage collection rule that deletes cells in a column older than the given duration.
The function accepts any instantiation of std::chrono::duration<>
for the duration
parameter. For example:
Rep | a placeholder to match the Rep tparam for duration type, the semantics of this template parameter are documented in std::chrono::duration<> (in brief, the underlying arithmetic type used to store the number of ticks), for our purposes it is simply a formal parameter. |
Period | a placeholder to match the Period tparam for duration type, the semantics of this template parameter are documented in std::chrono::duration<> (in brief, the length of the tick in seconds, expressed as a std::ratio<> ), for our purposes it is simply a formal parameter. |
|
inlinestatic |
Create a garbage collection rule that keeps the last n
versions.
|
inlinestatic |