public interface ICountFingerprint extends Serializable
Modifier and Type | Method and Description |
---|---|
int |
getCount(int index)
Returns the count value for the bin with the given index.
|
int |
getCountForHash(int hash)
Get the number of times a certain hash exists in the fingerprint.
|
int |
getHash(int index)
Returns the hash corresponding to the given index in the fingerprint.
|
boolean |
hasHash(int hash)
Whether the fingerprint contains the given hash.
|
void |
merge(ICountFingerprint fp)
Merge all from
fp into the current fingerprint. |
int |
numOfPopulatedbins()
Returns the number of bins that are populated.
|
void |
setBehaveAsBitFingerprint(boolean behaveAsBitFingerprint)
Changes behaviour, if true is given the count fingerprint will
behave as a bit fingerprint and return 0 or 1 for counts.
|
long |
size()
Returns the number of bits of this fingerprint.
|
long size()
int numOfPopulatedbins()
size()
int getCount(int index)
index
- the index of the bin to return the number of hits for.int getHash(int index)
index
- the index of the bin to return the hash for.void merge(ICountFingerprint fp)
fp
into the current fingerprint.fp
- to be mergedvoid setBehaveAsBitFingerprint(boolean behaveAsBitFingerprint)
behaveAsBitFingerprint
- boolean hasHash(int hash)
hash
- int getCountForHash(int hash)
hash
- Copyright © 2022. All rights reserved.