Class TableCreateOptions.Builder
java.lang.Object
io.github.flink.gcp.connector.bigtable.sink.TableCreateOptions.Builder
- Enclosing class:
- TableCreateOptions
Builder for
TableCreateOptions.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the options.columnFamily(String name) Declares a column family without a garbage-collection rule, keeping Bigtable's default of collecting nothing.columnFamily(String name, ColumnFamilyType valueType, GcRule rule) Declares a column family with an explicit value type and optional retention rule.columnFamily(String name, GcRule rule) Declares a column family with the given garbage-collection rule.
-
Method Details
-
columnFamily
Declares a column family without a garbage-collection rule, keeping Bigtable's default of collecting nothing.- Parameters:
name- the family name, non-blank- Returns:
- this builder
-
columnFamily
Declares a column family with the given garbage-collection rule.- Parameters:
name- the family name, non-blankrule- the rule to create the family with- Returns:
- this builder
-
columnFamily
public TableCreateOptions.Builder columnFamily(String name, ColumnFamilyType valueType, @Nullable GcRule rule) Declares a column family with an explicit value type and optional retention rule. Repeating a family name replaces both its type and rule.- Parameters:
name- the family name, non-blankvalueType- the value type, not nullrule- the garbage-collection rule, or null for no automatic collection- Returns:
- this builder
-
build
Builds the options.- Returns:
- the options
- Throws:
IllegalStateException- if no column family was declared
-