Class WindowScale

java.lang.Object
io.deephaven.api.updateby.spec.WindowScale

@Immutable public abstract class WindowScale extends Object
  • Constructor Details

    • WindowScale

      public WindowScale()
  • Method Details

    • ofTime

      public static WindowScale ofTime(String timestampCol, long timeScaleNanos)
    • ofTime

      public static WindowScale ofTime(String timestampCol, Duration duration)
    • ofTicks

      public static WindowScale ofTicks(double tickWindow)
    • timestampCol

      @Parameter @Nullable public abstract String timestampCol()
    • tickUnits

      @Parameter public abstract double tickUnits()
      Store the tick units as a double and convert to long as needed.
    • timeUnits

      @Parameter public abstract long timeUnits()
      Store the time units as a long (in nanoseconds).
    • isTimeBased

      public final boolean isTimeBased()
    • getTimeScaleUnits

      public final long getTimeScaleUnits()
      Return the appropriate tick/time units as a long
    • getFractionalTimeScaleUnits

      public final double getFractionalTimeScaleUnits()
      Return the appropriate tick/time units as a double
    • getDuration

      public final Duration getDuration()
    • getTicks

      public final long getTicks()