Open SiteSearch 4.1.1
Final

ORG.oclc.db
Class FieldKey

java.lang.Object
  |
  +--ORG.oclc.db.SortKey
        |
        +--ORG.oclc.db.FieldKey

public class FieldKey
extends SortKey

FieldKey is a class for building a sortkey. It constructs a key from the field identified by a tagpath. It builds the key from precisely the fields listed. If the tagpath doesn ot contain a primitive data level, all primitive data levels are used.


Fields inherited from class ORG.oclc.db.SortKey
caseSensitive, dataLen, dataOffset, defaultFillkey, fillkey, isfill, keyClass, keyLength, punctuationSensitive, reverse, sort, sortParms, stripArticles
 
Method Summary
 String getKey(DataDir record)
          Build a key.
 
Methods inherited from class ORG.oclc.db.SortKey
isFill, normalizeKey, setCaseSensitive, setPunctuationSensitive, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getKey

public String getKey(DataDir record)
Build a key.

Get all tagpaths from the record that match TagPath Concatenate the data from the primitive fields into a key. All the primitive fields must come from the same parent. Normalize the key and it's done.

Parameters:
record - input record
Returns:
key
Overrides:
getKey in class SortKey

Open SiteSearch 4.1.1
Final