org.apache.blur.thirdparty.thrift_0_9_0
Class TUnion<T extends TUnion<?,?>,F extends TFieldIdEnum>

java.lang.Object
  extended by org.apache.blur.thirdparty.thrift_0_9_0.TUnion<T,F>
All Implemented Interfaces:
Serializable, Comparable<T>, TBase<T,F>
Direct Known Subclasses:
SortFieldResult

public abstract class TUnion<T extends TUnion<?,?>,F extends TFieldIdEnum>
extends Object
implements TBase<T,F>

See Also:
Serialized Form

Method Summary
 void clear()
          Return to the state of having just been initialized, as though you had just called the default constructor.
 Object getFieldValue()
           
 Object getFieldValue(F fieldId)
          Get a field's value by field variable.
 Object getFieldValue(int fieldId)
           
 F getSetField()
           
 boolean isSet()
           
 boolean isSet(F fieldId)
          Check if a field is currently set or unset.
 boolean isSet(int fieldId)
           
 void read(TProtocol iprot)
          Reads the TObject from the given input protocol.
 void setFieldValue(F fieldId, Object value)
          Set a field's value by field variable.
 void setFieldValue(int fieldId, Object value)
           
 String toString()
           
 void write(TProtocol oprot)
          Writes the objects out to the protocol
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.blur.thirdparty.thrift_0_9_0.TBase
deepCopy, fieldForId
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getSetField

public F getSetField()

getFieldValue

public Object getFieldValue()

getFieldValue

public Object getFieldValue(F fieldId)
Description copied from interface: TBase
Get a field's value by field variable. Primitive types will be wrapped in the appropriate "boxed" types.

Specified by:
getFieldValue in interface TBase<T extends TUnion<?,?>,F extends TFieldIdEnum>

getFieldValue

public Object getFieldValue(int fieldId)

isSet

public boolean isSet()

isSet

public boolean isSet(F fieldId)
Description copied from interface: TBase
Check if a field is currently set or unset.

Specified by:
isSet in interface TBase<T extends TUnion<?,?>,F extends TFieldIdEnum>

isSet

public boolean isSet(int fieldId)

read

public void read(TProtocol iprot)
          throws TException
Description copied from interface: TBase
Reads the TObject from the given input protocol.

Specified by:
read in interface TBase<T extends TUnion<?,?>,F extends TFieldIdEnum>
Parameters:
iprot - Input protocol
Throws:
TException

setFieldValue

public void setFieldValue(F fieldId,
                          Object value)
Description copied from interface: TBase
Set a field's value by field variable. Primitive types must be "boxed" in the appropriate object wrapper type.

Specified by:
setFieldValue in interface TBase<T extends TUnion<?,?>,F extends TFieldIdEnum>

setFieldValue

public void setFieldValue(int fieldId,
                          Object value)

write

public void write(TProtocol oprot)
           throws TException
Description copied from interface: TBase
Writes the objects out to the protocol

Specified by:
write in interface TBase<T extends TUnion<?,?>,F extends TFieldIdEnum>
Parameters:
oprot - Output protocol
Throws:
TException

toString

public String toString()
Overrides:
toString in class Object

clear

public final void clear()
Description copied from interface: TBase
Return to the state of having just been initialized, as though you had just called the default constructor.

Specified by:
clear in interface TBase<T extends TUnion<?,?>,F extends TFieldIdEnum>


Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.