Product Documentation

c-treeDB API for C++ - Developers Guide

Previous Topic

Next Topic

CTIndex::InsertSegment

Syntax

CTSegment InsertSegment(NINT BeforeSegment, const CTField& Field,

CTSEG_MODE SegMode)

CTSegment InsertSegment(NINT BeforeSegment, NINT offset, NINT length,

CTSEG_MODE SegMode)

Parameters

  • BeforeSegment [in] Insert the new segment before this segment.
  • Field [in] The segment object to be inserted.
  • SegMode [in] The field segment mode. The valid values for the segment mode are shown in "c-treeDB definitions".
  • offset [in] The segment offset to be inserted.
  • length [in] The segment length to be inserted.

Description

Inserts a new segment to the index, in a specified position.

Return

Returns a segment object

See also

AddSegment(), DelSegment(), GetSegmentCount()

TOCIndex