org.wso2.carbon.databridge.commons.thrift.data
Class ThriftEventBundle

java.lang.Object
  extended by org.wso2.carbon.databridge.commons.thrift.data.ThriftEventBundle
All Implemented Interfaces:
Serializable, Cloneable, Comparable<ThriftEventBundle>, org.apache.thrift.TBase<ThriftEventBundle,ThriftEventBundle._Fields>

public class ThriftEventBundle
extends Object
implements org.apache.thrift.TBase<ThriftEventBundle,ThriftEventBundle._Fields>, Serializable, Cloneable

See Also:
Serialized Form

Nested Class Summary
static class ThriftEventBundle._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
 Map<Integer,Map<String,String>> arbitraryDataMapMap
           
 List<Boolean> boolAttributeList
           
 List<Double> doubleAttributeList
           
 int eventNum
           
 List<Integer> intAttributeList
           
 List<Long> longAttributeList
           
static Map<ThriftEventBundle._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 String sessionId
           
 List<String> stringAttributeList
           
 
Constructor Summary
ThriftEventBundle()
           
ThriftEventBundle(ThriftEventBundle other)
          Performs a deep copy on other.
 
Method Summary
 void addToBoolAttributeList(boolean elem)
           
 void addToDoubleAttributeList(double elem)
           
 void addToIntAttributeList(int elem)
           
 void addToLongAttributeList(long elem)
           
 void addToStringAttributeList(String elem)
           
 void clear()
           
 int compareTo(ThriftEventBundle other)
           
 ThriftEventBundle deepCopy()
           
 boolean equals(Object that)
           
 boolean equals(ThriftEventBundle that)
           
 ThriftEventBundle._Fields fieldForId(int fieldId)
           
 Map<Integer,Map<String,String>> getArbitraryDataMapMap()
           
 int getArbitraryDataMapMapSize()
           
 List<Boolean> getBoolAttributeList()
           
 Iterator<Boolean> getBoolAttributeListIterator()
           
 int getBoolAttributeListSize()
           
 List<Double> getDoubleAttributeList()
           
 Iterator<Double> getDoubleAttributeListIterator()
           
 int getDoubleAttributeListSize()
           
 int getEventNum()
           
 Object getFieldValue(ThriftEventBundle._Fields field)
           
 List<Integer> getIntAttributeList()
           
 Iterator<Integer> getIntAttributeListIterator()
           
 int getIntAttributeListSize()
           
 List<Long> getLongAttributeList()
           
 Iterator<Long> getLongAttributeListIterator()
           
 int getLongAttributeListSize()
           
 String getSessionId()
           
 List<String> getStringAttributeList()
           
 Iterator<String> getStringAttributeListIterator()
           
 int getStringAttributeListSize()
           
 int hashCode()
           
 boolean isSet(ThriftEventBundle._Fields field)
          Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
 boolean isSetArbitraryDataMapMap()
          Returns true if field arbitraryDataMapMap is set (has been assigned a value) and false otherwise
 boolean isSetBoolAttributeList()
          Returns true if field boolAttributeList is set (has been assigned a value) and false otherwise
 boolean isSetDoubleAttributeList()
          Returns true if field doubleAttributeList is set (has been assigned a value) and false otherwise
 boolean isSetEventNum()
          Returns true if field eventNum is set (has been assigned a value) and false otherwise
 boolean isSetIntAttributeList()
          Returns true if field intAttributeList is set (has been assigned a value) and false otherwise
 boolean isSetLongAttributeList()
          Returns true if field longAttributeList is set (has been assigned a value) and false otherwise
 boolean isSetSessionId()
          Returns true if field sessionId is set (has been assigned a value) and false otherwise
 boolean isSetStringAttributeList()
          Returns true if field stringAttributeList is set (has been assigned a value) and false otherwise
 void putToArbitraryDataMapMap(int key, Map<String,String> val)
           
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 ThriftEventBundle setArbitraryDataMapMap(Map<Integer,Map<String,String>> arbitraryDataMapMap)
           
 void setArbitraryDataMapMapIsSet(boolean value)
           
 ThriftEventBundle setBoolAttributeList(List<Boolean> boolAttributeList)
           
 void setBoolAttributeListIsSet(boolean value)
           
 ThriftEventBundle setDoubleAttributeList(List<Double> doubleAttributeList)
           
 void setDoubleAttributeListIsSet(boolean value)
           
 ThriftEventBundle setEventNum(int eventNum)
           
 void setEventNumIsSet(boolean value)
           
 void setFieldValue(ThriftEventBundle._Fields field, Object value)
           
 ThriftEventBundle setIntAttributeList(List<Integer> intAttributeList)
           
 void setIntAttributeListIsSet(boolean value)
           
 ThriftEventBundle setLongAttributeList(List<Long> longAttributeList)
           
 void setLongAttributeListIsSet(boolean value)
           
 ThriftEventBundle setSessionId(String sessionId)
           
 void setSessionIdIsSet(boolean value)
           
 ThriftEventBundle setStringAttributeList(List<String> stringAttributeList)
           
 void setStringAttributeListIsSet(boolean value)
           
 String toString()
           
 void unsetArbitraryDataMapMap()
           
 void unsetBoolAttributeList()
           
 void unsetDoubleAttributeList()
           
 void unsetEventNum()
           
 void unsetIntAttributeList()
           
 void unsetLongAttributeList()
           
 void unsetSessionId()
           
 void unsetStringAttributeList()
           
 void validate()
           
 void write(org.apache.thrift.protocol.TProtocol oprot)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

sessionId

public String sessionId

eventNum

public int eventNum

intAttributeList

public List<Integer> intAttributeList

longAttributeList

public List<Long> longAttributeList

doubleAttributeList

public List<Double> doubleAttributeList

boolAttributeList

public List<Boolean> boolAttributeList

stringAttributeList

public List<String> stringAttributeList

arbitraryDataMapMap

public Map<Integer,Map<String,String>> arbitraryDataMapMap

metaDataMap

public static final Map<ThriftEventBundle._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
Constructor Detail

ThriftEventBundle

public ThriftEventBundle()

ThriftEventBundle

public ThriftEventBundle(ThriftEventBundle other)
Performs a deep copy on other.

Method Detail

deepCopy

public ThriftEventBundle deepCopy()
Specified by:
deepCopy in interface org.apache.thrift.TBase<ThriftEventBundle,ThriftEventBundle._Fields>

clear

public void clear()
Specified by:
clear in interface org.apache.thrift.TBase<ThriftEventBundle,ThriftEventBundle._Fields>

getSessionId

public String getSessionId()

setSessionId

public ThriftEventBundle setSessionId(String sessionId)

unsetSessionId

public void unsetSessionId()

isSetSessionId

public boolean isSetSessionId()
Returns true if field sessionId is set (has been assigned a value) and false otherwise


setSessionIdIsSet

public void setSessionIdIsSet(boolean value)

getEventNum

public int getEventNum()

setEventNum

public ThriftEventBundle setEventNum(int eventNum)

unsetEventNum

public void unsetEventNum()

isSetEventNum

public boolean isSetEventNum()
Returns true if field eventNum is set (has been assigned a value) and false otherwise


setEventNumIsSet

public void setEventNumIsSet(boolean value)

getIntAttributeListSize

public int getIntAttributeListSize()

getIntAttributeListIterator

public Iterator<Integer> getIntAttributeListIterator()

addToIntAttributeList

public void addToIntAttributeList(int elem)

getIntAttributeList

public List<Integer> getIntAttributeList()

setIntAttributeList

public ThriftEventBundle setIntAttributeList(List<Integer> intAttributeList)

unsetIntAttributeList

public void unsetIntAttributeList()

isSetIntAttributeList

public boolean isSetIntAttributeList()
Returns true if field intAttributeList is set (has been assigned a value) and false otherwise


setIntAttributeListIsSet

public void setIntAttributeListIsSet(boolean value)

getLongAttributeListSize

public int getLongAttributeListSize()

getLongAttributeListIterator

public Iterator<Long> getLongAttributeListIterator()

addToLongAttributeList

public void addToLongAttributeList(long elem)

getLongAttributeList

public List<Long> getLongAttributeList()

setLongAttributeList

public ThriftEventBundle setLongAttributeList(List<Long> longAttributeList)

unsetLongAttributeList

public void unsetLongAttributeList()

isSetLongAttributeList

public boolean isSetLongAttributeList()
Returns true if field longAttributeList is set (has been assigned a value) and false otherwise


setLongAttributeListIsSet

public void setLongAttributeListIsSet(boolean value)

getDoubleAttributeListSize

public int getDoubleAttributeListSize()

getDoubleAttributeListIterator

public Iterator<Double> getDoubleAttributeListIterator()

addToDoubleAttributeList

public void addToDoubleAttributeList(double elem)

getDoubleAttributeList

public List<Double> getDoubleAttributeList()

setDoubleAttributeList

public ThriftEventBundle setDoubleAttributeList(List<Double> doubleAttributeList)

unsetDoubleAttributeList

public void unsetDoubleAttributeList()

isSetDoubleAttributeList

public boolean isSetDoubleAttributeList()
Returns true if field doubleAttributeList is set (has been assigned a value) and false otherwise


setDoubleAttributeListIsSet

public void setDoubleAttributeListIsSet(boolean value)

getBoolAttributeListSize

public int getBoolAttributeListSize()

getBoolAttributeListIterator

public Iterator<Boolean> getBoolAttributeListIterator()

addToBoolAttributeList

public void addToBoolAttributeList(boolean elem)

getBoolAttributeList

public List<Boolean> getBoolAttributeList()

setBoolAttributeList

public ThriftEventBundle setBoolAttributeList(List<Boolean> boolAttributeList)

unsetBoolAttributeList

public void unsetBoolAttributeList()

isSetBoolAttributeList

public boolean isSetBoolAttributeList()
Returns true if field boolAttributeList is set (has been assigned a value) and false otherwise


setBoolAttributeListIsSet

public void setBoolAttributeListIsSet(boolean value)

getStringAttributeListSize

public int getStringAttributeListSize()

getStringAttributeListIterator

public Iterator<String> getStringAttributeListIterator()

addToStringAttributeList

public void addToStringAttributeList(String elem)

getStringAttributeList

public List<String> getStringAttributeList()

setStringAttributeList

public ThriftEventBundle setStringAttributeList(List<String> stringAttributeList)

unsetStringAttributeList

public void unsetStringAttributeList()

isSetStringAttributeList

public boolean isSetStringAttributeList()
Returns true if field stringAttributeList is set (has been assigned a value) and false otherwise


setStringAttributeListIsSet

public void setStringAttributeListIsSet(boolean value)

getArbitraryDataMapMapSize

public int getArbitraryDataMapMapSize()

putToArbitraryDataMapMap

public void putToArbitraryDataMapMap(int key,
                                     Map<String,String> val)

getArbitraryDataMapMap

public Map<Integer,Map<String,String>> getArbitraryDataMapMap()

setArbitraryDataMapMap

public ThriftEventBundle setArbitraryDataMapMap(Map<Integer,Map<String,String>> arbitraryDataMapMap)

unsetArbitraryDataMapMap

public void unsetArbitraryDataMapMap()

isSetArbitraryDataMapMap

public boolean isSetArbitraryDataMapMap()
Returns true if field arbitraryDataMapMap is set (has been assigned a value) and false otherwise


setArbitraryDataMapMapIsSet

public void setArbitraryDataMapMapIsSet(boolean value)

setFieldValue

public void setFieldValue(ThriftEventBundle._Fields field,
                          Object value)
Specified by:
setFieldValue in interface org.apache.thrift.TBase<ThriftEventBundle,ThriftEventBundle._Fields>

getFieldValue

public Object getFieldValue(ThriftEventBundle._Fields field)
Specified by:
getFieldValue in interface org.apache.thrift.TBase<ThriftEventBundle,ThriftEventBundle._Fields>

isSet

public boolean isSet(ThriftEventBundle._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise

Specified by:
isSet in interface org.apache.thrift.TBase<ThriftEventBundle,ThriftEventBundle._Fields>

equals

public boolean equals(Object that)
Overrides:
equals in class Object

equals

public boolean equals(ThriftEventBundle that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

public int compareTo(ThriftEventBundle other)
Specified by:
compareTo in interface Comparable<ThriftEventBundle>

fieldForId

public ThriftEventBundle._Fields fieldForId(int fieldId)
Specified by:
fieldForId in interface org.apache.thrift.TBase<ThriftEventBundle,ThriftEventBundle._Fields>

read

public void read(org.apache.thrift.protocol.TProtocol iprot)
          throws org.apache.thrift.TException
Specified by:
read in interface org.apache.thrift.TBase<ThriftEventBundle,ThriftEventBundle._Fields>
Throws:
org.apache.thrift.TException

write

public void write(org.apache.thrift.protocol.TProtocol oprot)
           throws org.apache.thrift.TException
Specified by:
write in interface org.apache.thrift.TBase<ThriftEventBundle,ThriftEventBundle._Fields>
Throws:
org.apache.thrift.TException

toString

public String toString()
Overrides:
toString in class Object

validate

public void validate()
              throws org.apache.thrift.TException
Throws:
org.apache.thrift.TException


Copyright © 2015 WSO2. All rights reserved.