public class BinaryAnnotation extends Object implements org.apache.thrift.TBase<BinaryAnnotation,BinaryAnnotation._Fields>, Serializable, Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
BinaryAnnotation._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
|
Modifier and Type | Field and Description |
---|---|
AnnotationType |
annotation_type |
Endpoint |
host |
String |
key |
static Map<BinaryAnnotation._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
ByteBuffer |
value |
Constructor and Description |
---|
BinaryAnnotation() |
BinaryAnnotation(BinaryAnnotation other)
Performs a deep copy on other.
|
BinaryAnnotation(String key,
ByteBuffer value,
AnnotationType annotation_type) |
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
bufferForValue() |
void |
clear() |
int |
compareTo(BinaryAnnotation other) |
BinaryAnnotation |
deepCopy() |
boolean |
equals(BinaryAnnotation that) |
boolean |
equals(Object that) |
BinaryAnnotation._Fields |
fieldForId(int fieldId) |
AnnotationType |
getAnnotation_type() |
Object |
getFieldValue(BinaryAnnotation._Fields field) |
Endpoint |
getHost() |
String |
getKey() |
byte[] |
getValue() |
int |
hashCode() |
boolean |
isSet(BinaryAnnotation._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
boolean |
isSetAnnotation_type()
Returns true if field annotation_type is set (has been assigned a value) and false otherwise
|
boolean |
isSetHost()
Returns true if field host 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) |
BinaryAnnotation |
setAnnotation_type(AnnotationType annotation_type) |
void |
setAnnotation_typeIsSet(boolean value) |
void |
setFieldValue(BinaryAnnotation._Fields field,
Object value) |
BinaryAnnotation |
setHost(Endpoint host) |
void |
setHostIsSet(boolean value) |
BinaryAnnotation |
setKey(String key) |
void |
setKeyIsSet(boolean value) |
BinaryAnnotation |
setValue(byte[] value) |
BinaryAnnotation |
setValue(ByteBuffer value) |
void |
setValueIsSet(boolean value) |
String |
toString() |
void |
unsetAnnotation_type() |
void |
unsetHost() |
void |
unsetKey() |
void |
unsetValue() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public String key
public ByteBuffer value
public AnnotationType annotation_type
AnnotationType
public Endpoint host
public static final Map<BinaryAnnotation._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public BinaryAnnotation()
public BinaryAnnotation(String key, ByteBuffer value, AnnotationType annotation_type)
public BinaryAnnotation(BinaryAnnotation other)
public BinaryAnnotation deepCopy()
deepCopy
in interface org.apache.thrift.TBase<BinaryAnnotation,BinaryAnnotation._Fields>
public void clear()
clear
in interface org.apache.thrift.TBase<BinaryAnnotation,BinaryAnnotation._Fields>
public String getKey()
public BinaryAnnotation setKey(String key)
public void unsetKey()
public boolean isSetKey()
public void setKeyIsSet(boolean value)
public byte[] getValue()
public ByteBuffer bufferForValue()
public BinaryAnnotation setValue(byte[] value)
public BinaryAnnotation setValue(ByteBuffer value)
public void unsetValue()
public boolean isSetValue()
public void setValueIsSet(boolean value)
public AnnotationType getAnnotation_type()
AnnotationType
public BinaryAnnotation setAnnotation_type(AnnotationType annotation_type)
AnnotationType
public void unsetAnnotation_type()
public boolean isSetAnnotation_type()
public void setAnnotation_typeIsSet(boolean value)
public Endpoint getHost()
public BinaryAnnotation setHost(Endpoint host)
public void unsetHost()
public boolean isSetHost()
public void setHostIsSet(boolean value)
public void setFieldValue(BinaryAnnotation._Fields field, Object value)
setFieldValue
in interface org.apache.thrift.TBase<BinaryAnnotation,BinaryAnnotation._Fields>
public Object getFieldValue(BinaryAnnotation._Fields field)
getFieldValue
in interface org.apache.thrift.TBase<BinaryAnnotation,BinaryAnnotation._Fields>
public boolean isSet(BinaryAnnotation._Fields field)
isSet
in interface org.apache.thrift.TBase<BinaryAnnotation,BinaryAnnotation._Fields>
public boolean equals(BinaryAnnotation that)
public int compareTo(BinaryAnnotation other)
compareTo
in interface Comparable<BinaryAnnotation>
public BinaryAnnotation._Fields fieldForId(int fieldId)
fieldForId
in interface org.apache.thrift.TBase<BinaryAnnotation,BinaryAnnotation._Fields>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
in interface org.apache.thrift.TBase<BinaryAnnotation,BinaryAnnotation._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<BinaryAnnotation,BinaryAnnotation._Fields>
org.apache.thrift.TException
public void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
Copyright © 2014. All rights reserved.