The segment modes based on absolute field number, also known as schema fields, are the preferred modes for segment definition. The preferred segment modes are defined in the SEG_MODE enum:
You may OR in the mode SEG_MODE.DESCENDING_SEG to the segment mode to specify the descending sort order for a segment. You can also OR in the segment mode SEG_MODE.ALTSEG_SEG to specify an alternate collating sequence for the segment.
The use of the preferred segment modes makes the c-treeDB .NET table fully compatible with ISAM/Low Level applications and/or FairCom DB SQL applications.
Value |
Explanation |
---|---|
SCHSEG_SEG |
Absolute field number |
USCHSEG_SEG |
Absolute field number - uppercase |
VSCHSEG_SEG |
Absolute field number - pad strings |
UVSCHSEG_SEG |
Absolute field number - pad strings upper |
SCHSRL_SEG |
Absolute field number - auto increment |
DESCENDING_SEG |
Descending segment mode |
ALTSEG_SEG |
Alternative collating sequence |
ENDSEG_SEG |
END segment mode |
The other segment modes are kept for compatibility with existing FairCom DB applications. Advanced c-treeDB .NET functions like CTTable.Alter() may not work properly if the segment mode is not one of the preferred segment modes.
Value |
Explanation |
---|---|
REGSEG_SEG |
Absolute byte offset - No transformation |
INTSEG_SEG |
Absolute byte offset - unsigned int/long |
UREGSEG_SEG |
Absolute byte offset - uppercase |
SRLSEG_SEG |
Absolute byte offset - auto increment |
VARSEG_SEG |
Relative field number |
UVARSEG_SEG |
Relative field number - uppercase |
SGNSEG_SEG |
Absolute byte offset - signed int/long |
FLTSEG_SEG |
Absolute byte offset - float/double |
DECSEG_SEG |
Absolute byte offset - not yet implemented |
BCDSEG_SEG |
Absolute byte offset - not yet implemented |
DESCENDING_SEG |
Descending segment mode |
ALTSEG_SEG |
Alternative collating sequence |