CTTable::AddSegment
Syntax
CTSegment AddSegment(const CTIndex& pIndex, const CTField& pField,
CTSEG_MODE SegMode)
CTSegment AddSegment(const CTIndex& pIndex, const CTString& FieldName,
CTSEG_MODE SegMode)
CTSegment AddSegment(const CTIndex& pIndex, NINT FieldNumber,
CTSEG_MODE SegMode)
CTSegment AddSegment(const CTIndex& pIndex, NINT offset, NINT Length,
CTSEG_MODE SegMode)
CTSegment AddSegment(NINT IndexNbr, NINT FieldNbr, CTSEG_MODE SegMode)
CTSegment AddSegment(NINT IndexNbr, const CTString& FieldName,
CTSEG_MODE SegMode)
CTSegment AddSegment(NINT IndexNbr, const CTField& pField, CTSEG_MODE SegMode)
CTSegment AddSegment(const CTString& IndexName, const CTString& FieldName,
CTSEG_MODE SegMode)
CTSegment AddSegment(const CTString& IndexName, NINT FieldNumber,
CTSEG_MODE SegMode)
CTSegment AddSegment(const CTString& IndexName, const CTField& pField,
CTSEG_MODE SegMode)
Parameters
Description
Adds a new segment to an index.
It is strongly recommended that the CTSegment::AddSegment(const CTIndex& pIndex, NINT offset, NINT Length, CTSEG_MODE SegMode) implementation is not used, with considerable advantages for the use of the other implementations. The use of the extended segments (based on the segment offset), as needed in this implementation, may prevent the use of advanced c-treeDB functions like CTTable::Alter(). If, for any reason, it is mandatory to use this implementation, try to adapt the example presented in the description of the ctdbAddSegmentEx() function.
Return
AddSegment() returns a segment object.
See also
InsertSegment(), DelSegment()