Interface DateOperators.DateParts<T extends DateOperators.DateParts<T>>

All Known Implementing Classes:
DateOperators.DateFromParts, DateOperators.IsoDateFromParts
Enclosing class:
DateOperators

public static interface DateOperators.DateParts<T extends DateOperators.DateParts<T>>
Since:
2.1
Author:
Christoph Strobl
  • Method Details

    • hour

      T hour(Object hour)
      Set the hour to the given value which must resolve to a value in range of 0 - 23. Can be a simple value, field reference or expression.
      Parameters:
      hour - must not be null.
      Returns:
      new instance.
      Throws:
      IllegalArgumentException - if given hour is null
    • hourOf

      default T hourOf(String fieldReference)
      Set the hour to the value resolved by following the given field reference.
      Parameters:
      fieldReference - must not be null.
      Returns:
      new instance.
      Throws:
      IllegalArgumentException - if given fieldReference is null.
    • hourOf

      default T hourOf(AggregationExpression expression)
      Set the hour to the result of the given expression.
      Parameters:
      expression - must not be null.
      Returns:
      new instance.
      Throws:
      IllegalArgumentException - if given expression is null.
    • minute

      T minute(Object minute)
      Set the minute to the given value which must resolve to a value in range 0 - 59. Can be a simple value, field reference or expression.
      Parameters:
      minute - must not be null.
      Returns:
      new instance.
      Throws:
      IllegalArgumentException - if given minute is null
    • minuteOf

      default T minuteOf(String fieldReference)
      Set the minute to the value resolved by following the given field reference.
      Parameters:
      fieldReference - must not be null.
      Returns:
      new instance.
      Throws:
      IllegalArgumentException - if given fieldReference is null.
    • minuteOf

      default T minuteOf(AggregationExpression expression)
      Set the minute to the result of the given expression.
      Parameters:
      expression - must not be null.
      Returns:
      new instance.
      Throws:
      IllegalArgumentException - if given expression is null.
    • second

      T second(Object second)
      Set the second to the given value which must resolve to a value in range 0 - 59. Can be a simple value, field reference or expression.
      Parameters:
      second - must not be null.
      Returns:
      new instance.
      Throws:
      IllegalArgumentException - if given second is null
    • secondOf

      default T secondOf(String fieldReference)
      Set the second to the value resolved by following the given field reference.
      Parameters:
      fieldReference - must not be null.
      Returns:
      new instance.
      Throws:
      IllegalArgumentException - if given fieldReference is null.
    • secondOf

      default T secondOf(AggregationExpression expression)
      Set the second to the result of the given expression.
      Parameters:
      expression - must not be null.
      Returns:
      new instance.
      Throws:
      IllegalArgumentException - if given expression is null.
    • millisecond

      T millisecond(Object millisecond)
      Set the millisecond to the given value which must resolve to a value in range 0 - 999. Can be a simple value, field reference or expression.
      Parameters:
      millisecond - must not be null.
      Returns:
      new instance.
      Throws:
      IllegalArgumentException - if given millisecond is null
      Since:
      3.2
    • millisecondOf

      default T millisecondOf(String fieldReference)
      Set the millisecond to the value resolved by following the given field reference.
      Parameters:
      fieldReference - must not be null.
      Returns:
      new instance.
      Throws:
      IllegalArgumentException - if given fieldReference is null.
      Since:
      3.2
    • millisecondOf

      default T millisecondOf(AggregationExpression expression)
      Set the milliseconds to the result of the given expression.
      Parameters:
      expression - must not be null.
      Returns:
      new instance.
      Throws:
      IllegalArgumentException - if given expression is null.
      Since:
      3.2