public class TxnInfo extends Object implements org.apache.thrift.TBase<TxnInfo,TxnInfo._Fields>, Serializable, Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
TxnInfo._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
|
Modifier and Type | Field and Description |
---|---|
static Map<TxnInfo._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
Constructor and Description |
---|
TxnInfo() |
TxnInfo(long id,
TxnState state,
String user,
String hostname) |
TxnInfo(TxnInfo other)
Performs a deep copy on other.
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
int |
compareTo(TxnInfo other) |
TxnInfo |
deepCopy() |
boolean |
equals(Object that) |
boolean |
equals(TxnInfo that) |
TxnInfo._Fields |
fieldForId(int fieldId) |
Object |
getFieldValue(TxnInfo._Fields field) |
String |
getHostname() |
long |
getId() |
TxnState |
getState() |
String |
getUser() |
int |
hashCode() |
boolean |
isSet(TxnInfo._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
boolean |
isSetHostname()
Returns true if field hostname is set (has been assigned a value) and false otherwise
|
boolean |
isSetId()
Returns true if field id is set (has been assigned a value) and false otherwise
|
boolean |
isSetState()
Returns true if field state is set (has been assigned a value) and false otherwise
|
boolean |
isSetUser()
Returns true if field user is set (has been assigned a value) and false otherwise
|
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
void |
setFieldValue(TxnInfo._Fields field,
Object value) |
void |
setHostname(String hostname) |
void |
setHostnameIsSet(boolean value) |
void |
setId(long id) |
void |
setIdIsSet(boolean value) |
void |
setState(TxnState state) |
void |
setStateIsSet(boolean value) |
void |
setUser(String user) |
void |
setUserIsSet(boolean value) |
String |
toString() |
void |
unsetHostname() |
void |
unsetId() |
void |
unsetState() |
void |
unsetUser() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public static final Map<TxnInfo._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public TxnInfo()
public TxnInfo(TxnInfo other)
public TxnInfo deepCopy()
deepCopy
in interface org.apache.thrift.TBase<TxnInfo,TxnInfo._Fields>
public void clear()
clear
in interface org.apache.thrift.TBase<TxnInfo,TxnInfo._Fields>
public long getId()
public void setId(long id)
public void unsetId()
public boolean isSetId()
public void setIdIsSet(boolean value)
public void unsetState()
public boolean isSetState()
public void setStateIsSet(boolean value)
public String getUser()
public void setUser(String user)
public void unsetUser()
public boolean isSetUser()
public void setUserIsSet(boolean value)
public String getHostname()
public void setHostname(String hostname)
public void unsetHostname()
public boolean isSetHostname()
public void setHostnameIsSet(boolean value)
public void setFieldValue(TxnInfo._Fields field, Object value)
setFieldValue
in interface org.apache.thrift.TBase<TxnInfo,TxnInfo._Fields>
public Object getFieldValue(TxnInfo._Fields field)
getFieldValue
in interface org.apache.thrift.TBase<TxnInfo,TxnInfo._Fields>
public boolean isSet(TxnInfo._Fields field)
isSet
in interface org.apache.thrift.TBase<TxnInfo,TxnInfo._Fields>
public boolean equals(TxnInfo that)
public int compareTo(TxnInfo other)
compareTo
in interface Comparable<TxnInfo>
public TxnInfo._Fields fieldForId(int fieldId)
fieldForId
in interface org.apache.thrift.TBase<TxnInfo,TxnInfo._Fields>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
in interface org.apache.thrift.TBase<TxnInfo,TxnInfo._Fields>
org.apache.thrift.TException
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
write
in interface org.apache.thrift.TBase<TxnInfo,TxnInfo._Fields>
org.apache.thrift.TException
public void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
Copyright © 2017 The Apache Software Foundation. All rights reserved.