Package com.google.cloud.bigquery
Class RangePartitioning.Builder
- java.lang.Object
-
- com.google.cloud.bigquery.RangePartitioning.Builder
-
- Enclosing class:
- RangePartitioning
public static final class RangePartitioning.Builder extends Object
A builder forRangePartitioning
objects.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RangePartitioning
build()
Creates aRangePartitioning
object.RangePartitioning.Builder
setField(String field)
[Required] The table is partitioned by this field.RangePartitioning.Builder
setRange(RangePartitioning.Range range)
[Required] Defines the ranges for range partitioning.
-
-
-
Method Detail
-
setField
public RangePartitioning.Builder setField(String field)
[Required] The table is partitioned by this field. The field must be a top- level NULLABLE/REQUIRED field. The only supported type is INTEGER/INT64.- Parameters:
field
- field ornull
for none
-
setRange
public RangePartitioning.Builder setRange(RangePartitioning.Range range)
[Required] Defines the ranges for range partitioning.- Parameters:
range
- range ornull
for none
-
build
public RangePartitioning build()
Creates aRangePartitioning
object.
-
-