Skip to main content

Class ShowProcStatusResponse

java.lang.Object
com.gpudb.protocol.ShowProcStatusResponse
All Implemented Interfaces:
org.apache.avro.generic.GenericContainer, org.apache.avro.generic.IndexedRecord

public class ShowProcStatusResponse extends Object implements org.apache.avro.generic.IndexedRecord
A set of results returned by GPUdb.showProcStatus.
  • Constructor Details

    • ShowProcStatusResponse

      public ShowProcStatusResponse()
      Constructs a ShowProcStatusResponse object with default parameters.
  • Method Details

    • getClassSchema

      public static org.apache.avro.Schema getClassSchema()
      This method supports the Avro framework and is not intended to be called directly by the user.
      Returns:
      The schema for the class.
    • getProcNames

      public Map<String,String> getProcNames()
      The proc names corresponding to the returned run IDs.
      Returns:
      The current value of procNames.
    • setProcNames

      public ShowProcStatusResponse setProcNames(Map<String,String> procNames)
      The proc names corresponding to the returned run IDs.
      Parameters:
      procNames - The new value for procNames.
      Returns:
      this to mimic the builder pattern.
    • getParams

      public Map<String,Map<String,String>> getParams()
      The string params passed to GPUdb.executeProc for the returned run IDs.
      Returns:
      The current value of params.
    • setParams

      public ShowProcStatusResponse setParams(Map<String,Map<String,String>> params)
      The string params passed to GPUdb.executeProc for the returned run IDs.
      Parameters:
      params - The new value for params.
      Returns:
      this to mimic the builder pattern.
    • getBinParams

      public Map<String,Map<String,ByteBuffer>> getBinParams()
      The binary params passed to GPUdb.executeProc for the returned run IDs.
      Returns:
      The current value of binParams.
    • setBinParams

      public ShowProcStatusResponse setBinParams(Map<String,Map<String,ByteBuffer>> binParams)
      The binary params passed to GPUdb.executeProc for the returned run IDs.
      Parameters:
      binParams - The new value for binParams.
      Returns:
      this to mimic the builder pattern.
    • getInputTableNames

      public Map<String,List<String>> getInputTableNames()
      The input table names passed to GPUdb.executeProc for the returned run IDs.
      Returns:
      The current value of inputTableNames.
    • setInputTableNames

      public ShowProcStatusResponse setInputTableNames(Map<String,List<String>> inputTableNames)
      The input table names passed to GPUdb.executeProc for the returned run IDs.
      Parameters:
      inputTableNames - The new value for inputTableNames.
      Returns:
      this to mimic the builder pattern.
    • getInputColumnNames

      public Map<String,Map<String,List<String>>> getInputColumnNames()
      The input column names passed to GPUdb.executeProc for the returned run IDs, supplemented with the column names for input tables not included in the input column name map.
      Returns:
      The current value of inputColumnNames.
    • setInputColumnNames

      public ShowProcStatusResponse setInputColumnNames(Map<String,Map<String,List<String>>> inputColumnNames)
      The input column names passed to GPUdb.executeProc for the returned run IDs, supplemented with the column names for input tables not included in the input column name map.
      Parameters:
      inputColumnNames - The new value for inputColumnNames.
      Returns:
      this to mimic the builder pattern.
    • getOutputTableNames

      public Map<String,List<String>> getOutputTableNames()
      The output table names passed to GPUdb.executeProc for the returned run IDs.
      Returns:
      The current value of outputTableNames.
    • setOutputTableNames

      public ShowProcStatusResponse setOutputTableNames(Map<String,List<String>> outputTableNames)
      The output table names passed to GPUdb.executeProc for the returned run IDs.
      Parameters:
      outputTableNames - The new value for outputTableNames.
      Returns:
      this to mimic the builder pattern.
    • getOptions

      public Map<String,Map<String,String>> getOptions()
      The optional parameters passed to GPUdb.executeProc for the returned run IDs.
      Returns:
      The current value of options.
    • setOptions

      public ShowProcStatusResponse setOptions(Map<String,Map<String,String>> options)
      The optional parameters passed to GPUdb.executeProc for the returned run IDs.
      Parameters:
      options - The new value for options.
      Returns:
      this to mimic the builder pattern.
    • getOverallStatuses

      public Map<String,String> getOverallStatuses()
      Overall statuses for the returned run IDs. Note that these are rollups and individual statuses may differ between data segments for the same run ID; see statuses and messages for statuses from individual data segments. Valid values are:
      • RUNNING: The proc instance is currently running.
      • COMPLETE: The proc instance completed with no errors.
      • KILLED: The proc instance was killed before completion.
      • ERROR: The proc instance failed with an error.
      • NONE: The proc instance does not have a status, i.e. it has not yet ran.
      Returns:
      The current value of overallStatuses.
    • setOverallStatuses

      public ShowProcStatusResponse setOverallStatuses(Map<String,String> overallStatuses)
      Overall statuses for the returned run IDs. Note that these are rollups and individual statuses may differ between data segments for the same run ID; see statuses and messages for statuses from individual data segments. Valid values are:
      • RUNNING: The proc instance is currently running.
      • COMPLETE: The proc instance completed with no errors.
      • KILLED: The proc instance was killed before completion.
      • ERROR: The proc instance failed with an error.
      • NONE: The proc instance does not have a status, i.e. it has not yet ran.
      Parameters:
      overallStatuses - The new value for overallStatuses.
      Returns:
      this to mimic the builder pattern.
    • getStatuses

      public Map<String,Map<String,String>> getStatuses()
      Statuses for the returned run IDs, grouped by data segment ID. Valid values are:
      • RUNNING: The proc instance is currently running.
      • COMPLETE: The proc instance completed with no errors.
      • KILLED: The proc instance was killed before completion.
      • ERROR: The proc instance failed with an error.
      • NONE: The proc instance does not have a status, i.e. it has not yet ran.
      Returns:
      The current value of statuses.
    • setStatuses

      public ShowProcStatusResponse setStatuses(Map<String,Map<String,String>> statuses)
      Statuses for the returned run IDs, grouped by data segment ID. Valid values are:
      • RUNNING: The proc instance is currently running.
      • COMPLETE: The proc instance completed with no errors.
      • KILLED: The proc instance was killed before completion.
      • ERROR: The proc instance failed with an error.
      • NONE: The proc instance does not have a status, i.e. it has not yet ran.
      Parameters:
      statuses - The new value for statuses.
      Returns:
      this to mimic the builder pattern.
    • getMessages

      public Map<String,Map<String,String>> getMessages()
      Messages containing additional status information for the returned run IDs, grouped by data segment ID.
      Returns:
      The current value of messages.
    • setMessages

      public ShowProcStatusResponse setMessages(Map<String,Map<String,String>> messages)
      Messages containing additional status information for the returned run IDs, grouped by data segment ID.
      Parameters:
      messages - The new value for messages.
      Returns:
      this to mimic the builder pattern.
    • getResults

      public Map<String,Map<String,Map<String,String>>> getResults()
      String results for the returned run IDs, grouped by data segment ID.
      Returns:
      The current value of results.
    • setResults

      public ShowProcStatusResponse setResults(Map<String,Map<String,Map<String,String>>> results)
      String results for the returned run IDs, grouped by data segment ID.
      Parameters:
      results - The new value for results.
      Returns:
      this to mimic the builder pattern.
    • getBinResults

      public Map<String,Map<String,Map<String,ByteBuffer>>> getBinResults()
      Binary results for the returned run IDs, grouped by data segment ID.
      Returns:
      The current value of binResults.
    • setBinResults

      public ShowProcStatusResponse setBinResults(Map<String,Map<String,Map<String,ByteBuffer>>> binResults)
      Binary results for the returned run IDs, grouped by data segment ID.
      Parameters:
      binResults - The new value for binResults.
      Returns:
      this to mimic the builder pattern.
    • getOutput

      public Map<String,Map<String,Map<String,List<String>>>> getOutput()
      Output lines for the returned run IDs, grouped by data segment ID.
      • STDOUT: Output lines from stdout.
      • STDERR: Output lines from stderr.
      Returns:
      The current value of output.
    • setOutput

      public ShowProcStatusResponse setOutput(Map<String,Map<String,Map<String,List<String>>>> output)
      Output lines for the returned run IDs, grouped by data segment ID.
      • STDOUT: Output lines from stdout.
      • STDERR: Output lines from stderr.
      Parameters:
      output - The new value for output.
      Returns:
      this to mimic the builder pattern.
    • getTimings

      public Map<String,Map<String,Map<String,Long>>> getTimings()
      Timing information for the returned run IDs, grouped by data segment ID.
      Returns:
      The current value of timings.
    • setTimings

      public ShowProcStatusResponse setTimings(Map<String,Map<String,Map<String,Long>>> timings)
      Timing information for the returned run IDs, grouped by data segment ID.
      Parameters:
      timings - The new value for timings.
      Returns:
      this to mimic the builder pattern.
    • getInfo

      public Map<String,String> getInfo()
      Additional information.
      Returns:
      The current value of info.
    • setInfo

      public ShowProcStatusResponse setInfo(Map<String,String> info)
      Additional information.
      Parameters:
      info - The new value for info.
      Returns:
      this to mimic the builder pattern.
    • getSchema

      public org.apache.avro.Schema getSchema()
      This method supports the Avro framework and is not intended to be called directly by the user.
      Specified by:
      getSchema in interface org.apache.avro.generic.GenericContainer
      Returns:
      The schema object describing this class.
    • get

      public Object get(int index)
      This method supports the Avro framework and is not intended to be called directly by the user.
      Specified by:
      get in interface org.apache.avro.generic.IndexedRecord
      Parameters:
      index - the position of the field to get
      Returns:
      value of the field with the given index.
      Throws:
    • put

      public void put(int index, Object value)
      This method supports the Avro framework and is not intended to be called directly by the user.
      Specified by:
      put in interface org.apache.avro.generic.IndexedRecord
      Parameters:
      index - the position of the field to set
      value - the value to set
      Throws:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object