Product Documentation

c-treeDB API for C++ - Developers Guide

Previous Topic

Next Topic

CTIndex::AddSegment

Syntax

CTSegment AddSegment(const CTField& pField, CTSEG_MODE SegMode)

CTSegment AddSegment(NINT offset, NINT length, CTSEG_MODE SegMode)

Parameters

  • pField [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

Adds a new segment to the index at the end of the index.

Return

Returns a segment object

See also

InsertSegment(), DelSegment(), GetSegmentCount()

TOCIndex