org.apache.blur.thrift.generated
Class SortField

java.lang.Object
  extended by org.apache.blur.thrift.generated.SortField
All Implemented Interfaces:
Serializable, Cloneable, Comparable<SortField>, TBase<SortField,SortField._Fields>

public class SortField
extends Object
implements TBase<SortField,SortField._Fields>, Serializable, Cloneable

See Also:
Serialized Form

Nested Class Summary
static class SortField._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
 String column
           
 String family
           
static Map<SortField._Fields,FieldMetaData> metaDataMap
           
 boolean reverse
           
 
Constructor Summary
SortField()
           
SortField(SortField other)
          Performs a deep copy on other.
SortField(String family, String column, boolean reverse)
           
 
Method Summary
 void clear()
          Return to the state of having just been initialized, as though you had just called the default constructor.
 int compareTo(SortField other)
           
 SortField deepCopy()
           
 boolean equals(Object that)
           
 boolean equals(SortField that)
           
 SortField._Fields fieldForId(int fieldId)
          Get the F instance that corresponds to fieldId.
 String getColumn()
           
 String getFamily()
           
 Object getFieldValue(SortField._Fields field)
          Get a field's value by field variable.
 int hashCode()
           
 boolean isReverse()
           
 boolean isSet(SortField._Fields field)
          Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
 boolean isSetColumn()
          Returns true if field column is set (has been assigned a value) and false otherwise
 boolean isSetFamily()
          Returns true if field family is set (has been assigned a value) and false otherwise
 boolean isSetReverse()
          Returns true if field reverse is set (has been assigned a value) and false otherwise
 void read(TProtocol iprot)
          Reads the TObject from the given input protocol.
 SortField setColumn(String column)
           
 void setColumnIsSet(boolean value)
           
 SortField setFamily(String family)
           
 void setFamilyIsSet(boolean value)
           
 void setFieldValue(SortField._Fields field, Object value)
          Set a field's value by field variable.
 SortField setReverse(boolean reverse)
           
 void setReverseIsSet(boolean value)
           
 String toString()
           
 void unsetColumn()
           
 void unsetFamily()
           
 void unsetReverse()
           
 void validate()
           
 void write(TProtocol oprot)
          Writes the objects out to the protocol
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

family

public String family

column

public String column

reverse

public boolean reverse

metaDataMap

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

SortField

public SortField()

SortField

public SortField(String family,
                 String column,
                 boolean reverse)

SortField

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

Method Detail

deepCopy

public SortField deepCopy()
Specified by:
deepCopy in interface TBase<SortField,SortField._Fields>

clear

public 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<SortField,SortField._Fields>

getFamily

public String getFamily()

setFamily

public SortField setFamily(String family)

unsetFamily

public void unsetFamily()

isSetFamily

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


setFamilyIsSet

public void setFamilyIsSet(boolean value)

getColumn

public String getColumn()

setColumn

public SortField setColumn(String column)

unsetColumn

public void unsetColumn()

isSetColumn

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


setColumnIsSet

public void setColumnIsSet(boolean value)

isReverse

public boolean isReverse()

setReverse

public SortField setReverse(boolean reverse)

unsetReverse

public void unsetReverse()

isSetReverse

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


setReverseIsSet

public void setReverseIsSet(boolean value)

setFieldValue

public void setFieldValue(SortField._Fields field,
                          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<SortField,SortField._Fields>

getFieldValue

public Object getFieldValue(SortField._Fields field)
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<SortField,SortField._Fields>

isSet

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

Specified by:
isSet in interface TBase<SortField,SortField._Fields>

equals

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

equals

public boolean equals(SortField that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

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

fieldForId

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

Specified by:
fieldForId in interface TBase<SortField,SortField._Fields>

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<SortField,SortField._Fields>
Parameters:
iprot - Input protocol
Throws:
TException

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<SortField,SortField._Fields>
Parameters:
oprot - Output protocol
Throws:
TException

toString

public String toString()
Overrides:
toString in class Object

validate

public void validate()
              throws TException
Throws:
TException


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