Relation.index

Warning g_relation_index has been deprecated since version 2.26 and should not be used in newly-written code. Rarely used API Creates an index on the given field. Note that this must be called before any records are added to the GRelation.

class Relation
void
index

Parameters

field int

the field to index, counting from 0.

hashFunc GHashFunc

a function to produce a hash value from the field data.

keyEqualFunc GEqualFunc

a function to compare two values of the given field.

Meta