Skip to main content

Class ShowTriggersResponse

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

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

    • ShowTriggersResponse

      public ShowTriggersResponse()
      Constructs a ShowTriggersResponse 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.
    • getTriggerMap

      public Map<String,Map<String,String>> getTriggerMap()
      This dictionary contains (key, value) pairs of (trigger ID, information map/dictionary) where the key is a Unicode string representing a Trigger ID. The value is another embedded dictionary containing (key, value) pairs where the keys consist of ‘table_name’, ‘type’ and the parameter names relating to the trigger type, e.g. *nai*, *min*, *max*. The values are unicode strings (numeric values are also converted to strings) representing the value of the respective parameter. If a trigger is associated with multiple tables, then the string value for *table_name* contains a comma separated list of table names.
      Returns:
      The current value of triggerMap.
    • setTriggerMap

      public ShowTriggersResponse setTriggerMap(Map<String,Map<String,String>> triggerMap)
      This dictionary contains (key, value) pairs of (trigger ID, information map/dictionary) where the key is a Unicode string representing a Trigger ID. The value is another embedded dictionary containing (key, value) pairs where the keys consist of ‘table_name’, ‘type’ and the parameter names relating to the trigger type, e.g. *nai*, *min*, *max*. The values are unicode strings (numeric values are also converted to strings) representing the value of the respective parameter. If a trigger is associated with multiple tables, then the string value for *table_name* contains a comma separated list of table names.
      Parameters:
      triggerMap - The new value for triggerMap.
      Returns:
      this to mimic the builder pattern.
    • getInfo

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

      public ShowTriggersResponse 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