org.apache.blur.thrift.generated
Class FetchRowResult

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

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

FetchRowResult contains row result from a fetch.

See Also:
Serialized Form

Nested Class Summary
static class FetchRowResult._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
 int maxRecordsToFetch
          See Selector maxRecordsToFetch.
static Map<FetchRowResult._Fields,FieldMetaData> metaDataMap
           
 boolean moreRecordsToFetch
          Are there more Records to fetch based on the Selector provided.
 Row row
          The row fetched.
 int startRecord
          See Selector startRecord.
 int totalRecords
          The total number of records the Selector found.
 
Constructor Summary
FetchRowResult()
           
FetchRowResult(FetchRowResult other)
          Performs a deep copy on other.
FetchRowResult(Row row, int startRecord, int maxRecordsToFetch, boolean moreRecordsToFetch, int totalRecords)
           
 
Method Summary
 void clear()
          Return to the state of having just been initialized, as though you had just called the default constructor.
 int compareTo(FetchRowResult other)
           
 FetchRowResult deepCopy()
           
 boolean equals(FetchRowResult that)
           
 boolean equals(Object that)
           
 FetchRowResult._Fields fieldForId(int fieldId)
          Get the F instance that corresponds to fieldId.
 Object getFieldValue(FetchRowResult._Fields field)
          Get a field's value by field variable.
 int getMaxRecordsToFetch()
          See Selector maxRecordsToFetch.
 Row getRow()
          The row fetched.
 int getStartRecord()
          See Selector startRecord.
 int getTotalRecords()
          The total number of records the Selector found.
 int hashCode()
           
 boolean isMoreRecordsToFetch()
          Are there more Records to fetch based on the Selector provided.
 boolean isSet(FetchRowResult._Fields field)
          Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
 boolean isSetMaxRecordsToFetch()
          Returns true if field maxRecordsToFetch is set (has been assigned a value) and false otherwise
 boolean isSetMoreRecordsToFetch()
          Returns true if field moreRecordsToFetch is set (has been assigned a value) and false otherwise
 boolean isSetRow()
          Returns true if field row is set (has been assigned a value) and false otherwise
 boolean isSetStartRecord()
          Returns true if field startRecord is set (has been assigned a value) and false otherwise
 boolean isSetTotalRecords()
          Returns true if field totalRecords is set (has been assigned a value) and false otherwise
 void read(TProtocol iprot)
          Reads the TObject from the given input protocol.
 void setFieldValue(FetchRowResult._Fields field, Object value)
          Set a field's value by field variable.
 FetchRowResult setMaxRecordsToFetch(int maxRecordsToFetch)
          See Selector maxRecordsToFetch.
 void setMaxRecordsToFetchIsSet(boolean value)
           
 FetchRowResult setMoreRecordsToFetch(boolean moreRecordsToFetch)
          Are there more Records to fetch based on the Selector provided.
 void setMoreRecordsToFetchIsSet(boolean value)
           
 FetchRowResult setRow(Row row)
          The row fetched.
 void setRowIsSet(boolean value)
           
 FetchRowResult setStartRecord(int startRecord)
          See Selector startRecord.
 void setStartRecordIsSet(boolean value)
           
 FetchRowResult setTotalRecords(int totalRecords)
          The total number of records the Selector found.
 void setTotalRecordsIsSet(boolean value)
           
 String toString()
           
 void unsetMaxRecordsToFetch()
           
 void unsetMoreRecordsToFetch()
           
 void unsetRow()
           
 void unsetStartRecord()
           
 void unsetTotalRecords()
           
 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

row

public Row row
The row fetched.


startRecord

public int startRecord
See Selector startRecord.


maxRecordsToFetch

public int maxRecordsToFetch
See Selector maxRecordsToFetch.


moreRecordsToFetch

public boolean moreRecordsToFetch
Are there more Records to fetch based on the Selector provided.


totalRecords

public int totalRecords
The total number of records the Selector found.


metaDataMap

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

FetchRowResult

public FetchRowResult()

FetchRowResult

public FetchRowResult(Row row,
                      int startRecord,
                      int maxRecordsToFetch,
                      boolean moreRecordsToFetch,
                      int totalRecords)

FetchRowResult

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

Method Detail

deepCopy

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

getRow

public Row getRow()
The row fetched.


setRow

public FetchRowResult setRow(Row row)
The row fetched.


unsetRow

public void unsetRow()

isSetRow

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


setRowIsSet

public void setRowIsSet(boolean value)

getStartRecord

public int getStartRecord()
See Selector startRecord.


setStartRecord

public FetchRowResult setStartRecord(int startRecord)
See Selector startRecord.


unsetStartRecord

public void unsetStartRecord()

isSetStartRecord

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


setStartRecordIsSet

public void setStartRecordIsSet(boolean value)

getMaxRecordsToFetch

public int getMaxRecordsToFetch()
See Selector maxRecordsToFetch.


setMaxRecordsToFetch

public FetchRowResult setMaxRecordsToFetch(int maxRecordsToFetch)
See Selector maxRecordsToFetch.


unsetMaxRecordsToFetch

public void unsetMaxRecordsToFetch()

isSetMaxRecordsToFetch

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


setMaxRecordsToFetchIsSet

public void setMaxRecordsToFetchIsSet(boolean value)

isMoreRecordsToFetch

public boolean isMoreRecordsToFetch()
Are there more Records to fetch based on the Selector provided.


setMoreRecordsToFetch

public FetchRowResult setMoreRecordsToFetch(boolean moreRecordsToFetch)
Are there more Records to fetch based on the Selector provided.


unsetMoreRecordsToFetch

public void unsetMoreRecordsToFetch()

isSetMoreRecordsToFetch

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


setMoreRecordsToFetchIsSet

public void setMoreRecordsToFetchIsSet(boolean value)

getTotalRecords

public int getTotalRecords()
The total number of records the Selector found.


setTotalRecords

public FetchRowResult setTotalRecords(int totalRecords)
The total number of records the Selector found.


unsetTotalRecords

public void unsetTotalRecords()

isSetTotalRecords

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


setTotalRecordsIsSet

public void setTotalRecordsIsSet(boolean value)

setFieldValue

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

getFieldValue

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

isSet

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

equals

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

equals

public boolean equals(FetchRowResult that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

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

fieldForId

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

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