public final class HivePartitioningOptions
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the BigQuery API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
HivePartitioningOptions() |
Modifier and Type | Method and Description |
---|---|
HivePartitioningOptions |
clone() |
List<String> |
getFields()
Output only.
|
String |
getMode()
Optional.
|
Boolean |
getRequirePartitionFilter()
Optional.
|
String |
getSourceUriPrefix()
Optional.
|
boolean |
isRequirePartitionFilter()
Convenience method that returns only
Boolean.TRUE or Boolean.FALSE . |
HivePartitioningOptions |
set(String fieldName,
Object value) |
HivePartitioningOptions |
setFields(List<String> fields)
Output only.
|
HivePartitioningOptions |
setMode(String mode)
Optional.
|
HivePartitioningOptions |
setRequirePartitionFilter(Boolean requirePartitionFilter)
Optional.
|
HivePartitioningOptions |
setSourceUriPrefix(String sourceUriPrefix)
Optional.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public List<String> getFields()
null
for nonepublic HivePartitioningOptions setFields(List<String> fields)
fields
- fields or null
for nonepublic String getMode()
null
for nonepublic HivePartitioningOptions setMode(String mode)
mode
- mode or null
for nonepublic Boolean getRequirePartitionFilter()
null
for nonepublic HivePartitioningOptions setRequirePartitionFilter(Boolean requirePartitionFilter)
requirePartitionFilter
- requirePartitionFilter or null
for nonepublic boolean isRequirePartitionFilter()
Boolean.TRUE
or Boolean.FALSE
.
Boolean properties can have four possible values:
null
, Data.NULL_BOOLEAN
, Boolean.TRUE
or Boolean.FALSE
.
This method returns Boolean.TRUE
if the default of the property is Boolean.TRUE
and it is null
or Data.NULL_BOOLEAN
.
Boolean.FALSE
is returned if the default of the property is Boolean.FALSE
and
it is null
or Data.NULL_BOOLEAN
.
Optional. If set to true, queries over this table require a partition filter that can be used for partition elimination to be specified. Note that this field should only be true when creating a permanent external table or querying a temporary external table. Hive-partitioned loads with require_partition_filter explicitly set to true will fail.
public String getSourceUriPrefix()
null
for nonepublic HivePartitioningOptions setSourceUriPrefix(String sourceUriPrefix)
sourceUriPrefix
- sourceUriPrefix or null
for nonepublic HivePartitioningOptions set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public HivePartitioningOptions clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.