Interstage Shunsaku Data Manager Application Development Guide - Microsoft(R) Windows(R) 2000/ Microsoft(R) Windows Server(TM) 2003 - - UNIX - |
Contents
Index
![]() ![]() |
Appendix C Allowable Values |
The following table lists the allowable values associated with aggregation requests.
Item |
Allowable value |
Remarks |
---|---|---|
Maximum number of keys that can be specified |
8 |
- |
Sort expression |
From 1 to 65, 535 bytes (excluding \0) |
- |
Total length of group keys |
1 to 2,000 bytes |
The total group key length is the total length of all the group keys in key specifications. |
Number of characters returned when the rlen function is used in key specifications |
1 to 128 |
The length of the character string resulting from the rlen function is shown in the table entitled "Relationship between character code and the length of the string resulting from the rlen function". |
Number of items that can be returned |
100 to 1,000 records |
When the total length of group keys is 200 bytes or less, the records corresponding to the top 1,000 groups can be returned. |
The total group key length is the total length of all the group keys in key specifications. The length of each key is determined by the key specification format, as shown in the following table.
Key specification format |
Length of group key |
Remarks |
---|---|---|
val function |
16 bytes |
- |
Text format |
20 bytes |
The first 20 bytes are grouped as the key. To group using a string that is longer than 20 bytes, specify the rlen function as the key specification of the sort expression. By specifying the rlen function, it becomes possible to perform grouping using up to 128 characters as a key. |
rlen function |
The length of the character string resulting from the rlen function is shown in the table entitled 'Relationship between character code and the length of the string resulting from the rlen function'. |
- |
The character code of the director data determines the byte length of each character of the character string produced by the rlen function, as shown below.
Character code |
No. of bytes per character |
Example |
---|---|---|
UTF-8 |
4 bytes |
rlen(/root/name/text(),50) would be treated as 200 bytes. |
GB18030 |
||
SHIFT-JIS |
2 bytes |
rlen(/root/name/text(),50) would be treated as 100 bytes. |
GB2312 |
||
big5 |
||
KSC5601 |
||
EUC |
3 bytes |
rlen(/root/name/text(),50) would be treated as 150 bytes. |
The following table shows how the total group key length affects the number of groups that Shunsaku can return.
Group key length (bytes) |
Number of groups that can be returned |
---|---|
1 to 200 |
1,000 |
201 to 300 |
700 |
301 to 400 |
500 |
401 to 500 |
400 |
501 to 700 |
300 |
701 to 1,000 |
200 |
1,001 to 2,000 |
100 |
Contents
Index
![]() ![]() |