mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-07-19 22:17:13 +00:00
Count url-agnostic content digest duplicates as duplicates in statistics
* CrawledBytesHistotable.java
accumulate() - count urls with warcRevisit:uriAgnosticDigest annotation as duplicates
* ContentDigestHistoryTest.java
testWarcDedupe() - check for presence of warcRevisit:uriAgnosticDigest annotation
This commit is contained in:
@@ -48,6 +48,9 @@ implements CoreAttributeConstants {
|
||||
} else if (IdenticalDigestDecideRule.hasIdenticalDigest(curi)) {
|
||||
tally(DUPLICATE,curi.getContentSize());
|
||||
tally(DUPLICATECOUNT,1);
|
||||
} else if (curi.getAnnotations().contains("warcRevisit:uriAgnosticDigest")) {
|
||||
tally(DUPLICATE,curi.getContentSize());
|
||||
tally(DUPLICATECOUNT,1);
|
||||
} else {
|
||||
tally(NOVEL,curi.getContentSize());
|
||||
tally(NOVELCOUNT,1);
|
||||
|
||||
Reference in New Issue
Block a user