4 #include <itemkeyfun.h>
7 * A tuple is an array of void*
12 * A tupleschema record declares the itemkeyfun functions for tuple
13 * items together with applicable arity and domain combinations. The
14 * macro \ref TUPLEITEMINIT may be used to initialize particular
15 * tupleschema records, which each become tupleitem declaration for
16 * its particular arity and parts declarations
20 * These are the itemkeyfun callback functions to support
21 * hashvector use for tuple items. The functions expects their
22 * itemkeyfun pointer to be within a tupleschema record so as to
23 * provide the handling of the tuple columns.
28 * This is the number of columns in a tuple.
33 * This points to an array of pointers to the tuple item domains
34 * as represented by their associated itemkeyfun records.
40 * Create a tuples with given values.
42 extern tuple *tuple_create(int arity,...);
45 * Create a tuples with given values.
47 extern tupleschema *tupleschema_create(int arity,tuple *columns);
50 * Copy the given tupleschema into a new tupleschema with some columns
51 * masked. This represents a sub-index type using the unmasked columns
54 extern tupleschema *tupleschema_mask(tupleschema *schema,...);
57 * The TUPLEITEMINIT macro is used for initializing a tupleschema
58 * record appropriately for a given arity and corresponding sequence
59 * of parts itemkeyfun pointers.
61 #define TUPLEITEMINIT(arity, ... ) { \
63 .hashcode = tupleitem_hashcode, \
64 .haskey = tupleitem_haskey, \
65 .itemkey = tupleitem_itemkey, \
66 .releasekey = tupleitem_releasekey \
69 .schema = { __VA_ARGS__ } \