Class WMResourcePlan

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

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

  • Constructor Details

    • WMResourcePlan

      public WMResourcePlan()
    • WMResourcePlan

      public WMResourcePlan(String name)
    • WMResourcePlan

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

    • deepCopy

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

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

      public String getName()
    • setName

      public WMResourcePlan setName(String name)
    • unsetName

      public void unsetName()
    • isSetName

      public boolean isSetName()
      Returns true if field name is set (has been assigned a value) and false otherwise
    • setNameIsSet

      public void setNameIsSet(boolean value)
    • getStatus

      public WMResourcePlanStatus getStatus()
      See Also:
    • setStatus

      public WMResourcePlan setStatus(WMResourcePlanStatus status)
      See Also:
    • unsetStatus

      public void unsetStatus()
    • isSetStatus

      public boolean isSetStatus()
      Returns true if field status is set (has been assigned a value) and false otherwise
    • setStatusIsSet

      public void setStatusIsSet(boolean value)
    • getQueryParallelism

      public int getQueryParallelism()
    • setQueryParallelism

      public WMResourcePlan setQueryParallelism(int queryParallelism)
    • unsetQueryParallelism

      public void unsetQueryParallelism()
    • isSetQueryParallelism

      public boolean isSetQueryParallelism()
      Returns true if field queryParallelism is set (has been assigned a value) and false otherwise
    • setQueryParallelismIsSet

      public void setQueryParallelismIsSet(boolean value)
    • getDefaultPoolPath

      public String getDefaultPoolPath()
    • setDefaultPoolPath

      public WMResourcePlan setDefaultPoolPath(String defaultPoolPath)
    • unsetDefaultPoolPath

      public void unsetDefaultPoolPath()
    • isSetDefaultPoolPath

      public boolean isSetDefaultPoolPath()
      Returns true if field defaultPoolPath is set (has been assigned a value) and false otherwise
    • setDefaultPoolPathIsSet

      public void setDefaultPoolPathIsSet(boolean value)
    • setFieldValue

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

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

      public boolean isSet(WMResourcePlan._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<WMResourcePlan,WMResourcePlan._Fields>
    • equals

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

      public boolean equals(WMResourcePlan that)
    • hashCode

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

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

      public WMResourcePlan._Fields fieldForId(int fieldId)
      Specified by:
      fieldForId in interface org.apache.thrift.TBase<WMResourcePlan,WMResourcePlan._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