|
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.db.SortKey
SortKey is the controlling class for building a sort key from a record. SortKey must be extended to actually get any data in a sort key.
Field Summary | |
protected boolean |
caseSensitive
boolean data type indicating whether the key should be case sensitive |
protected int |
dataLen
The number of bytes to get in the field. |
protected int |
dataOffset
The dataOffset for the key in the field. |
static String |
defaultFillkey
Default fill characters. |
String |
fillkey
String fillKey for records that don't contain the data specified sort key data. |
boolean |
isfill
boolean data type indicating whether the sortkey is all fill characters. |
protected Class |
keyClass
|
protected int |
keyLength
Length of a key field. |
protected boolean |
punctuationSensitive
boolean data type indicating whether the key should be punctuationSensitive; |
protected boolean |
reverse
Flag to sort in descending sequence. |
protected Sorts |
sort
Object describing available sorts |
protected String[] |
sortParms
the path paramaters for the sort. |
protected boolean |
stripArticles
Flag to strip articles from the front of a field |
Constructor Summary | |
SortKey(Sorts sort,
String[] keys,
int[] order)
Define a key for a sort by calling this. |
Method Summary | |
String |
getKey(DataDir record)
Builds a sort key from each of the components of the key. |
boolean |
isFill()
|
protected String |
normalizeKey(byte[] key,
int offset,
int length,
int maxlen)
Apply normalization rules to key. |
void |
setCaseSensitive(boolean caseSensitiveFlag)
Sets the sortkey case sensitive flag. |
void |
setPunctuationSensitive(boolean punctuationSensitiveFlag)
Sets the sortkey punctuation sensitive flag. |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected String[] sortParms
protected int keyLength
protected boolean reverse
protected boolean stripArticles
protected Sorts sort
protected int dataOffset
protected int dataLen
protected boolean caseSensitive
protected boolean punctuationSensitive
protected Class keyClass
public String fillkey
public boolean isfill
public static String defaultFillkey
Constructor Detail |
public SortKey(Sorts sort, String[] keys, int[] order) throws Diagnostic1
sort
- object describing available sortskeys
- description of keysorder
- order for sorting each keyMethod Detail |
public void setCaseSensitive(boolean caseSensitiveFlag)
caseSensitiveFlag
- true=caseSensitive/false=caseInsensitivepublic void setPunctuationSensitive(boolean punctuationSensitiveFlag)
punctuationSensitiveFlag
- true=punctuationSensitive /
false=punctuationInsensitivepublic String getKey(DataDir record)
record
- input recordpublic String toString()
public boolean isFill()
protected String normalizeKey(byte[] key, int offset, int length, int maxlen)
key
- byte array containing keyoffset
- of key in keylength
- of key in key
|
Open SiteSearch 4.1.1 Final |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |