@Beta @PublicAPI public interface BinaryVectorDescriptor extends Descriptor
Descriptor
which holds a fixed length binary fingerprint.
BinaryVectorDescriptor is a bare form descriptor.
Please note that this interface is marked with Beta
annotation, so it can be subject of incompatible
changes or removal in later releases.
Guarded.EnsureThat, Guarded.New
Modifier and Type | Method and Description |
---|---|
int |
calculateDarkness()
Calculate the darkness of this fingerprint.
|
int[] |
getFP()
Get integer array representation of this fingerprint.
|
BitSet |
getFpAsBitset()
Get BitSet representation of this fingerprint.
|
byte[] |
getFpAsBytes()
Convert to byte array.
|
long[] |
getFpAsLongs()
Get long array representation of this fingerprint.
|
String |
toBinaryString()
Convert the fingerprint into a binary string.
|
String |
toIntDecimalString()
Converts the fingerprints integer array representation into a tab separated string.
|
String |
toLongDecimalString()
Converts the fingerprints long array representation into a tab separated string.
|
getGuardObject
int[] getFP()
The returned array might be the the internal representation array so changing the values is forbidden. Please note that this behavior is not guaranteed, the returned array can be a non cached copy of the represented binary vector generated on every invocation.
long[] getFpAsLongs()
The returned array might be the the internal representation array so changing the values is forbidden. Please note that this behavior is not guaranteed, the returned array can be a non cached copy of the represented binary vector generated on every invocation.
IllegalStateException
- when the underlying fingerprint length is not multiply of 64 bits.BitSet getFpAsBitset()
int calculateDarkness()
Please note that the returned value is not necessarily cached, so the calculation might be executed for multiple consecutive invocations.
byte[] getFpAsBytes()
String toIntDecimalString()
String toLongDecimalString()
String toBinaryString()