Class Case
java.lang.Object
com.aquima.interactions.matching.impl.model.Case
- All Implemented Interfaces:
ICase
,IMatchValue
This class contains the values of a single case in the casebase.
- Since:
- 6.2
- Author:
- O. Kerpershoek, F. van der Meer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
getId()
This method returns a unique ID for the case.This method returns the value of the case for the key field of the casebase.This method returns an array containing all the values of the case that can be matched.int
hashCode()
protected void
setKeyValue
(ISingleValue keyValue) protected void
setValue
(int index, IMatchValue matchValue)
-
Constructor Details
-
Case
-
-
Method Details
-
getId
Description copied from interface:ICase
This method returns a unique ID for the case. The ID of the case is used to identify the case in the match result. -
setKeyValue
-
setValue
-
getKeyValue
Description copied from interface:ICase
This method returns the value of the case for the key field of the casebase. Only single-valued attributes can be used as key field.- Specified by:
getKeyValue
in interfaceICase
- Returns:
- the key field value of the case.
-
getValues
Description copied from interface:ICase
This method returns an array containing all the values of the case that can be matched. The values are returned in the exact same order as the match functions defined for the casebase.Important note: This ordering of the output array is a design v.s. optimization issue which has favored to the optimization side. Since a casebase consisting of 1,000,000 cases matching over 20 attributes per case will result in 20 million hash map lookups. Since the order is known from the clients point of view one can access this array directly resulting in a much faster process.
-
hashCode
public int hashCode() -
equals
-