Class DefaultSearchStatus
java.lang.Object
com.couchbase.client.java.search.result.impl.DefaultSearchStatus
- All Implemented Interfaces:
SearchStatus
@Committed @Public public class DefaultSearchStatus extends Object implements SearchStatus
The default implementation for a
SearchStatus- Since:
- 2.3.0
- Author:
- Simon Baslé, Michael Nitschinger
-
Constructor Summary
Constructors Constructor Description DefaultSearchStatus(long totalCount, long errorCount, long successCount) -
Method Summary
Modifier and Type Method Description booleanequals(Object o)longerrorCount()the number of FTS pindexes queried that gave an error.inthashCode()booleanisSuccess()longsuccessCount()the number of FTS pindexes queried that successfully answered.StringtoString()longtotalCount()the total number of FTS pindexes that were queried.
-
Constructor Details
-
DefaultSearchStatus
public DefaultSearchStatus(long totalCount, long errorCount, long successCount)
-
-
Method Details
-
totalCount
public long totalCount()Description copied from interface:SearchStatusthe total number of FTS pindexes that were queried.- Specified by:
totalCountin interfaceSearchStatus
-
successCount
public long successCount()Description copied from interface:SearchStatusthe number of FTS pindexes queried that successfully answered.- Specified by:
successCountin interfaceSearchStatus
-
errorCount
public long errorCount()Description copied from interface:SearchStatusthe number of FTS pindexes queried that gave an error. If > 0, theSearchQueryResult'sSearchQueryResult.errors()method will contain errors.- Specified by:
errorCountin interfaceSearchStatus
-
isSuccess
public boolean isSuccess()- Specified by:
isSuccessin interfaceSearchStatus- Returns:
- true if all FTS indexes answered successfully.
-
equals
-
hashCode
public int hashCode() -
toString
-