Package com.google.cloud.bigquery
Enum TimePartitioning.Type
- java.lang.Object
-
- java.lang.Enum<TimePartitioning.Type>
-
- com.google.cloud.bigquery.TimePartitioning.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<TimePartitioning.Type>
- Enclosing class:
- TimePartitioning
public static enum TimePartitioning.Type extends Enum<TimePartitioning.Type>
[Optional] The supported types are DAY, HOUR, MONTH, and YEAR, which will generate one partition per day, hour, month, and year, respectively. When the interval is not specified, the default behavior is DAY.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TimePartitioning.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static TimePartitioning.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DAY
public static final TimePartitioning.Type DAY
Table is partitioned per day.
-
HOUR
public static final TimePartitioning.Type HOUR
Table is partitioned per hour.
-
MONTH
public static final TimePartitioning.Type MONTH
Table is partitioned per month.
-
YEAR
public static final TimePartitioning.Type YEAR
Table is partitioned per year.
-
-
Method Detail
-
values
public static TimePartitioning.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TimePartitioning.Type c : TimePartitioning.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TimePartitioning.Type valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-