Interface DurationSettable

All Superinterfaces:
ScalarSettable, ScalarTyped, TokenSettable, TokenTyped
All Known Subinterfaces:
DurationOutputField
All Known Implementing Classes:
DurationRegister

public interface DurationSettable extends ScalarSettable
A TokenSettable object containing a duration value.
See Also:
  • TokenTypeConstant#DURATION
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    set(long seconds, int nanos)
    Sets the container to a directed duration value specified as seconds and nanoseconds.
    void
    set(Duration value)
    Sets the container to a duration value specified as a java.time.Duration object.

    Methods inherited from interface com.pervasive.datarush.types.ScalarTyped

    getType

    Methods inherited from interface com.pervasive.datarush.tokens.TokenSettable

    set, setNull, setZero
  • Method Details

    • set

      void set(Duration value)
      Sets the container to a duration value specified as a java.time.Duration object.
      Parameters:
      value - duration value to which to set the container
    • set

      void set(long seconds, int nanos)
      Sets the container to a directed duration value specified as seconds and nanoseconds.
      Parameters:
      seconds - number of seconds in duration
      nanos - fractional nanosecond portion of duration