public class OpenTxnRequest extends Object implements org.apache.thrift.TBase<OpenTxnRequest,OpenTxnRequest._Fields>, Serializable, Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
OpenTxnRequest._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<OpenTxnRequest._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
Constructor and Description |
---|
OpenTxnRequest() |
OpenTxnRequest(int num_txns,
String user,
String hostname) |
OpenTxnRequest(OpenTxnRequest other)
Performs a deep copy on other.
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
int |
compareTo(OpenTxnRequest other) |
OpenTxnRequest |
deepCopy() |
boolean |
equals(Object that) |
boolean |
equals(OpenTxnRequest that) |
OpenTxnRequest._Fields |
fieldForId(int fieldId) |
Object |
getFieldValue(OpenTxnRequest._Fields field) |
String |
getHostname() |
int |
getNum_txns() |
String |
getUser() |
int |
hashCode() |
boolean |
isSet(OpenTxnRequest._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 |
isSetNum_txns()
Returns true if field num_txns 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(OpenTxnRequest._Fields field,
Object value) |
void |
setHostname(String hostname) |
void |
setHostnameIsSet(boolean value) |
void |
setNum_txns(int num_txns) |
void |
setNum_txnsIsSet(boolean value) |
void |
setUser(String user) |
void |
setUserIsSet(boolean value) |
String |
toString() |
void |
unsetHostname() |
void |
unsetNum_txns() |
void |
unsetUser() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public static final Map<OpenTxnRequest._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public OpenTxnRequest()
public OpenTxnRequest(OpenTxnRequest other)
public OpenTxnRequest deepCopy()
deepCopy
in interface org.apache.thrift.TBase<OpenTxnRequest,OpenTxnRequest._Fields>
public void clear()
clear
in interface org.apache.thrift.TBase<OpenTxnRequest,OpenTxnRequest._Fields>
public int getNum_txns()
public void setNum_txns(int num_txns)
public void unsetNum_txns()
public boolean isSetNum_txns()
public void setNum_txnsIsSet(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(OpenTxnRequest._Fields field, Object value)
setFieldValue
in interface org.apache.thrift.TBase<OpenTxnRequest,OpenTxnRequest._Fields>
public Object getFieldValue(OpenTxnRequest._Fields field)
getFieldValue
in interface org.apache.thrift.TBase<OpenTxnRequest,OpenTxnRequest._Fields>
public boolean isSet(OpenTxnRequest._Fields field)
isSet
in interface org.apache.thrift.TBase<OpenTxnRequest,OpenTxnRequest._Fields>
public boolean equals(OpenTxnRequest that)
public int compareTo(OpenTxnRequest other)
compareTo
in interface Comparable<OpenTxnRequest>
public OpenTxnRequest._Fields fieldForId(int fieldId)
fieldForId
in interface org.apache.thrift.TBase<OpenTxnRequest,OpenTxnRequest._Fields>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
in interface org.apache.thrift.TBase<OpenTxnRequest,OpenTxnRequest._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<OpenTxnRequest,OpenTxnRequest._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.