Class TThrottleQuota

java.lang.Object
org.apache.iotdb.common.rpc.thrift.TThrottleQuota
All Implemented Interfaces:
Serializable, Cloneable, Comparable<TThrottleQuota>, org.apache.thrift.TBase<TThrottleQuota,TThrottleQuota._Fields>, org.apache.thrift.TSerializable

@Generated(value="Autogenerated by Thrift Compiler (0.14.1)", date="2025-09-08") public class TThrottleQuota extends Object implements org.apache.thrift.TBase<TThrottleQuota,TThrottleQuota._Fields>, Serializable, Cloneable, Comparable<TThrottleQuota>
See Also:
  • Field Details

  • Constructor Details

    • TThrottleQuota

      public TThrottleQuota()
    • TThrottleQuota

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

    • deepCopy

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

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

      public int getThrottleLimitSize()
    • putToThrottleLimit

      public void putToThrottleLimit(ThrottleType key, TTimedQuota val)
    • getThrottleLimit

      public Map<ThrottleType,TTimedQuota> getThrottleLimit()
    • setThrottleLimit

      public TThrottleQuota setThrottleLimit(Map<ThrottleType,TTimedQuota> throttleLimit)
    • unsetThrottleLimit

      public void unsetThrottleLimit()
    • isSetThrottleLimit

      public boolean isSetThrottleLimit()
      Returns true if field throttleLimit is set (has been assigned a value) and false otherwise
    • setThrottleLimitIsSet

      public void setThrottleLimitIsSet(boolean value)
    • getMemLimit

      public long getMemLimit()
    • setMemLimit

      public TThrottleQuota setMemLimit(long memLimit)
    • unsetMemLimit

      public void unsetMemLimit()
    • isSetMemLimit

      public boolean isSetMemLimit()
      Returns true if field memLimit is set (has been assigned a value) and false otherwise
    • setMemLimitIsSet

      public void setMemLimitIsSet(boolean value)
    • getCpuLimit

      public int getCpuLimit()
    • setCpuLimit

      public TThrottleQuota setCpuLimit(int cpuLimit)
    • unsetCpuLimit

      public void unsetCpuLimit()
    • isSetCpuLimit

      public boolean isSetCpuLimit()
      Returns true if field cpuLimit is set (has been assigned a value) and false otherwise
    • setCpuLimitIsSet

      public void setCpuLimitIsSet(boolean value)
    • setFieldValue

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

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

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

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

      public boolean equals(TThrottleQuota that)
    • hashCode

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

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

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