Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbGetTableKSeg

Retrieves the current table-wide extended key segment definition.

DECLARATION

CTDBRET ctdbGetTableKSeg(CTHANDLE Handle, pctKSEGDEF pKSeg);

DESCRIPTION

ctdbGetTableKSeg() retrieves the current table-wide extended key segment definition. Handle must be a c-treeDB API table handle and pKSeg is a pointer to an extended key segment definition structure which will receive the definition.

Note: The kseg_type member of the extended key segment definition structure must be set on input to the type of segment to be retrieved.

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 = ctdbGetTableKSeg(hTable, &kseg)) != CTDBRET_OK)

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

SEE ALSO

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

TOCIndex