Class StandardTableDefinition.Builder (2.20.1)

public abstract static class StandardTableDefinition.Builder extends TableDefinition.Builder<StandardTableDefinition,StandardTableDefinition.Builder>

Inheritance

java.lang.Object > TableDefinition.Builder > StandardTableDefinition.Builder

Constructors

Builder()

public Builder()

Methods

build()

public abstract StandardTableDefinition build()

Creates a StandardTableDefinition object.

Returns
TypeDescription
StandardTableDefinition
Overrides

setClustering(Clustering clustering)

public abstract StandardTableDefinition.Builder setClustering(Clustering clustering)

Set the clustering configuration for the table. If not set, the table is not clustered. BigQuery supports clustering for both partitioned and non-partitioned tables.

Parameter
NameDescription
clusteringClustering
Returns
TypeDescription
StandardTableDefinition.Builder

setLocation(String location)

public abstract StandardTableDefinition.Builder setLocation(String location)
Parameter
NameDescription
locationString
Returns
TypeDescription
StandardTableDefinition.Builder

setNumBytes(Long numBytes)

public abstract StandardTableDefinition.Builder setNumBytes(Long numBytes)
Parameter
NameDescription
numBytesLong
Returns
TypeDescription
StandardTableDefinition.Builder

setNumLongTermBytes(Long numLongTermBytes)

public abstract StandardTableDefinition.Builder setNumLongTermBytes(Long numLongTermBytes)
Parameter
NameDescription
numLongTermBytesLong
Returns
TypeDescription
StandardTableDefinition.Builder

setNumRows(Long numRows)

public abstract StandardTableDefinition.Builder setNumRows(Long numRows)
Parameter
NameDescription
numRowsLong
Returns
TypeDescription
StandardTableDefinition.Builder

setRangePartitioning(RangePartitioning rangePartitioning)

public abstract StandardTableDefinition.Builder setRangePartitioning(RangePartitioning rangePartitioning)

Sets the range partitioning configuration for the table. Only one of timePartitioning and rangePartitioning should be specified.

Parameter
NameDescription
rangePartitioningRangePartitioning
Returns
TypeDescription
StandardTableDefinition.Builder

setSchema(Schema schema)

public abstract StandardTableDefinition.Builder setSchema(Schema schema)

Sets the table schema.

Parameter
NameDescription
schemaSchema
Returns
TypeDescription
StandardTableDefinition.Builder
Overrides

setStreamingBuffer(StandardTableDefinition.StreamingBuffer streamingBuffer)

public abstract StandardTableDefinition.Builder setStreamingBuffer(StandardTableDefinition.StreamingBuffer streamingBuffer)
Parameter
NameDescription
streamingBufferStandardTableDefinition.StreamingBuffer
Returns
TypeDescription
StandardTableDefinition.Builder

setTimePartitioning(TimePartitioning timePartitioning)

public abstract StandardTableDefinition.Builder setTimePartitioning(TimePartitioning timePartitioning)

Sets the time partitioning configuration for the table. If not set, the table is not time-partitioned.

Parameter
NameDescription
timePartitioningTimePartitioning
Returns
TypeDescription
StandardTableDefinition.Builder

setType(TableDefinition.Type type)

public abstract StandardTableDefinition.Builder setType(TableDefinition.Type type)
Parameter
NameDescription
typeTableDefinition.Type
Returns
TypeDescription
StandardTableDefinition.Builder
Overrides