Package org.apache.storm.generated
Class ThriftSerializedObject
java.lang.Object
org.apache.storm.generated.ThriftSerializedObject
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<ThriftSerializedObject>
,org.apache.storm.thrift.TBase<ThriftSerializedObject,
,ThriftSerializedObject._Fields> org.apache.storm.thrift.TSerializable
@Generated("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>
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The set of fields this struct contains, along with convenience methods for finding and manipulating them. -
Field Summary
Modifier and TypeFieldDescriptionstatic final Map<ThriftSerializedObject._Fields,
org.apache.storm.thrift.meta_data.FieldMetaData> -
Constructor Summary
ConstructorDescriptionThriftSerializedObject
(String name, ByteBuffer bits) Performs a deep copy on other. -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
int
compareTo
(ThriftSerializedObject other) deepCopy()
boolean
boolean
equals
(ThriftSerializedObject that) fieldForId
(int fieldId) byte[]
get_bits()
get_name()
int
hashCode()
boolean
Returns true if field bits is set (has been assigned a value) and false otherwiseboolean
Returns true if field name is set (has been assigned a value) and false otherwiseboolean
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisevoid
read
(org.apache.storm.thrift.protocol.TProtocol iprot) void
set_bits
(byte[] bits) void
set_bits
(ByteBuffer bits) void
set_bits_isSet
(boolean value) void
void
set_name_isSet
(boolean value) void
setFieldValue
(ThriftSerializedObject._Fields field, Object value) toString()
void
void
void
validate()
void
write
(org.apache.storm.thrift.protocol.TProtocol oprot)
-
Field Details
-
metaDataMap
public static final Map<ThriftSerializedObject._Fields,org.apache.storm.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Details
-
ThriftSerializedObject
public ThriftSerializedObject() -
ThriftSerializedObject
-
ThriftSerializedObject
Performs a deep copy on other.
-
-
Method Details
-
deepCopy
- Specified by:
deepCopy
in interfaceorg.apache.storm.thrift.TBase<ThriftSerializedObject,
ThriftSerializedObject._Fields>
-
clear
public void clear()- Specified by:
clear
in interfaceorg.apache.storm.thrift.TBase<ThriftSerializedObject,
ThriftSerializedObject._Fields>
-
get_name
-
set_name
-
unset_name
public void unset_name() -
is_set_name
public boolean is_set_name()Returns true if field name is set (has been assigned a value) and false otherwise -
set_name_isSet
public void set_name_isSet(boolean value) -
get_bits
public byte[] get_bits() -
buffer_for_bits
-
set_bits
public void set_bits(byte[] bits) -
set_bits
-
unset_bits
public void unset_bits() -
is_set_bits
public boolean is_set_bits()Returns true if field bits is set (has been assigned a value) and false otherwise -
set_bits_isSet
public void set_bits_isSet(boolean value) -
setFieldValue
- Specified by:
setFieldValue
in interfaceorg.apache.storm.thrift.TBase<ThriftSerializedObject,
ThriftSerializedObject._Fields>
-
getFieldValue
- Specified by:
getFieldValue
in interfaceorg.apache.storm.thrift.TBase<ThriftSerializedObject,
ThriftSerializedObject._Fields>
-
isSet
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise- Specified by:
isSet
in interfaceorg.apache.storm.thrift.TBase<ThriftSerializedObject,
ThriftSerializedObject._Fields>
-
equals
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareTo
in interfaceComparable<ThriftSerializedObject>
-
fieldForId
- Specified by:
fieldForId
in interfaceorg.apache.storm.thrift.TBase<ThriftSerializedObject,
ThriftSerializedObject._Fields>
-
read
public void read(org.apache.storm.thrift.protocol.TProtocol iprot) throws org.apache.storm.thrift.TException - Specified by:
read
in interfaceorg.apache.storm.thrift.TSerializable
- Throws:
org.apache.storm.thrift.TException
-
write
public void write(org.apache.storm.thrift.protocol.TProtocol oprot) throws org.apache.storm.thrift.TException - Specified by:
write
in interfaceorg.apache.storm.thrift.TSerializable
- Throws:
org.apache.storm.thrift.TException
-
toString
-
validate
public void validate() throws org.apache.storm.thrift.TException- Throws:
org.apache.storm.thrift.TException
-