Packages

c

com.nvidia.spark.rapids.window

LastRunningWindowFixer

class LastRunningWindowFixer extends FirstLastRunningWindowFixerBase

Batched running window fixer for LAST() window functions. Supports fixing for batched execution for ROWS and RANGE based window specifications.

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LastRunningWindowFixer
  2. FirstLastRunningWindowFixerBase
  3. Logging
  4. BatchedRunningWindowFixer
  5. Retryable
  6. AutoCloseable
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new LastRunningWindowFixer(ignoreNulls: Boolean = false)

    ignoreNulls

    Whether the function needs to ignore NULL values in the calculation.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def checkpoint(): Unit

    Save the state, so it can be restored in the case of a retry.

    Save the state, so it can be restored in the case of a retry. (This is called inside a Spark task context on executors.)

    Definition Classes
    FirstLastRunningWindowFixerBase → Retryable
  6. var chkptPreviousResult: Option[Scalar]

    Checkpoint result, in case it needs to be rolled back.

    Checkpoint result, in case it needs to be rolled back.

    Attributes
    protected[this]
    Definition Classes
    FirstLastRunningWindowFixerBase
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  8. def close(): Unit
    Definition Classes
    FirstLastRunningWindowFixerBase → AutoCloseable
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def fixUp(samePartitionMask: Either[ColumnVector, Boolean], sameOrderMask: Option[Either[ColumnVector, Boolean]], unfixedWindowResults: ColumnView): ColumnVector

    Fixes up unfixedWindowResults with stored state from previous batch(es).

    Fixes up unfixedWindowResults with stored state from previous batch(es). In this case (i.e. LAST), the previous result only comes into it if:

    1. There was a previous result at all. 2. Nulls have to be ignored (i.e. ignoreNulls == true). 3. The previous result (row) from the last batch is not null. 4. There exists at least one unfixedWindowResults row that is NULL, and belongs to the same partition/group as the previous result. In all other cases, the unfixedWindowResults prevail.
    samePartitionMask

    a mask that uses true to indicate the row is for the same partition by keys that was the last row in the previous batch or false to indicate it is not. If this is known to be all true or all false values a single boolean is used. If it can change for different rows than a column vector is provided. Only values that are for the same partition by keys should be modified. Because the input data is sorted by the partition by columns the boolean values will be grouped together.

    sameOrderMask

    Similar mask for ordering. Unused for LAST.

    unfixedWindowResults

    the output of the windowAggregation without anything fixed/modified. This should not be closed by fixUp as it will be handled by the framework.

    returns

    a fixed ColumnVector that was with outputs updated for items that were in the same group by key as the last row in the previous batch.

    Definition Classes
    LastRunningWindowFixerBatchedRunningWindowFixer
  13. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. val ignoreNulls: Boolean
  16. def incRef(col: ColumnView): ColumnVector
    Attributes
    protected
    Definition Classes
    BatchedRunningWindowFixer
  17. def initializeLogIfNecessary(isInterpreter: Boolean, silent: Boolean): Boolean
    Attributes
    protected
    Definition Classes
    Logging
  18. def initializeLogIfNecessary(isInterpreter: Boolean): Unit
    Attributes
    protected
    Definition Classes
    Logging
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. def isTraceEnabled(): Boolean
    Attributes
    protected
    Definition Classes
    Logging
  21. def log: Logger
    Attributes
    protected
    Definition Classes
    Logging
  22. def logDebug(msg: ⇒ String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  23. def logDebug(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  24. def logError(msg: ⇒ String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  25. def logError(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  26. def logInfo(msg: ⇒ String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  27. def logInfo(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  28. def logName: String
    Attributes
    protected
    Definition Classes
    Logging
  29. def logTrace(msg: ⇒ String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  30. def logTrace(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  31. def logWarning(msg: ⇒ String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  32. def logWarning(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  33. val name: String
  34. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  35. def needsOrderMask: Boolean
    Definition Classes
    BatchedRunningWindowFixer
  36. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  37. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  38. var previousResult: Option[Scalar]

    Saved "carry-over" result that might be applied to the next batch.

    Saved "carry-over" result that might be applied to the next batch.

    Attributes
    protected[this]
    Definition Classes
    FirstLastRunningWindowFixerBase
  39. def resetPrevious(finalOutputColumn: ColumnVector): Unit

    Saves the last row from the finalOutputColumn, to carry over to the next column processed by this fixer.

    Saves the last row from the finalOutputColumn, to carry over to the next column processed by this fixer.

    Attributes
    protected[this]
    Definition Classes
    FirstLastRunningWindowFixerBase
  40. def restore(): Unit

    Restore the state that was saved by calling to "checkpoint".

    Restore the state that was saved by calling to "checkpoint". (This is called inside a Spark task context on executors.)

    Definition Classes
    FirstLastRunningWindowFixerBase → Retryable
  41. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  42. def toString(): String
    Definition Classes
    AnyRef → Any
  43. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from Logging

Inherited from BatchedRunningWindowFixer

Inherited from Retryable

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from Any

Ungrouped