public interface Digest
Modifier and Type | Method and Description |
---|---|
DigestInfo |
digest(Number160 locationKey,
Number160 domainKey,
Collection<Number160> contentKeys)
Calculates a digest over a specific location and domain.
|
DigestInfo |
digest(Number160 locationKey,
Number160 domainKey,
SimpleBloomFilter<Number160> keyBloomFilter,
SimpleBloomFilter<Number160> contentBloomFilter)
Calculates a digest over a specific location and domain.
|
DigestInfo digest(Number160 locationKey, Number160 domainKey, Collection<Number160> contentKeys)
locationKey
- The location keydomainKey
- The domain keycontentKeys
- The content keys to look for. Those keys that are not found
are ignored. Can be set to null -> gets the information for
all content keysDigestInfo digest(Number160 locationKey, Number160 domainKey, SimpleBloomFilter<Number160> keyBloomFilter, SimpleBloomFilter<Number160> contentBloomFilter)
locationKey
- The location keydomainKey
- The domain keykeyBloomFilter
- The bloomFilter of those key elements we want the digest.
Please not that there might be false positive, e.g., a
Number160 that is included in the digest but not stored on
disk/memory.contentBloomFilter
- The bloomFilter of those data elements we want the digest.
Please not that there might be false positive, e.g., a
Number160 that is included in the digest but not stored on
disk/memory.Copyright © 2013. All Rights Reserved.