Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbGetSegmentKSeg

Retrieves the segment extended key definition.

DECLARATION

CTDBRET ctdbGetSegmentKSeg(CTHANDLE Handle, pctKSEGDEF pKSeg);

DESCRIPTION

ctdbGetSegmentKSeg() retrieves the current extended key segment definition.

  • Handle must be a segment handle.
  • pKSeg is a pointer to an extended key segment definition structure which will receive the definition.

RETURN

Value

Symbolic Constant

Explanation

0

CTDBRET_OK

No error occurred.

4096

CTDBRET_NOTFOUND

Not found.

See Appendix A for a complete listing of valid c-tree Plus error values.

EXAMPLE

ctKSEGDEF kseg;


if ((eRet = ctdbGetSegmentKSeg(hTable, &kseg)) != CTDBRET_OK)

printf("ctdbGetSegmentKSeg failed with error %d\n", eRet);

SEE ALSO

ctdbSetTableKSeg(), ctdbGetTableKSeg(), ctdbSetIndexKSeg(), ctdbGetIndexKSeg(), ctdbSetSegmentKSeg(), ctdbSetKSegDefaults()

TOCIndex