Class FunctionOutput

java.lang.Object
org.dbos.apiary.function.FunctionOutput

public class FunctionOutput extends Object
FunctionOutput stores the output of a function. It supports all Apiary function return types.
  • Field Details

    • output

      public final Object output
    • queuedTasks

      public final List<Task> queuedTasks
  • Constructor Details

    • FunctionOutput

      public FunctionOutput(Object output, List<Task> queuedTasks)
  • Method Details

    • getString

      public String getString()
      Return a String output. If the output is not String, return null.
      Returns:
      the String output.
    • getInt

      public Integer getInt()
      Return an Integer output. If the output is not Integer, return null.
      Returns:
      the Integer output.
    • getStringArray

      public String[] getStringArray()
      Return a String array output. If the output is not String array, return null.
      Returns:
      the String[] output.
    • getIntArray

      public int[] getIntArray()
      Return an Integer array output. If the output is not Integer array, return null.
      Returns:
      the Integer[] output.
    • getFuture

      public ApiaryFuture getFuture()
      Return an ApiaryFuture output. If the output is not ApiaryFuture, return null.
      Returns:
      the ApiaryFuture output.