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

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

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






TimePartitioning (BigQuery API v2-rev20240727-2.0.0)












com.google.api.services.bigquery.model

Class TimePartitioning

    • Constructor Detail

      • TimePartitioning

        public TimePartitioning()
    • Method Detail

      • getExpirationMs

        public Long getExpirationMs()
        Optional. Number of milliseconds for which to keep the storage for a partition. A wrapper is used here because 0 is an invalid value.
        Returns:
        value or null for none
      • setExpirationMs

        public TimePartitioning setExpirationMs(Long expirationMs)
        Optional. Number of milliseconds for which to keep the storage for a partition. A wrapper is used here because 0 is an invalid value.
        Parameters:
        expirationMs - expirationMs or null for none
      • getField

        public String getField()
        Optional. If not set, the table is partitioned by pseudo column '_PARTITIONTIME'; if set, the table is partitioned by this field. The field must be a top-level TIMESTAMP or DATE field. Its mode must be NULLABLE or REQUIRED. A wrapper is used here because an empty string is an invalid value.
        Returns:
        value or null for none
      • setField

        public TimePartitioning setField(String field)
        Optional. If not set, the table is partitioned by pseudo column '_PARTITIONTIME'; if set, the table is partitioned by this field. The field must be a top-level TIMESTAMP or DATE field. Its mode must be NULLABLE or REQUIRED. A wrapper is used here because an empty string is an invalid value.
        Parameters:
        field - field or null for none
      • getRequirePartitionFilter

        public Boolean getRequirePartitionFilter()
        If set to true, queries over this table require a partition filter that can be used for partition elimination to be specified. This field is deprecated; please set the field with the same name on the table itself instead. This field needs a wrapper because we want to output the default value, false, if the user explicitly set it.
        Returns:
        value or null for none
      • setRequirePartitionFilter

        public TimePartitioning setRequirePartitionFilter(Boolean requirePartitionFilter)
        If set to true, queries over this table require a partition filter that can be used for partition elimination to be specified. This field is deprecated; please set the field with the same name on the table itself instead. This field needs a wrapper because we want to output the default value, false, if the user explicitly set it.
        Parameters:
        requirePartitionFilter - requirePartitionFilter or null for none
      • isRequirePartitionFilter

        public boolean isRequirePartitionFilter()
        Convenience method that returns only 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.

        If set to true, queries over this table require a partition filter that can be used for partition elimination to be specified. This field is deprecated; please set the field with the same name on the table itself instead. This field needs a wrapper because we want to output the default value, false, if the user explicitly set it.

      • getType

        public String getType()
        Required. The supported types are DAY, HOUR, MONTH, and YEAR, which will generate one partition per day, hour, month, and year, respectively.
        Returns:
        value or null for none
      • setType

        public TimePartitioning setType(String type)
        Required. The supported types are DAY, HOUR, MONTH, and YEAR, which will generate one partition per day, hour, month, and year, respectively.
        Parameters:
        type - type or null for none
      • clone

        public TimePartitioning clone()
        Overrides:
        clone in class com.google.api.client.json.GenericJson

Copyright © 2011–2024 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy