Class WMFullResourcePlan

java.lang.Object
io.trino.hive.thrift.metastore.WMFullResourcePlan
All Implemented Interfaces:
Serializable, Cloneable, Comparable<WMFullResourcePlan>, org.apache.thrift.TBase<WMFullResourcePlan,WMFullResourcePlan._Fields>, org.apache.thrift.TSerializable

@Generated("Autogenerated by Thrift Compiler (0.17.0)") public class WMFullResourcePlan extends Object implements org.apache.thrift.TBase<WMFullResourcePlan,WMFullResourcePlan._Fields>, Serializable, Cloneable, Comparable<WMFullResourcePlan>
See Also:
  • Field Details

  • Constructor Details

    • WMFullResourcePlan

      public WMFullResourcePlan()
    • WMFullResourcePlan

      public WMFullResourcePlan(WMResourcePlan plan, List<WMPool> pools)
    • WMFullResourcePlan

      public WMFullResourcePlan(WMFullResourcePlan other)
      Performs a deep copy on other.
  • Method Details

    • deepCopy

      public WMFullResourcePlan deepCopy()
      Specified by:
      deepCopy in interface org.apache.thrift.TBase<WMFullResourcePlan,WMFullResourcePlan._Fields>
    • clear

      public void clear()
      Specified by:
      clear in interface org.apache.thrift.TBase<WMFullResourcePlan,WMFullResourcePlan._Fields>
    • getPlan

      public WMResourcePlan getPlan()
    • setPlan

      public WMFullResourcePlan setPlan(WMResourcePlan plan)
    • unsetPlan

      public void unsetPlan()
    • isSetPlan

      public boolean isSetPlan()
      Returns true if field plan is set (has been assigned a value) and false otherwise
    • setPlanIsSet

      public void setPlanIsSet(boolean value)
    • getPoolsSize

      public int getPoolsSize()
    • getPoolsIterator

      public Iterator<WMPool> getPoolsIterator()
    • addToPools

      public void addToPools(WMPool elem)
    • getPools

      public List<WMPool> getPools()
    • setPools

      public WMFullResourcePlan setPools(List<WMPool> pools)
    • unsetPools

      public void unsetPools()
    • isSetPools

      public boolean isSetPools()
      Returns true if field pools is set (has been assigned a value) and false otherwise
    • setPoolsIsSet

      public void setPoolsIsSet(boolean value)
    • getMappingsSize

      public int getMappingsSize()
    • getMappingsIterator

      public Iterator<WMMapping> getMappingsIterator()
    • addToMappings

      public void addToMappings(WMMapping elem)
    • getMappings

      public List<WMMapping> getMappings()
    • setMappings

      public WMFullResourcePlan setMappings(List<WMMapping> mappings)
    • unsetMappings

      public void unsetMappings()
    • isSetMappings

      public boolean isSetMappings()
      Returns true if field mappings is set (has been assigned a value) and false otherwise
    • setMappingsIsSet

      public void setMappingsIsSet(boolean value)
    • getTriggersSize

      public int getTriggersSize()
    • getTriggersIterator

      public Iterator<WMTrigger> getTriggersIterator()
    • addToTriggers

      public void addToTriggers(WMTrigger elem)
    • getTriggers

      public List<WMTrigger> getTriggers()
    • setTriggers

      public WMFullResourcePlan setTriggers(List<WMTrigger> triggers)
    • unsetTriggers

      public void unsetTriggers()
    • isSetTriggers

      public boolean isSetTriggers()
      Returns true if field triggers is set (has been assigned a value) and false otherwise
    • setTriggersIsSet

      public void setTriggersIsSet(boolean value)
    • getPoolTriggersSize

      public int getPoolTriggersSize()
    • getPoolTriggersIterator

      public Iterator<WMPoolTrigger> getPoolTriggersIterator()
    • addToPoolTriggers

      public void addToPoolTriggers(WMPoolTrigger elem)
    • getPoolTriggers

      public List<WMPoolTrigger> getPoolTriggers()
    • setPoolTriggers

      public WMFullResourcePlan setPoolTriggers(List<WMPoolTrigger> poolTriggers)
    • unsetPoolTriggers

      public void unsetPoolTriggers()
    • isSetPoolTriggers

      public boolean isSetPoolTriggers()
      Returns true if field poolTriggers is set (has been assigned a value) and false otherwise
    • setPoolTriggersIsSet

      public void setPoolTriggersIsSet(boolean value)
    • setFieldValue

      public void setFieldValue(WMFullResourcePlan._Fields field, Object value)
      Specified by:
      setFieldValue in interface org.apache.thrift.TBase<WMFullResourcePlan,WMFullResourcePlan._Fields>
    • getFieldValue

      public Object getFieldValue(WMFullResourcePlan._Fields field)
      Specified by:
      getFieldValue in interface org.apache.thrift.TBase<WMFullResourcePlan,WMFullResourcePlan._Fields>
    • isSet

      public boolean isSet(WMFullResourcePlan._Fields field)
      Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
      Specified by:
      isSet in interface org.apache.thrift.TBase<WMFullResourcePlan,WMFullResourcePlan._Fields>
    • equals

      public boolean equals(Object that)
      Overrides:
      equals in class Object
    • equals

      public boolean equals(WMFullResourcePlan that)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • compareTo

      public int compareTo(WMFullResourcePlan other)
      Specified by:
      compareTo in interface Comparable<WMFullResourcePlan>
    • fieldForId

      public WMFullResourcePlan._Fields fieldForId(int fieldId)
      Specified by:
      fieldForId in interface org.apache.thrift.TBase<WMFullResourcePlan,WMFullResourcePlan._Fields>
    • read

      public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
      Specified by:
      read in interface org.apache.thrift.TSerializable
      Throws:
      org.apache.thrift.TException
    • write

      public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
      Specified by:
      write in interface org.apache.thrift.TSerializable
      Throws:
      org.apache.thrift.TException
    • toString

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

      public void validate() throws org.apache.thrift.TException
      Throws:
      org.apache.thrift.TException