Product Documentation

V9 Update Guide

Previous Topic

Next Topic

Retrieve a Field that Partially Matches a Key Segment

c-treeDB was previously able to find the matches between a key segment and a field only if the key segment started at the beginning of a field and exactly matched the entire field, as is required by FairCom DB SQL. It can be advantageous to retrieve a field on which the key segment starts at the beginning of a field, and does not exactly match the entire field. Partial field matching functions and methods have been added to c-treeDB to handle this.

c-treeDB C API Methods

  • ctdbGetSegmentPartialField() - retrieves a field object that matches a key, even if the segment does not match the entire field length.

c-treeDB C++ API

  • CTSegment::GetPartialField() - retrieves a field object that matches a key, even if the segment does not match the entire field length.
  • CTSegment::GetPartialFieldName() - retrieves the name of a field that matches a key segment, even if the segment does not match the entire field contents.

TOCIndex