public class KeyValue extends Object implements com.facebook.thrift.TBase, Serializable, Cloneable, Comparable<KeyValue>
| Modifier and Type | Class and Description |
|---|---|
static class |
KeyValue.Builder |
| Modifier and Type | Field and Description |
|---|---|
byte[] |
key |
static int |
KEY |
static Map<Integer,com.facebook.thrift.meta_data.FieldMetaData> |
metaDataMap |
byte[] |
value |
static int |
VALUE |
| Constructor and Description |
|---|
KeyValue() |
KeyValue(byte[] key,
byte[] value) |
KeyValue(KeyValue other)
Performs a deep copy on other.
|
| Modifier and Type | Method and Description |
|---|---|
static KeyValue.Builder |
builder() |
int |
compareTo(KeyValue other) |
KeyValue |
deepCopy()
Returns a copy of `this`.
|
boolean |
equals(Object _that) |
Object |
getFieldValue(int fieldID) |
byte[] |
getKey() |
byte[] |
getValue() |
int |
hashCode() |
boolean |
isSetKey() |
boolean |
isSetValue() |
void |
read(com.facebook.thrift.protocol.TProtocol iprot)
Reads the TObject from the given input protocol.
|
void |
setFieldValue(int fieldID,
Object __value) |
KeyValue |
setKey(byte[] key) |
void |
setKeyIsSet(boolean __value) |
KeyValue |
setValue(byte[] value) |
void |
setValueIsSet(boolean __value) |
String |
toString() |
String |
toString(int indent,
boolean prettyPrint)
Creates an indented String representation for pretty printing
|
void |
unsetKey() |
void |
unsetValue() |
void |
validate() |
void |
write(com.facebook.thrift.protocol.TProtocol oprot)
Writes the objects out to the protocol
|
public byte[] key
public byte[] value
public static final int KEY
public static final int VALUE
public KeyValue()
public KeyValue(byte[] key,
byte[] value)
public KeyValue(KeyValue other)
public static KeyValue.Builder builder()
public KeyValue deepCopy()
com.facebook.thrift.TBasex.getClass() == x.deepCopy().getClass() should be true for any
TBase.deepCopy in interface com.facebook.thrift.TBasepublic byte[] getKey()
public KeyValue setKey(byte[] key)
public void unsetKey()
public boolean isSetKey()
public void setKeyIsSet(boolean __value)
public byte[] getValue()
public KeyValue setValue(byte[] value)
public void unsetValue()
public boolean isSetValue()
public void setValueIsSet(boolean __value)
public void setFieldValue(int fieldID,
Object __value)
public Object getFieldValue(int fieldID)
public int compareTo(KeyValue other)
compareTo in interface Comparable<KeyValue>public void read(com.facebook.thrift.protocol.TProtocol iprot)
throws com.facebook.thrift.TException
com.facebook.thrift.TBaseread in interface com.facebook.thrift.TBaseiprot - Input protocolcom.facebook.thrift.TExceptionpublic void write(com.facebook.thrift.protocol.TProtocol oprot)
throws com.facebook.thrift.TException
com.facebook.thrift.TBasewrite in interface com.facebook.thrift.TBaseoprot - Output protocolcom.facebook.thrift.TExceptionpublic String toString(int indent, boolean prettyPrint)
com.facebook.thrift.TBasetoString in interface com.facebook.thrift.TBaseindent - The level of indentation desiredprettyPrint - Set pretty printing on/offpublic void validate()
throws com.facebook.thrift.TException
com.facebook.thrift.TExceptionCopyright © 2022. All rights reserved.