@PublicAPI public interface ShapeComparator<T extends ShapeDescriptor> extends DescriptorComparator<T>
Guarded.EnsureThat, Guarded.New
Modifier and Type | Method and Description |
---|---|
ShapeComparisonResult |
compare(byte[] target,
byte[] query)
Compare two descriptors in serialized form.
|
ShapeComparisonResult |
compare(T target,
T query)
Compare two descriptors.
|
calculateDissimilarity, calculateDissimilarity, calculateSimilarity, calculateSimilarity, getLowerBound, getMetricMetadata, getUpperBound, unguardedContext
getGuardObject
ShapeComparisonResult compare(T target, T query)
DescriptorComparator
Please note that some implementation might return a result object containing additional data related to the compariosn results.
compare
in interface DescriptorComparator<T extends ShapeDescriptor>
target
- Target descriptorquery
- Query descriptorShapeComparisonResult compare(byte[] target, byte[] query)
DescriptorComparator
Please note that some implementation might return a result object containing additional data related to the
compariosn results. This method's functionality is equivalent to comparing
(with DescriptorComparator.compare(com.chemaxon.descriptors.common.Descriptor, com.chemaxon.descriptors.common.Descriptor)
)
deserialized
(by DescriptorSerializer.fromByteArray(byte[])
) descriptors.
compare
in interface DescriptorComparator<T extends ShapeDescriptor>
target
- Target descriptor in its serialized formquery
- Query descriptor in its serialized form