@Generated(value="Autogenerated by Thrift Compiler (0.13.0)") public class ThriftSerializedObject extends Object implements org.apache.storm.thrift.TBase<ThriftSerializedObject,ThriftSerializedObject._Fields>, Serializable, Cloneable, Comparable<ThriftSerializedObject>
Modifier and Type | Class and Description |
---|---|
static class |
ThriftSerializedObject._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<ThriftSerializedObject._Fields,org.apache.storm.thrift.meta_data.FieldMetaData> |
metaDataMap |
Constructor and Description |
---|
ThriftSerializedObject() |
ThriftSerializedObject(String name,
ByteBuffer bits) |
ThriftSerializedObject(ThriftSerializedObject other)
Performs a deep copy on other.
|
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
buffer_for_bits() |
void |
clear() |
int |
compareTo(ThriftSerializedObject other) |
ThriftSerializedObject |
deepCopy() |
boolean |
equals(Object that) |
boolean |
equals(ThriftSerializedObject that) |
ThriftSerializedObject._Fields |
fieldForId(int fieldId) |
byte[] |
get_bits() |
String |
get_name() |
Object |
getFieldValue(ThriftSerializedObject._Fields field) |
int |
hashCode() |
boolean |
is_set_bits()
Returns true if field bits is set (has been assigned a value) and false otherwise
|
boolean |
is_set_name()
Returns true if field name is set (has been assigned a value) and false otherwise
|
boolean |
isSet(ThriftSerializedObject._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
void |
read(org.apache.storm.thrift.protocol.TProtocol iprot) |
void |
set_bits_isSet(boolean value) |
void |
set_bits(byte[] bits) |
void |
set_bits(ByteBuffer bits) |
void |
set_name_isSet(boolean value) |
void |
set_name(String name) |
void |
setFieldValue(ThriftSerializedObject._Fields field,
Object value) |
String |
toString() |
void |
unset_bits() |
void |
unset_name() |
void |
validate() |
void |
write(org.apache.storm.thrift.protocol.TProtocol oprot) |
public static final Map<ThriftSerializedObject._Fields,org.apache.storm.thrift.meta_data.FieldMetaData> metaDataMap
public ThriftSerializedObject()
public ThriftSerializedObject(String name, ByteBuffer bits)
public ThriftSerializedObject(ThriftSerializedObject other)
Performs a deep copy on other.
public ThriftSerializedObject deepCopy()
deepCopy
in interface org.apache.storm.thrift.TBase<ThriftSerializedObject,ThriftSerializedObject._Fields>
public void clear()
clear
in interface org.apache.storm.thrift.TBase<ThriftSerializedObject,ThriftSerializedObject._Fields>
public String get_name()
public void set_name(String name)
public void unset_name()
public boolean is_set_name()
Returns true if field name is set (has been assigned a value) and false otherwise
public void set_name_isSet(boolean value)
public byte[] get_bits()
public ByteBuffer buffer_for_bits()
public void set_bits(byte[] bits)
public void set_bits(ByteBuffer bits)
public void unset_bits()
public boolean is_set_bits()
Returns true if field bits is set (has been assigned a value) and false otherwise
public void set_bits_isSet(boolean value)
public void setFieldValue(ThriftSerializedObject._Fields field, Object value)
setFieldValue
in interface org.apache.storm.thrift.TBase<ThriftSerializedObject,ThriftSerializedObject._Fields>
public Object getFieldValue(ThriftSerializedObject._Fields field)
getFieldValue
in interface org.apache.storm.thrift.TBase<ThriftSerializedObject,ThriftSerializedObject._Fields>
public boolean isSet(ThriftSerializedObject._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
isSet
in interface org.apache.storm.thrift.TBase<ThriftSerializedObject,ThriftSerializedObject._Fields>
public boolean equals(ThriftSerializedObject that)
public int compareTo(ThriftSerializedObject other)
compareTo
in interface Comparable<ThriftSerializedObject>
public ThriftSerializedObject._Fields fieldForId(int fieldId)
fieldForId
in interface org.apache.storm.thrift.TBase<ThriftSerializedObject,ThriftSerializedObject._Fields>
public void read(org.apache.storm.thrift.protocol.TProtocol iprot) throws org.apache.storm.thrift.TException
read
in interface org.apache.storm.thrift.TSerializable
org.apache.storm.thrift.TException
public void write(org.apache.storm.thrift.protocol.TProtocol oprot) throws org.apache.storm.thrift.TException
write
in interface org.apache.storm.thrift.TSerializable
org.apache.storm.thrift.TException
public void validate() throws org.apache.storm.thrift.TException
org.apache.storm.thrift.TException
Copyright © 2022 The Apache Software Foundation. All rights reserved.