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
Modifier and TypeClassDescriptionstatic final class
Wrapper for building a empty rulestatic final class
Wrapper for building max duration rulestatic interface
interface for fluent GcRule wrappersstatic final class
Fluent wrapper forGcRule.Intersection
rule.static final class
Fluent wrapper forGcRule.Union
rule.static final class
Wrapper for building max versions rule -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreates an empty default rulefromProto
(com.google.bigtable.admin.v2.GcRule source) Creates 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
-