Lines Matching refs:idx
59 $idx = ($wid < count($index)) ? $index[$wid] : '';
60 $index[$wid] = $this->updateTuple($idx, $pid, $freq);
992 * @param string $idx name of the index
998 protected function getIndex($idx, $suffix) argument
1001 $fn = $conf['indexdir'] . '/' . $idx . $suffix . '.idx';
1009 * @param string $idx name of the index
1016 protected function saveIndex($idx, $suffix, &$lines) argument
1019 $fn = $conf['indexdir'] . '/' . $idx . $suffix;
1035 * @param string $idx name of the index
1042 protected function getIndexKey($idx, $suffix, $id) argument
1045 $fn = $conf['indexdir'] . '/' . $idx . $suffix . '.idx';
1060 * @param string $idx name of the index
1068 protected function saveIndexKey($idx, $suffix, $id, $line) argument
1073 $fn = $conf['indexdir'] . '/' . $idx . $suffix;
1104 * @param string $idx name of the index
1111 protected function addIndexKey($idx, $suffix, $value) argument
1113 $index = $this->getIndex($idx, $suffix);
1118 if (!$this->saveIndex($idx, $suffix, $index)) {
1119 throw new \RuntimeException("Failed to write $idx index");
1154 $idx = [];
1160 $idx[] = $key;
1167 $idx[] = $length;
1170 return $idx;