|
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.Z39sort
Z39sort creates SortRequests and translates SortResponses.
Field Summary | |
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. |
int |
sortStatus
Status. |
Constructor Summary | |
Z39sort()
|
|
Z39sort(Z39session z)
|
Method Summary | |
void |
doSort(int referenceId,
String resultSetName,
String sortResultSetName,
String[] sortKeys,
int[] sortOrder,
boolean fUseSortAttributes,
boolean sortAccrossDatabases)
Creates and sends a Z39.50 SortRequest, gets and processes the Z39.50 response |
BerString |
Request(int referenceId,
String resultSetName,
String sortResultSetName,
String[] sortKeys,
int[] sortOrder,
boolean fUseSortAttributes)
Creates a Z39.50 SortRequest. |
BerString |
Request(int referenceId,
String resultSetName,
String sortResultSetName,
String[] sortKeys,
int[] sortOrder,
boolean fUseSortAttributes,
boolean sortAccrossDatabases)
Creates a Z39.50 SortRequest. |
BerString |
Request(int referenceId,
String resultSetName,
String sortResultSetName,
String[] sortKeys,
int[] sortOrder,
boolean fUseSortAttributes,
boolean sortAccrossDatabases,
int extraLen,
int offset)
Creates a Z39.50 SortRequest. |
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 sortStatus
public int errorCode
public String errorMsg
public int requestLength
public int responseLength
Constructor Detail |
public Z39sort(Z39session z)
public Z39sort()
Method Detail |
public void doSort(int referenceId, String resultSetName, String sortResultSetName, String[] sortKeys, int[] sortOrder, boolean fUseSortAttributes, boolean sortAccrossDatabases) throws Exception, Diagnostic1
referenceId
- Will be returned on Response.resultSetName
- name of the resultSet to sortsortResultSetName
- name of the sorted resultSetsortKeys
- array of sort keyssortOrder
- array of the order to sort corresponding to the sort keysfUseSortAttributes
- flag to indicate how to build the sort request. true=request uses the sortAttributes encoding. see the Z39.50 specificationsortAccrossDatabases
- flag to indicate to tell the ZBase that
the results should be the sort of all the records from all the databases
in the group vs. having the sorts be within each db not merged together
where true indicates to sort accross database boundaries.public BerString Request(int referenceId, String resultSetName, String sortResultSetName, String[] sortKeys, int[] sortOrder, boolean fUseSortAttributes)
referenceId
- Will be returned on Response.resultSetName
- name of the resultSet to sortsortResultSetName
- name of the sorted resultSetsortKeys
- array of sort keyssortOrder
- array of the order to sort corresponding to the sort keysfUseSortAttributes
- flag to indicate how to build the sort request. true=request uses the sortAttributes encoding. see the Z39.50 specificationpublic BerString Request(int referenceId, String resultSetName, String sortResultSetName, String[] sortKeys, int[] sortOrder, boolean fUseSortAttributes, boolean sortAccrossDatabases)
referenceId
- Will be returned on Response.resultSetName
- name of the resultSet to sortsortResultSetName
- name of the sorted resultSetsortKeys
- array of sort keyssortOrder
- array of the order to sort corresponding to the sort keysfUseSortAttributes
- flag to indicate how to build the sort request. true=request uses the sortAttributes encoding. see the Z39.50 specificationsortAccrossDatabases
- flag to indicate to tell the ZBase that
the results should be the sort of all the records from all the databases
in the group vs. having the sorts be within each db not merged together
where true indicates to sort accross database boundaries.public BerString Request(int referenceId, String resultSetName, String sortResultSetName, String[] sortKeys, int[] sortOrder, boolean fUseSortAttributes, boolean sortAccrossDatabases, int extraLen, int offset)
referenceId
- Will be returned on Response.resultSetName
- name of the resultSet to sortsortResultSetName
- name of the sorted resultSetsortKeys
- array of sort keys up to 6sortOrder
- array of the order to sort corresponding to the sort keysfUseSortAttributes
- flag to indicate how to build the sort request. true=request uses the sortAttributes encoding. see the Z39.50 specificationsortAccrossDatabases
- flag to indicate to tell the ZBase that
the results should be the sort of all the records from all the databases
in the group vs. having the sorts be within each db not merged together
where true indicates to sort accross database boundaries.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 |