Class WMPool

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

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

    • metaDataMap

      public static final Map<WMPool._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
  • Constructor Details

    • WMPool

      public WMPool()
    • WMPool

      public WMPool(String resourcePlanName, String poolPath)
    • WMPool

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

    • deepCopy

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

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

      public String getResourcePlanName()
    • setResourcePlanName

      public WMPool setResourcePlanName(String resourcePlanName)
    • unsetResourcePlanName

      public void unsetResourcePlanName()
    • isSetResourcePlanName

      public boolean isSetResourcePlanName()
      Returns true if field resourcePlanName is set (has been assigned a value) and false otherwise
    • setResourcePlanNameIsSet

      public void setResourcePlanNameIsSet(boolean value)
    • getPoolPath

      public String getPoolPath()
    • setPoolPath

      public WMPool setPoolPath(String poolPath)
    • unsetPoolPath

      public void unsetPoolPath()
    • isSetPoolPath

      public boolean isSetPoolPath()
      Returns true if field poolPath is set (has been assigned a value) and false otherwise
    • setPoolPathIsSet

      public void setPoolPathIsSet(boolean value)
    • getAllocFraction

      public double getAllocFraction()
    • setAllocFraction

      public WMPool setAllocFraction(double allocFraction)
    • unsetAllocFraction

      public void unsetAllocFraction()
    • isSetAllocFraction

      public boolean isSetAllocFraction()
      Returns true if field allocFraction is set (has been assigned a value) and false otherwise
    • setAllocFractionIsSet

      public void setAllocFractionIsSet(boolean value)
    • getQueryParallelism

      public int getQueryParallelism()
    • setQueryParallelism

      public WMPool 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)
    • getSchedulingPolicy

      public String getSchedulingPolicy()
    • setSchedulingPolicy

      public WMPool setSchedulingPolicy(String schedulingPolicy)
    • unsetSchedulingPolicy

      public void unsetSchedulingPolicy()
    • isSetSchedulingPolicy

      public boolean isSetSchedulingPolicy()
      Returns true if field schedulingPolicy is set (has been assigned a value) and false otherwise
    • setSchedulingPolicyIsSet

      public void setSchedulingPolicyIsSet(boolean value)
    • setFieldValue

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

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

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

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

      public boolean equals(WMPool that)
    • hashCode

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

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

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