@InterfaceStability.Experimental @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()
SearchStatus
the total number of FTS pindexes that were queried.
totalCount
in interface SearchStatus
public long successCount()
SearchStatus
the number of FTS pindexes queried that successfully answered.
successCount
in interface SearchStatus
public long errorCount()
SearchStatus
the number of FTS pindexes queried that gave an error. If > 0, the SearchQueryResult
’s SearchQueryResult.errors()
method will contain errors.
errorCount
in interface SearchStatus
public boolean isSuccess()
isSuccess
in interface SearchStatus
Copyright © 2015 Couchbase, Inc.