Lines Matching full:key
8 * Tuples consist of a key (typically a RID from another Index) and a number (usually a count).
17 * @param int|string $key The foreign rid or identifier
22 public static function updateTuple(string $record, int|string $key, int $count): string argument
26 $record = preg_replace('/(^|:)' . preg_quote($key, '/') . '(\*\d+)?/', '', $record);
31 $tuple = ($count == 1) ? $key : "$key*$count";
44 * Tuples can be in format "key*count" or just "key" (implicit count of 1)
57 [/* $key */, $cnt] = explode('*', $tuple);
70 * The given key of the given $filtermap defines which tuples to extract, the value
77 * Tuples can be in format "key*count" or just "key" (implicit count of 1)
80 * @param array|null $filtermap Associative array of ($key => $mapping), null for all tuples
93 // Handle both "key*count" and "key" formats
95 [$key, $cnt] = explode('*', $tuple);
99 $key = $tuple;
104 if (!isset($filtermap[$key])) continue;
105 $mapped = $filtermap[$key];
107 $mapped = $key;