@BetaApi public final class GCRules extends Object
GcRule
protocol buffer object and exposes a simpler Fluent DSL modelModifier and Type | Class and Description |
---|---|
static class |
GCRules.DefaultRule
Wrapper for building a empty rule
|
static class |
GCRules.DurationRule
Wrapper for building max duration rule
|
static interface |
GCRules.GCRule
interface for fluent GcRule wrappers
|
static class |
GCRules.IntersectionRule
Fluent wrapper for
GcRule.Intersection rule. |
static class |
GCRules.UnionRule
Fluent wrapper for
GcRule.Union rule. |
static class |
GCRules.VersionRule
Wrapper for building max versions rule
|
Modifier and Type | Field and Description |
---|---|
static GCRules |
GCRULES
Factory method to create GCRules - entry point into the DSL.
|
Modifier and Type | Method and Description |
---|---|
GCRules.DefaultRule |
defaultRule()
Creates an empty default rule
|
GCRules.GCRule |
fromProto(com.google.bigtable.admin.v2.GcRule source) |
GCRules.IntersectionRule |
intersection()
Creates a new instance of the IntersectionRule
|
GCRules.DurationRule |
maxAge(org.threeten.bp.Duration duration)
Creates a new instance of the DurationRule
|
GCRules.DurationRule |
maxAge(long maxAge,
TimeUnit timeUnit)
Creates a new instance of the DurationRule
|
GCRules.VersionRule |
maxVersions(int maxVersion)
Creates a new instance of the VersionRule
|
GCRules.UnionRule |
union()
Creates a new instance of the IntersectionRule
|
public static final GCRules GCRULES
public GCRules.IntersectionRule intersection()
public GCRules.UnionRule union()
public GCRules.VersionRule maxVersions(int maxVersion)
maxVersion
- - maximum number of cell versions to keeppublic GCRules.DurationRule maxAge(long maxAge, TimeUnit timeUnit)
maxAge
- - maximum age of the cell to keeptimeUnit
- - timeunit for the agepublic GCRules.DurationRule maxAge(org.threeten.bp.Duration duration)
duration
- - age expressed as durationpublic GCRules.DefaultRule defaultRule()
@InternalApi public GCRules.GCRule fromProto(com.google.bigtable.admin.v2.GcRule source)
Copyright © 2019 Google LLC. All rights reserved.