@InterfaceStability.Committed @InterfaceAudience.Public public class DefaultSearchStatus extends Object implements SearchStatus
The default implementation for a SearchStatus
| Constructor and Description |
|---|
DefaultSearchStatus(long totalCount,
long errorCount,
long successCount) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
long |
errorCount()
the number of FTS pindexes queried that gave an error.
|
int |
hashCode() |
boolean |
isSuccess() |
long |
successCount()
the number of FTS pindexes queried that successfully answered.
|
String |
toString() |
long |
totalCount()
the total number of FTS pindexes that were queried.
|
public DefaultSearchStatus(long totalCount,
long errorCount,
long successCount)
public long totalCount()
SearchStatusthe total number of FTS pindexes that were queried.
totalCount in interface SearchStatuspublic long successCount()
SearchStatusthe number of FTS pindexes queried that successfully answered.
successCount in interface SearchStatuspublic long errorCount()
SearchStatusthe number of FTS pindexes queried that gave an error. If > 0, the SearchQueryResult’s SearchQueryResult.errors() method will contain errors.
errorCount in interface SearchStatuspublic boolean isSuccess()
isSuccess in interface SearchStatusCopyright © 2015 Couchbase, Inc.