org.apache.blur.thrift.generated
Class FetchResult

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

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

FetchResult contains the row or record fetch result based if the Selector was going to fetch the entire row or a single record.

See Also:
Serialized Form

Nested Class Summary
static class FetchResult._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
 boolean deleted
          If the row was marked as deleted.
 boolean exists
          True if the result exists, false if it doesn't.
static Map<FetchResult._Fields,FieldMetaData> metaDataMap
           
 FetchRecordResult recordResult
          The record result if a record was selected form the Selector.
 FetchRowResult rowResult
          The row result if a row was selected form the Selector.
 String table
          The table the fetch result came from.
 
Constructor Summary
FetchResult()
           
FetchResult(boolean exists, boolean deleted, String table, FetchRowResult rowResult, FetchRecordResult recordResult)
           
FetchResult(FetchResult other)
          Performs a deep copy on other.
 
Method Summary
 void clear()
          Return to the state of having just been initialized, as though you had just called the default constructor.
 int compareTo(FetchResult other)
           
 FetchResult deepCopy()
           
 boolean equals(FetchResult that)
           
 boolean equals(Object that)
           
 FetchResult._Fields fieldForId(int fieldId)
          Get the F instance that corresponds to fieldId.
 Object getFieldValue(FetchResult._Fields field)
          Get a field's value by field variable.
 FetchRecordResult getRecordResult()
          The record result if a record was selected form the Selector.
 FetchRowResult getRowResult()
          The row result if a row was selected form the Selector.
 String getTable()
          The table the fetch result came from.
 int hashCode()
           
 boolean isDeleted()
          If the row was marked as deleted.
 boolean isExists()
          True if the result exists, false if it doesn't.
 boolean isSet(FetchResult._Fields field)
          Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
 boolean isSetDeleted()
          Returns true if field deleted is set (has been assigned a value) and false otherwise
 boolean isSetExists()
          Returns true if field exists is set (has been assigned a value) and false otherwise
 boolean isSetRecordResult()
          Returns true if field recordResult is set (has been assigned a value) and false otherwise
 boolean isSetRowResult()
          Returns true if field rowResult is set (has been assigned a value) and false otherwise
 boolean isSetTable()
          Returns true if field table is set (has been assigned a value) and false otherwise
 void read(TProtocol iprot)
          Reads the TObject from the given input protocol.
 FetchResult setDeleted(boolean deleted)
          If the row was marked as deleted.
 void setDeletedIsSet(boolean value)
           
 FetchResult setExists(boolean exists)
          True if the result exists, false if it doesn't.
 void setExistsIsSet(boolean value)
           
 void setFieldValue(FetchResult._Fields field, Object value)
          Set a field's value by field variable.
 FetchResult setRecordResult(FetchRecordResult recordResult)
          The record result if a record was selected form the Selector.
 void setRecordResultIsSet(boolean value)
           
 FetchResult setRowResult(FetchRowResult rowResult)
          The row result if a row was selected form the Selector.
 void setRowResultIsSet(boolean value)
           
 FetchResult setTable(String table)
          The table the fetch result came from.
 void setTableIsSet(boolean value)
           
 String toString()
           
 void unsetDeleted()
           
 void unsetExists()
           
 void unsetRecordResult()
           
 void unsetRowResult()
           
 void unsetTable()
           
 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

exists

public boolean exists
True if the result exists, false if it doesn't.


deleted

public boolean deleted
If the row was marked as deleted.


table

public String table
The table the fetch result came from.


rowResult

public FetchRowResult rowResult
The row result if a row was selected form the Selector.


recordResult

public FetchRecordResult recordResult
The record result if a record was selected form the Selector.


metaDataMap

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

FetchResult

public FetchResult()

FetchResult

public FetchResult(boolean exists,
                   boolean deleted,
                   String table,
                   FetchRowResult rowResult,
                   FetchRecordResult recordResult)

FetchResult

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

Method Detail

deepCopy

public FetchResult deepCopy()
Specified by:
deepCopy in interface TBase<FetchResult,FetchResult._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<FetchResult,FetchResult._Fields>

isExists

public boolean isExists()
True if the result exists, false if it doesn't.


setExists

public FetchResult setExists(boolean exists)
True if the result exists, false if it doesn't.


unsetExists

public void unsetExists()

isSetExists

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


setExistsIsSet

public void setExistsIsSet(boolean value)

isDeleted

public boolean isDeleted()
If the row was marked as deleted.


setDeleted

public FetchResult setDeleted(boolean deleted)
If the row was marked as deleted.


unsetDeleted

public void unsetDeleted()

isSetDeleted

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


setDeletedIsSet

public void setDeletedIsSet(boolean value)

getTable

public String getTable()
The table the fetch result came from.


setTable

public FetchResult setTable(String table)
The table the fetch result came from.


unsetTable

public void unsetTable()

isSetTable

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


setTableIsSet

public void setTableIsSet(boolean value)

getRowResult

public FetchRowResult getRowResult()
The row result if a row was selected form the Selector.


setRowResult

public FetchResult setRowResult(FetchRowResult rowResult)
The row result if a row was selected form the Selector.


unsetRowResult

public void unsetRowResult()

isSetRowResult

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


setRowResultIsSet

public void setRowResultIsSet(boolean value)

getRecordResult

public FetchRecordResult getRecordResult()
The record result if a record was selected form the Selector.


setRecordResult

public FetchResult setRecordResult(FetchRecordResult recordResult)
The record result if a record was selected form the Selector.


unsetRecordResult

public void unsetRecordResult()

isSetRecordResult

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


setRecordResultIsSet

public void setRecordResultIsSet(boolean value)

setFieldValue

public void setFieldValue(FetchResult._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<FetchResult,FetchResult._Fields>

getFieldValue

public Object getFieldValue(FetchResult._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<FetchResult,FetchResult._Fields>

isSet

public boolean isSet(FetchResult._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<FetchResult,FetchResult._Fields>

equals

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

equals

public boolean equals(FetchResult that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

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

fieldForId

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

Specified by:
fieldForId in interface TBase<FetchResult,FetchResult._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<FetchResult,FetchResult._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<FetchResult,FetchResult._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.