@Generated(value="Autogenerated by Thrift Compiler (0.14.0)", date="2024-11-16") public class KeyValue extends Object implements org.apache.thrift.TBase<KeyValue,KeyValue._Fields>, Serializable, Cloneable, Comparable<KeyValue>
Modifier and Type | Class and Description |
---|---|
static class |
KeyValue._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
|
Modifier and Type | Field and Description |
---|---|
String |
key |
static Map<KeyValue._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
String |
value |
Constructor and Description |
---|
KeyValue() |
KeyValue(KeyValue other)
Performs a deep copy on other.
|
KeyValue(String key) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
int |
compareTo(KeyValue other) |
KeyValue |
deepCopy() |
boolean |
equals(KeyValue that) |
boolean |
equals(Object that) |
KeyValue._Fields |
fieldForId(int fieldId) |
Object |
getFieldValue(KeyValue._Fields field) |
String |
getKey() |
String |
getValue() |
int |
hashCode() |
boolean |
isSet(KeyValue._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
boolean |
isSetKey()
Returns true if field key is set (has been assigned a value) and false otherwise
|
boolean |
isSetValue()
Returns true if field value is set (has been assigned a value) and false otherwise
|
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
void |
setFieldValue(KeyValue._Fields field,
Object value) |
KeyValue |
setKey(String key) |
void |
setKeyIsSet(boolean value) |
KeyValue |
setValue(String value) |
void |
setValueIsSet(boolean value) |
String |
toString() |
void |
unsetKey() |
void |
unsetValue() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public String key
public String value
public static final Map<KeyValue._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public KeyValue()
public KeyValue(String key)
public KeyValue(KeyValue other)
public KeyValue deepCopy()
deepCopy
in interface org.apache.thrift.TBase<KeyValue,KeyValue._Fields>
public void clear()
clear
in interface org.apache.thrift.TBase<KeyValue,KeyValue._Fields>
public String getKey()
public void unsetKey()
public boolean isSetKey()
public void setKeyIsSet(boolean value)
public String getValue()
public void unsetValue()
public boolean isSetValue()
public void setValueIsSet(boolean value)
public void setFieldValue(KeyValue._Fields field, Object value)
setFieldValue
in interface org.apache.thrift.TBase<KeyValue,KeyValue._Fields>
public Object getFieldValue(KeyValue._Fields field)
getFieldValue
in interface org.apache.thrift.TBase<KeyValue,KeyValue._Fields>
public boolean isSet(KeyValue._Fields field)
isSet
in interface org.apache.thrift.TBase<KeyValue,KeyValue._Fields>
public boolean equals(KeyValue that)
public int compareTo(KeyValue other)
compareTo
in interface Comparable<KeyValue>
public KeyValue._Fields fieldForId(int fieldId)
fieldForId
in interface org.apache.thrift.TBase<KeyValue,KeyValue._Fields>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
in interface org.apache.thrift.TSerializable
org.apache.thrift.TException
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
write
in interface org.apache.thrift.TSerializable
org.apache.thrift.TException
public void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
Copyright © 2024 The Apache Software Foundation. All rights reserved.