Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bulk unindexing for IndexerInterface #598

Merged
merged 13 commits into from
Aug 27, 2024
Prev Previous commit
Next Next commit
[sdk] Add UnindexReport#errorCount
  • Loading branch information
Enet4 committed Apr 17, 2024
commit 680c1544c8b6c495cc913a6263657f04d1ac426e
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,11 @@ public Collection<FailedUnindex> getUnindexFailures() {
public Collection<URI> getNotFound() {
return Collections.unmodifiableCollection(this.notFound);
}

/** Return the total count of files which were requested to be unindexed,
* but were either not found or failed to unindex.
*/
public long errorCount() {
return this.failures.size() + this.notFound.size();
}
}