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 aSearchStatus- Since:
- 2.3.0
- Author:
- Simon Baslé, Michael Nitschinger
-
-
Constructor Summary
Constructors Constructor Description DefaultSearchStatus(long totalCount, long errorCount, long successCount)
-
Method Summary
All Methods Instance Methods Concrete Methods 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.
-
-
-
Method Detail
-
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.
-
-