Class GCRules
java.lang.Object
com.google.cloud.bigtable.admin.v2.models.GCRules
Wraps
GcRule protocol buffer object and exposes a friendly API.
Note: Garbage collection executes opportunistically in the background, and so it's possible for reads to return a cell even if it matches the active GC expression for its family. Please use appropriate filters in your reads to exclude cells which are eligible for garbage collection.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classWrapper for building a empty rulestatic final classWrapper for building max duration rulestatic interfaceinterface for fluent GcRule wrappersstatic final classFluent wrapper forGcRule.Intersectionrule.static final classFluent wrapper forGcRule.Unionrule.static final classWrapper for building max versions rule -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionCreates an empty default ruleCreates a new instance of the IntersectionRuleCreates a new instance of the DurationRulemaxAge(org.threeten.bp.Duration duration) Creates a new instance of the DurationRulemaxVersions(int maxVersion) Creates a new instance of the VersionRuleunion()Creates a new instance of the IntersectionRule
-
Field Details
-
GCRULES
Factory method to create GCRules - entry point into the DSL.
-
-
Method Details
-
intersection
Creates a new instance of the IntersectionRule -
union
Creates a new instance of the IntersectionRule -
maxVersions
Creates a new instance of the VersionRule- Parameters:
maxVersion- - maximum number of cell versions to keep
-
maxAge
Creates a new instance of the DurationRule- Parameters:
maxAge- - maximum age of the cell to keeptimeUnit- - timeunit for the age
-
maxAge
Creates a new instance of the DurationRule- Parameters:
duration- - age expressed as duration
-
defaultRule
Creates an empty default rule -
fromProto
-