Class GetOpenTxnsResponse

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

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

  • Constructor Details

    • GetOpenTxnsResponse

      public GetOpenTxnsResponse()
    • GetOpenTxnsResponse

      public GetOpenTxnsResponse(long txn_high_water_mark, List<Long> open_txns, ByteBuffer abortedBits)
    • GetOpenTxnsResponse

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

    • deepCopy

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

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

      public long getTxnHighWaterMark()
    • setTxnHighWaterMark

      public GetOpenTxnsResponse setTxnHighWaterMark(long txn_high_water_mark)
    • unsetTxnHighWaterMark

      public void unsetTxnHighWaterMark()
    • isSetTxnHighWaterMark

      public boolean isSetTxnHighWaterMark()
      Returns true if field txn_high_water_mark is set (has been assigned a value) and false otherwise
    • setTxnHighWaterMarkIsSet

      public void setTxnHighWaterMarkIsSet(boolean value)
    • getOpenTxnsSize

      public int getOpenTxnsSize()
    • getOpenTxnsIterator

      public Iterator<Long> getOpenTxnsIterator()
    • addToOpenTxns

      public void addToOpenTxns(long elem)
    • getOpenTxns

      public List<Long> getOpenTxns()
    • setOpenTxns

      public GetOpenTxnsResponse setOpenTxns(List<Long> open_txns)
    • unsetOpenTxns

      public void unsetOpenTxns()
    • isSetOpenTxns

      public boolean isSetOpenTxns()
      Returns true if field open_txns is set (has been assigned a value) and false otherwise
    • setOpenTxnsIsSet

      public void setOpenTxnsIsSet(boolean value)
    • getMinOpenTxn

      public long getMinOpenTxn()
    • setMinOpenTxn

      public GetOpenTxnsResponse setMinOpenTxn(long min_open_txn)
    • unsetMinOpenTxn

      public void unsetMinOpenTxn()
    • isSetMinOpenTxn

      public boolean isSetMinOpenTxn()
      Returns true if field min_open_txn is set (has been assigned a value) and false otherwise
    • setMinOpenTxnIsSet

      public void setMinOpenTxnIsSet(boolean value)
    • getAbortedBits

      public byte[] getAbortedBits()
    • bufferForAbortedBits

      public ByteBuffer bufferForAbortedBits()
    • setAbortedBits

      public GetOpenTxnsResponse setAbortedBits(byte[] abortedBits)
    • setAbortedBits

      public GetOpenTxnsResponse setAbortedBits(ByteBuffer abortedBits)
    • unsetAbortedBits

      public void unsetAbortedBits()
    • isSetAbortedBits

      public boolean isSetAbortedBits()
      Returns true if field abortedBits is set (has been assigned a value) and false otherwise
    • setAbortedBitsIsSet

      public void setAbortedBitsIsSet(boolean value)
    • setFieldValue

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

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

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

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

      public boolean equals(GetOpenTxnsResponse that)
    • hashCode

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

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

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