@@ -3519,12 +3519,13 @@ public static Expression timestampExtract(String fieldName, String part) {
35193519 * "week(monday)", "week(tuesday)", "week(wednesday)", "week(thursday)", "week(friday)",
35203520 * "week(saturday)", "week(sunday)", "isoweek", "month", "quarter", "year", and "isoyear".
35213521 * @param timezone The timezone expression to use for extraction.Valid values are from the TZ
3522- * database (e.g., "America/Los_Angeles") or in the format "Etc/GMT-1". Defaults to "UTC"
3523- * if not specified.
3522+ * database (e.g., "America/Los_Angeles") or in the format "Etc/GMT-1". Defaults to "UTC" if
3523+ * not specified.
35243524 * @return A new {@link Expression} representing the extracted part.
35253525 */
35263526 @ BetaApi
3527- public static Expression timestampExtractWithTimezone (Expression timestamp , Expression part , Expression timezone ) {
3527+ public static Expression timestampExtractWithTimezone (
3528+ Expression timestamp , Expression part , Expression timezone ) {
35283529 return new FunctionExpression ("timestamp_extract" , ImmutableList .of (timestamp , part , timezone ));
35293530 }
35303531
@@ -3536,13 +3537,13 @@ public static Expression timestampExtractWithTimezone(Expression timestamp, Expr
35363537 * "millisecond", "second", "minute", "hour", "dayofweek", "day", "dayofyear", "week",
35373538 * "week(monday)", "week(tuesday)", "week(wednesday)", "week(thursday)", "week(friday)",
35383539 * "week(saturday)", "week(sunday)", "isoweek", "month", "quarter", "year", and "isoyear".
3539- * @param timezone The timezone to use for extraction.Valid values are from the TZ database
3540- * (e.g., "America/Los_Angeles") or in the format "Etc/GMT-1". Defaults to "UTC" if not
3541- * specified.
3540+ * @param timezone The timezone to use for extraction.Valid values are from the TZ database (e.g.,
3541+ * "America/Los_Angeles") or in the format "Etc/GMT-1". Defaults to "UTC" if not specified.
35423542 * @return A new {@link Expression} representing the extracted part.
35433543 */
35443544 @ BetaApi
3545- public static Expression timestampExtractWithTimezone (Expression timestamp , Expression part , String timezone ) {
3545+ public static Expression timestampExtractWithTimezone (
3546+ Expression timestamp , Expression part , String timezone ) {
35463547 return timestampExtractWithTimezone (timestamp , part , constant (timezone ));
35473548 }
35483549
@@ -3554,13 +3555,13 @@ public static Expression timestampExtractWithTimezone(Expression timestamp, Expr
35543555 * "millisecond", "second", "minute", "hour", "dayofweek", "day", "dayofyear", "week",
35553556 * "week(monday)", "week(tuesday)", "week(wednesday)", "week(thursday)", "week(friday)",
35563557 * "week(saturday)", "week(sunday)", "isoweek", "month", "quarter", "year", and "isoyear".
3557- * @param timezone The timezone to use for extraction.Valid values are from the TZ database
3558- * (e.g., "America/Los_Angeles") or in the format "Etc/GMT-1". Defaults to "UTC" if not
3559- * specified.
3558+ * @param timezone The timezone to use for extraction.Valid values are from the TZ database (e.g.,
3559+ * "America/Los_Angeles") or in the format "Etc/GMT-1". Defaults to "UTC" if not specified.
35603560 * @return A new {@link Expression} representing the extracted part.
35613561 */
35623562 @ BetaApi
3563- public static Expression timestampExtractWithTimezone (Expression timestamp , String part , String timezone ) {
3563+ public static Expression timestampExtractWithTimezone (
3564+ Expression timestamp , String part , String timezone ) {
35643565 return timestampExtractWithTimezone (timestamp , constant (part ), constant (timezone ));
35653566 }
35663567
@@ -3572,13 +3573,13 @@ public static Expression timestampExtractWithTimezone(Expression timestamp, Stri
35723573 * "millisecond", "second", "minute", "hour", "dayofweek", "day", "dayofyear", "week",
35733574 * "week(monday)", "week(tuesday)", "week(wednesday)", "week(thursday)", "week(friday)",
35743575 * "week(saturday)", "week(sunday)", "isoweek", "month", "quarter", "year", and "isoyear".
3575- * @param timezone The timezone to use for extraction.Valid values are from the TZ database
3576- * (e.g., "America/Los_Angeles") or in the format "Etc/GMT-1". Defaults to "UTC" if not
3577- * specified.
3576+ * @param timezone The timezone to use for extraction.Valid values are from the TZ database (e.g.,
3577+ * "America/Los_Angeles") or in the format "Etc/GMT-1". Defaults to "UTC" if not specified.
35783578 * @return A new {@link Expression} representing the extracted part.
35793579 */
35803580 @ BetaApi
3581- public static Expression timestampExtractWithTimezone (String fieldName , Expression part , String timezone ) {
3581+ public static Expression timestampExtractWithTimezone (
3582+ String fieldName , Expression part , String timezone ) {
35823583 return timestampExtractWithTimezone (field (fieldName ), part , constant (timezone ));
35833584 }
35843585
@@ -3590,13 +3591,13 @@ public static Expression timestampExtractWithTimezone(String fieldName, Expressi
35903591 * "millisecond", "second", "minute", "hour", "dayofweek", "day", "dayofyear", "week",
35913592 * "week(monday)", "week(tuesday)", "week(wednesday)", "week(thursday)", "week(friday)",
35923593 * "week(saturday)", "week(sunday)", "isoweek", "month", "quarter", "year", and "isoyear".
3593- * @param timezone The timezone to use for extraction.Valid values are from the TZ database
3594- * (e.g., "America/Los_Angeles") or in the format "Etc/GMT-1". Defaults to "UTC" if not
3595- * specified.
3594+ * @param timezone The timezone to use for extraction.Valid values are from the TZ database (e.g.,
3595+ * "America/Los_Angeles") or in the format "Etc/GMT-1". Defaults to "UTC" if not specified.
35963596 * @return A new {@link Expression} representing the extracted part.
35973597 */
35983598 @ BetaApi
3599- public static Expression timestampExtractWithTimezone (String fieldName , String part , String timezone ) {
3599+ public static Expression timestampExtractWithTimezone (
3600+ String fieldName , String part , String timezone ) {
36003601 return timestampExtractWithTimezone (field (fieldName ), constant (part ), constant (timezone ));
36013602 }
36023603
@@ -3609,12 +3610,13 @@ public static Expression timestampExtractWithTimezone(String fieldName, String p
36093610 * "week(monday)", "week(tuesday)", "week(wednesday)", "week(thursday)", "week(friday)",
36103611 * "week(saturday)", "week(sunday)", "isoweek", "month", "quarter", "year", and "isoyear".
36113612 * @param timezone The timezone expression to use for extraction.Valid values are from the TZ
3612- * database (e.g., "America/Los_Angeles") or in the format "Etc/GMT-1". Defaults to "UTC"
3613- * if not specified.
3613+ * database (e.g., "America/Los_Angeles") or in the format "Etc/GMT-1". Defaults to "UTC" if
3614+ * not specified.
36143615 * @return A new {@link Expression} representing the extracted part.
36153616 */
36163617 @ BetaApi
3617- public static Expression timestampExtractWithTimezone (Expression timestamp , String part , Expression timezone ) {
3618+ public static Expression timestampExtractWithTimezone (
3619+ Expression timestamp , String part , Expression timezone ) {
36183620 return timestampExtractWithTimezone (timestamp , constant (part ), timezone );
36193621 }
36203622
@@ -3627,12 +3629,13 @@ public static Expression timestampExtractWithTimezone(Expression timestamp, Stri
36273629 * "week(monday)", "week(tuesday)", "week(wednesday)", "week(thursday)", "week(friday)",
36283630 * "week(saturday)", "week(sunday)", "isoweek", "month", "quarter", "year", and "isoyear".
36293631 * @param timezone The timezone expression to use for extraction.Valid values are from the TZ
3630- * database (e.g., "America/Los_Angeles") or in the format "Etc/GMT-1". Defaults to "UTC"
3631- * if not specified.
3632+ * database (e.g., "America/Los_Angeles") or in the format "Etc/GMT-1". Defaults to "UTC" if
3633+ * not specified.
36323634 * @return A new {@link Expression} representing the extracted part.
36333635 */
36343636 @ BetaApi
3635- public static Expression timestampExtractWithTimezone (String fieldName , Expression part , Expression timezone ) {
3637+ public static Expression timestampExtractWithTimezone (
3638+ String fieldName , Expression part , Expression timezone ) {
36363639 return timestampExtractWithTimezone (field (fieldName ), part , timezone );
36373640 }
36383641
@@ -3645,12 +3648,13 @@ public static Expression timestampExtractWithTimezone(String fieldName, Expressi
36453648 * "week(monday)", "week(tuesday)", "week(wednesday)", "week(thursday)", "week(friday)",
36463649 * "week(saturday)", "week(sunday)", "isoweek", "month", "quarter", "year", and "isoyear".
36473650 * @param timezone The timezone expression to use for extraction.Valid values are from the TZ
3648- * database (e.g., "America/Los_Angeles") or in the format "Etc/GMT-1". Defaults to "UTC"
3649- * if not specified.
3651+ * database (e.g., "America/Los_Angeles") or in the format "Etc/GMT-1". Defaults to "UTC" if
3652+ * not specified.
36503653 * @return A new {@link Expression} representing the extracted part.
36513654 */
36523655 @ BetaApi
3653- public static Expression timestampExtractWithTimezone (String fieldName , String part , Expression timezone ) {
3656+ public static Expression timestampExtractWithTimezone (
3657+ String fieldName , String part , Expression timezone ) {
36543658 return timestampExtractWithTimezone (field (fieldName ), constant (part ), timezone );
36553659 }
36563660
@@ -5969,7 +5973,8 @@ public final Expression timestampTruncateWithTimezone(String granularity, Expres
59695973 * @return A new {@link Expression} representing the truncated timestamp.
59705974 */
59715975 @ BetaApi
5972- public final Expression timestampTruncateWithTimezone (Expression granularity , Expression timezone ) {
5976+ public final Expression timestampTruncateWithTimezone (
5977+ Expression granularity , Expression timezone ) {
59735978 return timestampTruncateWithTimezone (this , granularity , timezone );
59745979 }
59755980
@@ -6015,10 +6020,10 @@ public final Expression timestampDiff(String startFieldName, String unit) {
60156020 /**
60166021 * Creates an expression that extracts a specified part from this timestamp expression.
60176022 *
6018- * @param part The part to extract. Valid values are "microsecond",
6019- * "millisecond ", "second ", "minute ", "hour ", "dayofweek ", "day ", "dayofyear ", "week",
6020- * "week(monday )", "week(tuesday )", "week(wednesday )", "week(thursday )", "week(friday )",
6021- * "week(saturday)", "week(sunday)", " isoweek", "month", "quarter", "year", and "isoyear".
6023+ * @param part The part to extract. Valid values are "microsecond", "millisecond", "second",
6024+ * "minute ", "hour ", "dayofweek ", "day ", "dayofyear ", "week ", "week(monday) ", "week(tuesday) ",
6025+ * "week(wednesday )", "week(thursday )", "week(friday )", "week(saturday )", "week(sunday )",
6026+ * "isoweek", "month", "quarter", "year", and "isoyear".
60226027 * @return A new {@link Expression} representing the extracted part.
60236028 */
60246029 @ BetaApi
@@ -6029,10 +6034,10 @@ public final Expression timestampExtract(Expression part) {
60296034 /**
60306035 * Creates an expression that extracts a specified part from this timestamp expression.
60316036 *
6032- * @param part The part to extract. Valid values are "microsecond",
6033- * "millisecond ", "second ", "minute ", "hour ", "dayofweek ", "day ", "dayofyear ", "week",
6034- * "week(monday )", "week(tuesday )", "week(wednesday )", "week(thursday )", "week(friday )",
6035- * "week(saturday)", "week(sunday)", " isoweek", "month", "quarter", "year", and "isoyear".
6037+ * @param part The part to extract. Valid values are "microsecond", "millisecond", "second",
6038+ * "minute ", "hour ", "dayofweek ", "day ", "dayofyear ", "week ", "week(monday) ", "week(tuesday) ",
6039+ * "week(wednesday )", "week(thursday )", "week(friday )", "week(saturday )", "week(sunday )",
6040+ * "isoweek", "month", "quarter", "year", and "isoyear".
60366041 * @return A new {@link Expression} representing the extracted part.
60376042 */
60386043 @ BetaApi
@@ -6041,13 +6046,13 @@ public final Expression timestampExtract(String part) {
60416046 }
60426047
60436048 /**
6044- * Creates an expression that extracts a specified part from this timestamp expression in
6045- * a given timezone.
6049+ * Creates an expression that extracts a specified part from this timestamp expression in a given
6050+ * timezone.
60466051 *
6047- * @param part The part to extract. Valid values are "microsecond",
6048- * "millisecond ", "second ", "minute ", "hour ", "dayofweek ", "day ", "dayofyear ", "week",
6049- * "week(monday )", "week(tuesday )", "week(wednesday )", "week(thursday )", "week(friday )",
6050- * "week(saturday)", "week(sunday)", " isoweek", "month", "quarter", "year", and "isoyear".
6052+ * @param part The part to extract. Valid values are "microsecond", "millisecond", "second",
6053+ * "minute ", "hour ", "dayofweek ", "day ", "dayofyear ", "week ", "week(monday) ", "week(tuesday) ",
6054+ * "week(wednesday )", "week(thursday )", "week(friday )", "week(saturday )", "week(sunday )",
6055+ * "isoweek", "month", "quarter", "year", and "isoyear".
60516056 * @param timezone The timezone to use for extraction. Valid values are from the TZ database
60526057 * (e.g., "America/Los_Angeles") or in the format "Etc/GMT-1". Defaults to "UTC" if not
60536058 * specified.
@@ -6059,13 +6064,13 @@ public final Expression timestampExtractWithTimezone(Expression part, String tim
60596064 }
60606065
60616066 /**
6062- * Creates an expression that extracts a specified part from this timestamp expression in
6063- * a given timezone.
6067+ * Creates an expression that extracts a specified part from this timestamp expression in a given
6068+ * timezone.
60646069 *
6065- * @param part The part to extract. Valid values are "microsecond",
6066- * "millisecond ", "second ", "minute ", "hour ", "dayofweek ", "day ", "dayofyear ", "week",
6067- * "week(monday )", "week(tuesday )", "week(wednesday )", "week(thursday )", "week(friday )",
6068- * "week(saturday)", "week(sunday)", " isoweek", "month", "quarter", "year", and "isoyear".
6070+ * @param part The part to extract. Valid values are "microsecond", "millisecond", "second",
6071+ * "minute ", "hour ", "dayofweek ", "day ", "dayofyear ", "week ", "week(monday) ", "week(tuesday) ",
6072+ * "week(wednesday )", "week(thursday )", "week(friday )", "week(saturday )", "week(sunday )",
6073+ * "isoweek", "month", "quarter", "year", and "isoyear".
60696074 * @param timezone The timezone to use for extraction. Valid values are from the TZ database
60706075 * (e.g., "America/Los_Angeles") or in the format "Etc/GMT-1". Defaults to "UTC" if not
60716076 * specified.
@@ -6077,13 +6082,13 @@ public final Expression timestampExtractWithTimezone(String part, String timezon
60776082 }
60786083
60796084 /**
6080- * Creates an expression that extracts a specified part from this timestamp expression in
6081- * a given timezone.
6085+ * Creates an expression that extracts a specified part from this timestamp expression in a given
6086+ * timezone.
60826087 *
6083- * @param part The part to extract. Valid values are "microsecond",
6084- * "millisecond ", "second ", "minute ", "hour ", "dayofweek ", "day ", "dayofyear ", "week",
6085- * "week(monday )", "week(tuesday )", "week(wednesday )", "week(thursday )", "week(friday )",
6086- * "week(saturday)", "week(sunday)", " isoweek", "month", "quarter", "year", and "isoyear".
6088+ * @param part The part to extract. Valid values are "microsecond", "millisecond", "second",
6089+ * "minute ", "hour ", "dayofweek ", "day ", "dayofyear ", "week ", "week(monday) ", "week(tuesday) ",
6090+ * "week(wednesday )", "week(thursday )", "week(friday )", "week(saturday )", "week(sunday )",
6091+ * "isoweek", "month", "quarter", "year", and "isoyear".
60876092 * @param timezone The timezone expression to use for extraction. Valid values are from the TZ
60886093 * database (e.g., "America/Los_Angeles") or in the format "Etc/GMT-1". Defaults to "UTC" if
60896094 * not specified.
@@ -6095,13 +6100,13 @@ public final Expression timestampExtractWithTimezone(Expression part, Expression
60956100 }
60966101
60976102 /**
6098- * Creates an expression that extracts a specified part from this timestamp expression in
6099- * a given timezone.
6103+ * Creates an expression that extracts a specified part from this timestamp expression in a given
6104+ * timezone.
61006105 *
6101- * @param part The part to extract. Valid values are "microsecond",
6102- * "millisecond ", "second ", "minute ", "hour ", "dayofweek ", "day ", "dayofyear ", "week",
6103- * "week(monday )", "week(tuesday )", "week(wednesday )", "week(thursday )", "week(friday )",
6104- * "week(saturday)", "week(sunday)", " isoweek", "month", "quarter", "year", and "isoyear".
6106+ * @param part The part to extract. Valid values are "microsecond", "millisecond", "second",
6107+ * "minute ", "hour ", "dayofweek ", "day ", "dayofyear ", "week ", "week(monday) ", "week(tuesday) ",
6108+ * "week(wednesday )", "week(thursday )", "week(friday )", "week(saturday )", "week(sunday )",
6109+ * "isoweek", "month", "quarter", "year", and "isoyear".
61056110 * @param timezone The timezone expression to use for extraction. Valid values are from the TZ
61066111 * database (e.g., "America/Los_Angeles") or in the format "Etc/GMT-1". Defaults to "UTC" if
61076112 * not specified.
0 commit comments