All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.bigquery.model.HivePartitioningOptions.html Maven / Gradle / Ivy

There is a newer version: v2-rev20241222-2.0.0
Show newest version






HivePartitioningOptions (BigQuery API v2-rev20190616-1.29.2)












com.google.api.services.bigquery.model

Class HivePartitioningOptions

    • Constructor Detail

      • HivePartitioningOptions

        public HivePartitioningOptions()
    • Method Detail

      • getMode

        public String getMode()
        [Optional, Trusted Tester] When set, what mode of hive partitioning to use when reading data. Two modes are supported. (1) AUTO: automatically infer partition key name(s) and type(s). (2) STRINGS: automatically infer partition key name(s). All types are interpreted as strings. Not all storage formats support hive partitioning. Requesting hive partitioning on an unsupported format will lead to an error. Currently supported types include: AVRO, CSV, JSON, ORC and Parquet.
        Returns:
        value or null for none
      • setMode

        public HivePartitioningOptions setMode(String mode)
        [Optional, Trusted Tester] When set, what mode of hive partitioning to use when reading data. Two modes are supported. (1) AUTO: automatically infer partition key name(s) and type(s). (2) STRINGS: automatically infer partition key name(s). All types are interpreted as strings. Not all storage formats support hive partitioning. Requesting hive partitioning on an unsupported format will lead to an error. Currently supported types include: AVRO, CSV, JSON, ORC and Parquet.
        Parameters:
        mode - mode or null for none
      • getSourceUriPrefix

        public String getSourceUriPrefix()
        [Optional, Trusted Tester] When hive partition detection is requested, a common prefix for all source uris should be supplied. The prefix must end immediately before the partition key encoding begins. For example, consider files following this data layout. gs://bucket/path_to_table/dt=2019-01-01/country=BR/id=7/file.avro gs://bucket/path_to_table/dt=2018-12-31/country=CA/id=3/file.avro When hive partitioning is requested with either AUTO or STRINGS detection, the common prefix can be either of gs://bucket/path_to_table or gs://bucket/path_to_table/ (trailing slash does not matter).
        Returns:
        value or null for none
      • setSourceUriPrefix

        public HivePartitioningOptions setSourceUriPrefix(String sourceUriPrefix)
        [Optional, Trusted Tester] When hive partition detection is requested, a common prefix for all source uris should be supplied. The prefix must end immediately before the partition key encoding begins. For example, consider files following this data layout. gs://bucket/path_to_table/dt=2019-01-01/country=BR/id=7/file.avro gs://bucket/path_to_table/dt=2018-12-31/country=CA/id=3/file.avro When hive partitioning is requested with either AUTO or STRINGS detection, the common prefix can be either of gs://bucket/path_to_table or gs://bucket/path_to_table/ (trailing slash does not matter).
        Parameters:
        sourceUriPrefix - sourceUriPrefix or null for none

Copyright © 2011–2019 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy