public static final class HivePartitioningOptions.Builder extends Object
Modifier and Type | Method and Description |
---|---|
HivePartitioningOptions |
build()
Creates a
HivePartitioningOptions object. |
HivePartitioningOptions.Builder |
setFields(List<String> fields)
[Output-only] For permanent external tables, this field is populated with the hive partition
keys in the order they were inferred.
|
HivePartitioningOptions.Builder |
setMode(String mode)
[Optional] When set, what mode of hive partitioning to use when reading data.
|
HivePartitioningOptions.Builder |
setRequirePartitionFilter(Boolean requirePartitionFilter)
[Optional] If set to true, queries over this table require a partition filter that can be
used for partition elimination to be specified.
|
HivePartitioningOptions.Builder |
setSourceUriPrefix(String sourceUriPrefix)
[Optional] When hive partition detection is requested, a common prefix for all source uris
should be supplied.
|
public HivePartitioningOptions.Builder setMode(String mode)
public HivePartitioningOptions.Builder setRequirePartitionFilter(Boolean requirePartitionFilter)
public HivePartitioningOptions.Builder setSourceUriPrefix(String sourceUriPrefix)
public HivePartitioningOptions.Builder setFields(List<String> fields)
The types of the partition keys can be deduced by checking the table schema (which will include the partition keys). Not every API will populate this field in the output. For example, Tables.Get will populate it, but Tables.List will not contain this field.
public HivePartitioningOptions build()
HivePartitioningOptions
object.Copyright © 2023 Google LLC. All rights reserved.