|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.blur.thrift.generated.FetchResult
public class FetchResult
FetchResult contains the row or record fetch result based if the Selector was going to fetch the entire row or a single record.
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 |
---|
public boolean exists
public boolean deleted
public String table
public FetchRowResult rowResult
public FetchRecordResult recordResult
public static final Map<FetchResult._Fields,FieldMetaData> metaDataMap
Constructor Detail |
---|
public FetchResult()
public FetchResult(boolean exists, boolean deleted, String table, FetchRowResult rowResult, FetchRecordResult recordResult)
public FetchResult(FetchResult other)
Method Detail |
---|
public FetchResult deepCopy()
deepCopy
in interface TBase<FetchResult,FetchResult._Fields>
public void clear()
TBase
clear
in interface TBase<FetchResult,FetchResult._Fields>
public boolean isExists()
public FetchResult setExists(boolean exists)
public void unsetExists()
public boolean isSetExists()
public void setExistsIsSet(boolean value)
public boolean isDeleted()
public FetchResult setDeleted(boolean deleted)
public void unsetDeleted()
public boolean isSetDeleted()
public void setDeletedIsSet(boolean value)
public String getTable()
public FetchResult setTable(String table)
public void unsetTable()
public boolean isSetTable()
public void setTableIsSet(boolean value)
public FetchRowResult getRowResult()
public FetchResult setRowResult(FetchRowResult rowResult)
public void unsetRowResult()
public boolean isSetRowResult()
public void setRowResultIsSet(boolean value)
public FetchRecordResult getRecordResult()
public FetchResult setRecordResult(FetchRecordResult recordResult)
public void unsetRecordResult()
public boolean isSetRecordResult()
public void setRecordResultIsSet(boolean value)
public void setFieldValue(FetchResult._Fields field, Object value)
TBase
setFieldValue
in interface TBase<FetchResult,FetchResult._Fields>
public Object getFieldValue(FetchResult._Fields field)
TBase
getFieldValue
in interface TBase<FetchResult,FetchResult._Fields>
public boolean isSet(FetchResult._Fields field)
isSet
in interface TBase<FetchResult,FetchResult._Fields>
public boolean equals(Object that)
equals
in class Object
public boolean equals(FetchResult that)
public int hashCode()
hashCode
in class Object
public int compareTo(FetchResult other)
compareTo
in interface Comparable<FetchResult>
public FetchResult._Fields fieldForId(int fieldId)
TBase
fieldForId
in interface TBase<FetchResult,FetchResult._Fields>
public void read(TProtocol iprot) throws TException
TBase
read
in interface TBase<FetchResult,FetchResult._Fields>
iprot
- Input protocol
TException
public void write(TProtocol oprot) throws TException
TBase
write
in interface TBase<FetchResult,FetchResult._Fields>
oprot
- Output protocol
TException
public String toString()
toString
in class Object
public void validate() throws TException
TException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |