public class DBMatchSet
extends java.lang.Object
Constructor and Description |
---|
DBMatchSet()
Default constructor
|
DBMatchSet(int nItems)
Create match set with maximum number of matches
When a maximum is specified, those items with less matching grade
will be discarded by the put method after the limit is reached.
|
Modifier and Type | Method and Description |
---|---|
int |
count()
Count of matches in this set
|
DBMatch |
get(int m) |
java.util.ListIterator |
iterator() |
void |
put(java.lang.String sRecordGuid,
java.lang.Object oRecordValue,
int iRecordIndex,
float fMatchPct)
Insert new match
|
DBMatch[] |
toArray()
Get array of matches sorted by their degree
|
java.lang.String |
toXML() |
public DBMatchSet()
public DBMatchSet(int nItems)
Create match set with maximum number of matches
When a maximum is specified, those items with less matching grade will be discarded by the put method after the limit is reached.nItems
- Maximum number of matches to keep in this setpublic void put(java.lang.String sRecordGuid, java.lang.Object oRecordValue, int iRecordIndex, float fMatchPct)
Insert new match
sRecordGuid
- Unique identifier of record originating the matchoRecordValue
- Value of matching elementiRecordIndex
- Index of matching element at DBSubset or RecordSetfMatchPct
- Match degree percentage [0..100]public java.util.ListIterator iterator()
public DBMatch get(int m)
public DBMatch[] toArray()
public int count()
public java.lang.String toXML()