|
Open SiteSearch 4.1.1 Final |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ORG.oclc.z39.client.Z39dedup
Z39dedup creates DedupRequests and translates DedupResponses.
Field Summary | |
DbResults[] |
dbResults
DbResults array object containing the breakdown of the representative records in a dedup when more than 1 db in search. |
int |
dedupedPostingsCount
integer data type containing the deduped count of unique postings. |
int |
dedupStatus
Status. |
int |
errorCode
|
String |
errorMsg
Error message if Sort failed. |
int |
referenceId
Value passed to Request and returned by a target Z39.50 server and Response stores it here. |
int |
requestLength
integer data type containing the number of bytes in the request. |
int |
responseLength
integer data type containing the number of bytes in the response. |
Constructor Summary | |
Z39dedup()
|
|
Z39dedup(Z39session z)
|
Method Summary | |
void |
doDedup(int referenceId,
String resultSetName,
String dedupResultSetName,
int numDupsToKeep,
boolean countIsPercent,
int detectionCriteria,
int levelOfMatch,
int sortCriteria,
String preferredDatabases,
String[] applicableKeys)
Creates and sends a Z39.50 DedupRequest, gets and processes the Z39.50 response |
BerString |
Request(int referenceId,
String resultSetName,
String dedupResultSetName,
int numDupsToKeep,
boolean countIsPercent,
int detectionCriteria,
int levelOfMatch,
int sortCriteria,
String preferredDatabases,
String[] applicableKeys)
Creates a Z39.50 DedupRequest. |
BerString |
Request(int referenceId,
String resultSetName,
String dedupResultSetName,
int numDupsToKeep,
boolean countIsPercent,
int detectionCriteria,
int levelOfMatch,
int sortCriteria,
String preferredDatabases,
String[] applicableKeys,
int extraLen,
int offset)
Creates a Z39.50 DedupRequest. |
void |
Response(BerString response)
|
void |
Response(DataDir response)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public int referenceId
public int dedupStatus
public int errorCode
public String errorMsg
public int requestLength
public int responseLength
public DbResults[] dbResults
public int dedupedPostingsCount
Constructor Detail |
public Z39dedup(Z39session z)
public Z39dedup()
Method Detail |
public void doDedup(int referenceId, String resultSetName, String dedupResultSetName, int numDupsToKeep, boolean countIsPercent, int detectionCriteria, int levelOfMatch, int sortCriteria, String preferredDatabases, String[] applicableKeys) throws Exception, Diagnostic1
referenceId
- Will be returned on Response.resultSetName
- name of the resultSet to dedupdedupResultSetName
- name of the dedup resultSetnumDupsToKeep
- the maximum number of duplicates
to retain for a recordcountIsPercent
- boolean indicating whether the dup count
is a percent(true) or a record countdetectionCriteria
- the tag indicating the type of duplicate
detectionCriterialevelOfMatch
- the level of match value for the duplicateDetection
criteriasortCriteria
- the tag indicating the type of sort Criterion to usepreferredDatabases
- space separated list of database names to use
when the sort criterion is preferred databases.applicableKeys
- this specifies the keys for the applicable portion
of the record field that can be used to indicate which parts of the
dedup key specification to use instead of letting the server decide
what the criteria for deduplication is.public BerString Request(int referenceId, String resultSetName, String dedupResultSetName, int numDupsToKeep, boolean countIsPercent, int detectionCriteria, int levelOfMatch, int sortCriteria, String preferredDatabases, String[] applicableKeys)
referenceId
- Will be returned on Response.resultSetName
- name of the resultSet to dedupdedupResultSetName
- name of the deduped resultSetnumDupsToKeep
- the maximum number of duplicates
to retain for a recordcountIsPercent
- boolean indicating whether the dup count
is a percent(true) or a record countdetectionCriteria
- the tag indicating the type of duplicate
detectionCriterialevelOfMatch
- the level of match value for the duplicateDetection
criteriasortCriteria
- the tag indicating the type of sort Criterion to usepreferredDatabases
- space separated list of database names to use
when the sort criterion is preferred databases.applicableKeys
- this specifies the keys for the applicable portion
of the record field that can be used to indicate which parts of the
dedup key specification to use instead of letting the server decide
what the criteria for deduplication is.public BerString Request(int referenceId, String resultSetName, String dedupResultSetName, int numDupsToKeep, boolean countIsPercent, int detectionCriteria, int levelOfMatch, int sortCriteria, String preferredDatabases, String[] applicableKeys, int extraLen, int offset)
referenceId
- Will be returned on Response.resultSetName
- name of the resultSet to dedupdedupResultSetName
- name of the dedup resultSetnumDupsToKeep
- the maximum number of duplicates
to retain for a recordcountIsPercent
- boolean indicating whether the dup countdetectionCriteria
- the tag indicating the type of duplicate
detectionCriterialevelOfMatch
- the level of match value for the duplicateDetection
criteriasortCriteria
- the tag indicating the type of sort Criterion to usepreferredDatabases
- space separated list of database names to use
when the sort criterion is preferred databases.
is a percent(true) or a record countapplicableKeys
- this specifies the keys for the applicable portion
of the record field that can be used to indicate which parts of the
dedup key specification to use instead of letting the server decide
what the criteria for deduplication is.extraLen
- Allow this much extra room in the built BER record.offset
- Build the Request at this offset in the BerStringpublic void Response(BerString response)
public void Response(DataDir response)
public String toString()
|
Open SiteSearch 4.1.1 Final |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |