org.apache.blur.thrift.generated
Class BlurResult

java.lang.Object
  extended by org.apache.blur.thrift.generated.BlurResult
All Implemented Interfaces:
Serializable, Cloneable, Comparable<BlurResult>, TBase<BlurResult,BlurResult._Fields>
Direct Known Subclasses:
LazyBlurResult

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

The BlurResult carries the score, the location id and the fetched result (if any) form each query.

See Also:
Serialized Form

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

locationId

public String locationId
WARNING: This is an internal only attribute and is not intended for use by clients.


score

public double score
The score for the hit in the query.


fetchResult

public FetchResult fetchResult
The fetched result if any.


sortFieldResults

public List<SortFieldResult> sortFieldResults
The fields used for sorting.


metaDataMap

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

BlurResult

public BlurResult()

BlurResult

public BlurResult(String locationId,
                  double score,
                  FetchResult fetchResult,
                  List<SortFieldResult> sortFieldResults)

BlurResult

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

Method Detail

deepCopy

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

getLocationId

public String getLocationId()
WARNING: This is an internal only attribute and is not intended for use by clients.


setLocationId

public BlurResult setLocationId(String locationId)
WARNING: This is an internal only attribute and is not intended for use by clients.


unsetLocationId

public void unsetLocationId()

isSetLocationId

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


setLocationIdIsSet

public void setLocationIdIsSet(boolean value)

getScore

public double getScore()
The score for the hit in the query.


setScore

public BlurResult setScore(double score)
The score for the hit in the query.


unsetScore

public void unsetScore()

isSetScore

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


setScoreIsSet

public void setScoreIsSet(boolean value)

getFetchResult

public FetchResult getFetchResult()
The fetched result if any.


setFetchResult

public BlurResult setFetchResult(FetchResult fetchResult)
The fetched result if any.


unsetFetchResult

public void unsetFetchResult()

isSetFetchResult

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


setFetchResultIsSet

public void setFetchResultIsSet(boolean value)

getSortFieldResultsSize

public int getSortFieldResultsSize()

getSortFieldResultsIterator

public Iterator<SortFieldResult> getSortFieldResultsIterator()

addToSortFieldResults

public void addToSortFieldResults(SortFieldResult elem)

getSortFieldResults

public List<SortFieldResult> getSortFieldResults()
The fields used for sorting.


setSortFieldResults

public BlurResult setSortFieldResults(List<SortFieldResult> sortFieldResults)
The fields used for sorting.


unsetSortFieldResults

public void unsetSortFieldResults()

isSetSortFieldResults

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


setSortFieldResultsIsSet

public void setSortFieldResultsIsSet(boolean value)

setFieldValue

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

getFieldValue

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

isSet

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

equals

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

equals

public boolean equals(BlurResult that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

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

fieldForId

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

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