org.apache.blur.thrift.generated
Class SortFieldResult

java.lang.Object
  extended by org.apache.blur.thirdparty.thrift_0_9_0.TUnion<SortFieldResult,SortFieldResult._Fields>
      extended by org.apache.blur.thrift.generated.SortFieldResult
All Implemented Interfaces:
Serializable, Comparable<SortFieldResult>, TBase<SortFieldResult,SortFieldResult._Fields>

public class SortFieldResult
extends TUnion<SortFieldResult,SortFieldResult._Fields>

Carries the one value from the sort that allows the merging of results.

See Also:
Serialized Form

Nested Class Summary
static class SortFieldResult._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
static Map<SortFieldResult._Fields,FieldMetaData> metaDataMap
           
 
Constructor Summary
SortFieldResult()
           
SortFieldResult(SortFieldResult._Fields setField, Object value)
           
SortFieldResult(SortFieldResult other)
           
 
Method Summary
static SortFieldResult binaryValue(byte[] value)
           
static SortFieldResult binaryValue(ByteBuffer value)
           
 ByteBuffer bufferForBinaryValue()
           
 int compareTo(SortFieldResult other)
           
 SortFieldResult deepCopy()
           
static SortFieldResult doubleValue(double value)
           
 boolean equals(Object other)
           
 boolean equals(SortFieldResult other)
           
 SortFieldResult._Fields fieldForId(int fieldId)
          Get the F instance that corresponds to fieldId.
 byte[] getBinaryValue()
          The binary value.
 double getDoubleValue()
          The double value.
 int getIntValue()
          The integer value.
 long getLongValue()
          The long value.
 boolean getNullValue()
          Carries the null boolean incase the field is null.
 String getStringValue()
          The string value.
 int hashCode()
          If you'd like this to perform more respectably, use the hashcode generator option.
static SortFieldResult intValue(int value)
           
 boolean isSetBinaryValue()
           
 boolean isSetDoubleValue()
           
 boolean isSetIntValue()
           
 boolean isSetLongValue()
           
 boolean isSetNullValue()
           
 boolean isSetStringValue()
           
static SortFieldResult longValue(long value)
           
static SortFieldResult nullValue(boolean value)
           
 void setBinaryValue(byte[] value)
          The binary value.
 void setBinaryValue(ByteBuffer value)
           
 void setDoubleValue(double value)
          The double value.
 void setIntValue(int value)
          The integer value.
 void setLongValue(long value)
          The long value.
 void setNullValue(boolean value)
          Carries the null boolean incase the field is null.
 void setStringValue(String value)
          The string value.
static SortFieldResult stringValue(String value)
           
 
Methods inherited from class org.apache.blur.thirdparty.thrift_0_9_0.TUnion
clear, getFieldValue, getFieldValue, getFieldValue, getSetField, isSet, isSet, isSet, read, setFieldValue, setFieldValue, toString, write
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

metaDataMap

public static final Map<SortFieldResult._Fields,FieldMetaData> metaDataMap
Constructor Detail

SortFieldResult

public SortFieldResult()

SortFieldResult

public SortFieldResult(SortFieldResult._Fields setField,
                       Object value)

SortFieldResult

public SortFieldResult(SortFieldResult other)
Method Detail

deepCopy

public SortFieldResult deepCopy()

nullValue

public static SortFieldResult nullValue(boolean value)

stringValue

public static SortFieldResult stringValue(String value)

intValue

public static SortFieldResult intValue(int value)

longValue

public static SortFieldResult longValue(long value)

doubleValue

public static SortFieldResult doubleValue(double value)

binaryValue

public static SortFieldResult binaryValue(ByteBuffer value)

binaryValue

public static SortFieldResult binaryValue(byte[] value)

fieldForId

public SortFieldResult._Fields fieldForId(int fieldId)
Description copied from interface: TBase
Get the F instance that corresponds to fieldId.


getNullValue

public boolean getNullValue()
Carries the null boolean incase the field is null.


setNullValue

public void setNullValue(boolean value)
Carries the null boolean incase the field is null.


getStringValue

public String getStringValue()
The string value.


setStringValue

public void setStringValue(String value)
The string value.


getIntValue

public int getIntValue()
The integer value.


setIntValue

public void setIntValue(int value)
The integer value.


getLongValue

public long getLongValue()
The long value.


setLongValue

public void setLongValue(long value)
The long value.


getDoubleValue

public double getDoubleValue()
The double value.


setDoubleValue

public void setDoubleValue(double value)
The double value.


getBinaryValue

public byte[] getBinaryValue()
The binary value.


bufferForBinaryValue

public ByteBuffer bufferForBinaryValue()

setBinaryValue

public void setBinaryValue(byte[] value)
The binary value.


setBinaryValue

public void setBinaryValue(ByteBuffer value)

isSetNullValue

public boolean isSetNullValue()

isSetStringValue

public boolean isSetStringValue()

isSetIntValue

public boolean isSetIntValue()

isSetLongValue

public boolean isSetLongValue()

isSetDoubleValue

public boolean isSetDoubleValue()

isSetBinaryValue

public boolean isSetBinaryValue()

equals

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

equals

public boolean equals(SortFieldResult other)

compareTo

public int compareTo(SortFieldResult other)

hashCode

public int hashCode()
If you'd like this to perform more respectably, use the hashcode generator option.

Overrides:
hashCode in class Object


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