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 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.
-
Constructor Details
-
DefaultSearchStatus
public DefaultSearchStatus(long totalCount, long errorCount, long successCount)
-
-
Method Details
-
totalCount
public long totalCount()Description copied from interface:SearchStatus
the total number of FTS pindexes that were queried.- Specified by:
totalCount
in interfaceSearchStatus
-
successCount
public long successCount()Description copied from interface:SearchStatus
the number of FTS pindexes queried that successfully answered.- Specified by:
successCount
in interfaceSearchStatus
-
errorCount
public long errorCount()Description copied from interface:SearchStatus
the number of FTS pindexes queried that gave an error. If > 0, theSearchQueryResult
'sSearchQueryResult.errors()
method will contain errors.- Specified by:
errorCount
in interfaceSearchStatus
-
isSuccess
public boolean isSuccess()- Specified by:
isSuccess
in interfaceSearchStatus
- Returns:
- true if all FTS indexes answered successfully.
-
equals
-
hashCode
public int hashCode() -
toString
-