|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.blur.thrift.generated.BlurResult
public class BlurResult
The BlurResult carries the score, the location id and the fetched result (if any) form each query.
Nested Class Summary | |
---|---|
static class |
BlurResult._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them. |
Field Summary | |
---|---|
FetchResult |
fetchResult
The fetched result if any. |
String |
locationId
WARNING: This is an internal only attribute and is not intended for use by clients. |
static Map<BlurResult._Fields,FieldMetaData> |
metaDataMap
|
double |
score
The score for the hit in the query. |
List<SortFieldResult> |
sortFieldResults
The fields used for sorting. |
Constructor Summary | |
---|---|
BlurResult()
|
|
BlurResult(BlurResult other)
Performs a deep copy on other. |
|
BlurResult(String locationId,
double score,
FetchResult fetchResult,
List<SortFieldResult> sortFieldResults)
|
Method Summary | |
---|---|
void |
addToSortFieldResults(SortFieldResult elem)
|
void |
clear()
Return to the state of having just been initialized, as though you had just called the default constructor. |
int |
compareTo(BlurResult other)
|
BlurResult |
deepCopy()
|
boolean |
equals(BlurResult that)
|
boolean |
equals(Object that)
|
BlurResult._Fields |
fieldForId(int fieldId)
Get the F instance that corresponds to fieldId. |
FetchResult |
getFetchResult()
The fetched result if any. |
Object |
getFieldValue(BlurResult._Fields field)
Get a field's value by field variable. |
String |
getLocationId()
WARNING: This is an internal only attribute and is not intended for use by clients. |
double |
getScore()
The score for the hit in the query. |
List<SortFieldResult> |
getSortFieldResults()
The fields used for sorting. |
Iterator<SortFieldResult> |
getSortFieldResultsIterator()
|
int |
getSortFieldResultsSize()
|
int |
hashCode()
|
boolean |
isSet(BlurResult._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise |
boolean |
isSetFetchResult()
Returns true if field fetchResult is set (has been assigned a value) and false otherwise |
boolean |
isSetLocationId()
Returns true if field locationId is set (has been assigned a value) and false otherwise |
boolean |
isSetScore()
Returns true if field score is set (has been assigned a value) and false otherwise |
boolean |
isSetSortFieldResults()
Returns true if field sortFieldResults is set (has been assigned a value) and false otherwise |
void |
read(TProtocol iprot)
Reads the TObject from the given input protocol. |
BlurResult |
setFetchResult(FetchResult fetchResult)
The fetched result if any. |
void |
setFetchResultIsSet(boolean value)
|
void |
setFieldValue(BlurResult._Fields field,
Object value)
Set a field's value by field variable. |
BlurResult |
setLocationId(String locationId)
WARNING: This is an internal only attribute and is not intended for use by clients. |
void |
setLocationIdIsSet(boolean value)
|
BlurResult |
setScore(double score)
The score for the hit in the query. |
void |
setScoreIsSet(boolean value)
|
BlurResult |
setSortFieldResults(List<SortFieldResult> sortFieldResults)
The fields used for sorting. |
void |
setSortFieldResultsIsSet(boolean value)
|
String |
toString()
|
void |
unsetFetchResult()
|
void |
unsetLocationId()
|
void |
unsetScore()
|
void |
unsetSortFieldResults()
|
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 String locationId
public double score
public FetchResult fetchResult
public List<SortFieldResult> sortFieldResults
public static final Map<BlurResult._Fields,FieldMetaData> metaDataMap
Constructor Detail |
---|
public BlurResult()
public BlurResult(String locationId, double score, FetchResult fetchResult, List<SortFieldResult> sortFieldResults)
public BlurResult(BlurResult other)
Method Detail |
---|
public BlurResult deepCopy()
deepCopy
in interface TBase<BlurResult,BlurResult._Fields>
public void clear()
TBase
clear
in interface TBase<BlurResult,BlurResult._Fields>
public String getLocationId()
public BlurResult setLocationId(String locationId)
public void unsetLocationId()
public boolean isSetLocationId()
public void setLocationIdIsSet(boolean value)
public double getScore()
public BlurResult setScore(double score)
public void unsetScore()
public boolean isSetScore()
public void setScoreIsSet(boolean value)
public FetchResult getFetchResult()
public BlurResult setFetchResult(FetchResult fetchResult)
public void unsetFetchResult()
public boolean isSetFetchResult()
public void setFetchResultIsSet(boolean value)
public int getSortFieldResultsSize()
public Iterator<SortFieldResult> getSortFieldResultsIterator()
public void addToSortFieldResults(SortFieldResult elem)
public List<SortFieldResult> getSortFieldResults()
public BlurResult setSortFieldResults(List<SortFieldResult> sortFieldResults)
public void unsetSortFieldResults()
public boolean isSetSortFieldResults()
public void setSortFieldResultsIsSet(boolean value)
public void setFieldValue(BlurResult._Fields field, Object value)
TBase
setFieldValue
in interface TBase<BlurResult,BlurResult._Fields>
public Object getFieldValue(BlurResult._Fields field)
TBase
getFieldValue
in interface TBase<BlurResult,BlurResult._Fields>
public boolean isSet(BlurResult._Fields field)
isSet
in interface TBase<BlurResult,BlurResult._Fields>
public boolean equals(Object that)
equals
in class Object
public boolean equals(BlurResult that)
public int hashCode()
hashCode
in class Object
public int compareTo(BlurResult other)
compareTo
in interface Comparable<BlurResult>
public BlurResult._Fields fieldForId(int fieldId)
TBase
fieldForId
in interface TBase<BlurResult,BlurResult._Fields>
public void read(TProtocol iprot) throws TException
TBase
read
in interface TBase<BlurResult,BlurResult._Fields>
iprot
- Input protocol
TException
public void write(TProtocol oprot) throws TException
TBase
write
in interface TBase<BlurResult,BlurResult._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 |