Class RandSPInstruction

All Implemented Interfaces:
LineageTraceable

public class RandSPInstruction extends UnarySPInstruction
  • Field Details

    • INMEMORY_NUMBLOCKS_THRESHOLD

      public static final long INMEMORY_NUMBLOCKS_THRESHOLD
      See Also:
  • Method Details

    • getRows

      public long getRows()
    • getCols

      public long getCols()
    • getBlocksize

      public int getBlocksize()
    • getMinValue

      public double getMinValue()
    • getMaxValue

      public double getMaxValue()
    • getSparsity

      public double getSparsity()
    • getSeed

      public long getSeed()
    • getDims

      public String getDims()
    • getPdf

      public String getPdf()
    • getPdfParams

      public String getPdfParams()
    • parseInstruction

      public static RandSPInstruction parseInstruction(String str)
    • processInstruction

      public void processInstruction(ExecutionContext ec)
      Description copied from class: Instruction
      This method should be used to execute the instruction.
      Specified by:
      processInstruction in class SPInstruction
      Parameters:
      ec - execution context
    • getLineageItem

      public org.apache.commons.lang3.tuple.Pair<String,LineageItem> getLineageItem(ExecutionContext ec)
      Description copied from interface: LineageTraceable
      Obtain lineage trace of an instruction with a single output.
      Specified by:
      getLineageItem in interface LineageTraceable
      Overrides:
      getLineageItem in class ComputationSPInstruction
      Parameters:
      ec - execution context w/ live variables
      Returns:
      pair of (output variable name, output lineage item)