|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.blur.thrift.generated.BlurResults
public class BlurResults
BlurResults holds all information resulting from a query.
Nested Class Summary | |
---|---|
static class |
BlurResults._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them. |
Field Summary | |
---|---|
List<BlurException> |
exceptions
Not currently used, a future feature could allow for partial results with errors. |
List<Long> |
facetCounts
The faceted count. |
static Map<BlurResults._Fields,FieldMetaData> |
metaDataMap
|
BlurQuery |
query
The original query. |
List<BlurResult> |
results
The query results. |
Map<String,Long> |
shardInfo
Hit counts from each shard in the table. |
long |
totalResults
The total number of hits in the query. |
Constructor Summary | |
---|---|
BlurResults()
|
|
BlurResults(BlurResults other)
Performs a deep copy on other. |
|
BlurResults(long totalResults,
Map<String,Long> shardInfo,
List<BlurResult> results,
List<Long> facetCounts,
List<BlurException> exceptions,
BlurQuery query)
|
Method Summary | |
---|---|
void |
addToExceptions(BlurException elem)
|
void |
addToFacetCounts(long elem)
|
void |
addToResults(BlurResult elem)
|
void |
clear()
Return to the state of having just been initialized, as though you had just called the default constructor. |
int |
compareTo(BlurResults other)
|
BlurResults |
deepCopy()
|
boolean |
equals(BlurResults that)
|
boolean |
equals(Object that)
|
BlurResults._Fields |
fieldForId(int fieldId)
Get the F instance that corresponds to fieldId. |
List<BlurException> |
getExceptions()
Not currently used, a future feature could allow for partial results with errors. |
Iterator<BlurException> |
getExceptionsIterator()
|
int |
getExceptionsSize()
|
List<Long> |
getFacetCounts()
The faceted count. |
Iterator<Long> |
getFacetCountsIterator()
|
int |
getFacetCountsSize()
|
Object |
getFieldValue(BlurResults._Fields field)
Get a field's value by field variable. |
BlurQuery |
getQuery()
The original query. |
List<BlurResult> |
getResults()
The query results. |
Iterator<BlurResult> |
getResultsIterator()
|
int |
getResultsSize()
|
Map<String,Long> |
getShardInfo()
Hit counts from each shard in the table. |
int |
getShardInfoSize()
|
long |
getTotalResults()
The total number of hits in the query. |
int |
hashCode()
|
boolean |
isSet(BlurResults._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise |
boolean |
isSetExceptions()
Returns true if field exceptions is set (has been assigned a value) and false otherwise |
boolean |
isSetFacetCounts()
Returns true if field facetCounts is set (has been assigned a value) and false otherwise |
boolean |
isSetQuery()
Returns true if field query is set (has been assigned a value) and false otherwise |
boolean |
isSetResults()
Returns true if field results is set (has been assigned a value) and false otherwise |
boolean |
isSetShardInfo()
Returns true if field shardInfo is set (has been assigned a value) and false otherwise |
boolean |
isSetTotalResults()
Returns true if field totalResults is set (has been assigned a value) and false otherwise |
void |
putToShardInfo(String key,
long val)
|
void |
read(TProtocol iprot)
Reads the TObject from the given input protocol. |
BlurResults |
setExceptions(List<BlurException> exceptions)
Not currently used, a future feature could allow for partial results with errors. |
void |
setExceptionsIsSet(boolean value)
|
BlurResults |
setFacetCounts(List<Long> facetCounts)
The faceted count. |
void |
setFacetCountsIsSet(boolean value)
|
void |
setFieldValue(BlurResults._Fields field,
Object value)
Set a field's value by field variable. |
BlurResults |
setQuery(BlurQuery query)
The original query. |
void |
setQueryIsSet(boolean value)
|
BlurResults |
setResults(List<BlurResult> results)
The query results. |
void |
setResultsIsSet(boolean value)
|
BlurResults |
setShardInfo(Map<String,Long> shardInfo)
Hit counts from each shard in the table. |
void |
setShardInfoIsSet(boolean value)
|
BlurResults |
setTotalResults(long totalResults)
The total number of hits in the query. |
void |
setTotalResultsIsSet(boolean value)
|
String |
toString()
|
void |
unsetExceptions()
|
void |
unsetFacetCounts()
|
void |
unsetQuery()
|
void |
unsetResults()
|
void |
unsetShardInfo()
|
void |
unsetTotalResults()
|
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 long totalResults
public Map<String,Long> shardInfo
public List<BlurResult> results
public List<Long> facetCounts
public List<BlurException> exceptions
public BlurQuery query
public static final Map<BlurResults._Fields,FieldMetaData> metaDataMap
Constructor Detail |
---|
public BlurResults()
public BlurResults(long totalResults, Map<String,Long> shardInfo, List<BlurResult> results, List<Long> facetCounts, List<BlurException> exceptions, BlurQuery query)
public BlurResults(BlurResults other)
Method Detail |
---|
public BlurResults deepCopy()
deepCopy
in interface TBase<BlurResults,BlurResults._Fields>
public void clear()
TBase
clear
in interface TBase<BlurResults,BlurResults._Fields>
public long getTotalResults()
public BlurResults setTotalResults(long totalResults)
public void unsetTotalResults()
public boolean isSetTotalResults()
public void setTotalResultsIsSet(boolean value)
public int getShardInfoSize()
public void putToShardInfo(String key, long val)
public Map<String,Long> getShardInfo()
public BlurResults setShardInfo(Map<String,Long> shardInfo)
public void unsetShardInfo()
public boolean isSetShardInfo()
public void setShardInfoIsSet(boolean value)
public int getResultsSize()
public Iterator<BlurResult> getResultsIterator()
public void addToResults(BlurResult elem)
public List<BlurResult> getResults()
public BlurResults setResults(List<BlurResult> results)
public void unsetResults()
public boolean isSetResults()
public void setResultsIsSet(boolean value)
public int getFacetCountsSize()
public Iterator<Long> getFacetCountsIterator()
public void addToFacetCounts(long elem)
public List<Long> getFacetCounts()
public BlurResults setFacetCounts(List<Long> facetCounts)
public void unsetFacetCounts()
public boolean isSetFacetCounts()
public void setFacetCountsIsSet(boolean value)
public int getExceptionsSize()
public Iterator<BlurException> getExceptionsIterator()
public void addToExceptions(BlurException elem)
public List<BlurException> getExceptions()
public BlurResults setExceptions(List<BlurException> exceptions)
public void unsetExceptions()
public boolean isSetExceptions()
public void setExceptionsIsSet(boolean value)
public BlurQuery getQuery()
public BlurResults setQuery(BlurQuery query)
public void unsetQuery()
public boolean isSetQuery()
public void setQueryIsSet(boolean value)
public void setFieldValue(BlurResults._Fields field, Object value)
TBase
setFieldValue
in interface TBase<BlurResults,BlurResults._Fields>
public Object getFieldValue(BlurResults._Fields field)
TBase
getFieldValue
in interface TBase<BlurResults,BlurResults._Fields>
public boolean isSet(BlurResults._Fields field)
isSet
in interface TBase<BlurResults,BlurResults._Fields>
public boolean equals(Object that)
equals
in class Object
public boolean equals(BlurResults that)
public int hashCode()
hashCode
in class Object
public int compareTo(BlurResults other)
compareTo
in interface Comparable<BlurResults>
public BlurResults._Fields fieldForId(int fieldId)
TBase
fieldForId
in interface TBase<BlurResults,BlurResults._Fields>
public void read(TProtocol iprot) throws TException
TBase
read
in interface TBase<BlurResults,BlurResults._Fields>
iprot
- Input protocol
TException
public void write(TProtocol oprot) throws TException
TBase
write
in interface TBase<BlurResults,BlurResults._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 |