Open SiteSearch 4.1.1
Final

ORG.oclc.zsorts
Class Marc008DateKey

java.lang.Object
  |
  +--ORG.oclc.zsorts.Marc008DateKey

public class Marc008DateKey
extends Object
implements IDbSortKey

Marc008DateKey is a class for building a sortkey for the the date in the 008 field. When the character in byte 6 of the 008 field is equal to 'r', the 008 date2 value is used; otherwise, the 008 date1 value is used.


Constructor Summary
Marc008DateKey()
           
 
Method Summary
 String getKey(DataDir record, String[] sortParms, int inputDataCharacterset, int keyDataLen)
          Builds a sortkey String from the input record, list of fields, input data characterset, and maximum datalength for the key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Marc008DateKey

public Marc008DateKey()
Method Detail

getKey

public String getKey(DataDir record,
                     String[] sortParms,
                     int inputDataCharacterset,
                     int keyDataLen)
Builds a sortkey String from the input record, list of fields, input data characterset, and maximum datalength for the key.

Specified by:
getKey in interface IDbSortKey
Parameters:
record - input record
sortParms - String array defining the list of fields in the record to build the key from.
inputDataCharacterset - the characterset of the input data (ASCII or EBCDIC)
keyDataLen - the maximum length of the sort key
Returns:
String

Open SiteSearch 4.1.1
Final