Lines Matching refs:_index
65 self._index = None # maps keys to (pos, siz) pairs
78 self._index = {}
87 self._index[key] = pos_and_siz_pair
97 if self._index is None:
112 for key, pos_and_siz_pair in self._index.iteritems():
119 pos, siz = self._index[key] # may raise KeyError
156 self._index[key] = pos_and_siz_pair
165 if key not in self._index:
170 pos, siz = self._index[key]
174 self._index[key] = self._setval(pos, val)
179 self._index[key] = self._addval(val)
181 # Note that _index may be out of synch with the directory
191 del self._index[key]
199 return self._index.keys()
202 return key in self._index
205 return key in self._index
208 return self._index.iterkeys()
212 return len(self._index)
216 self._index = self._datfile = self._dirfile = self._bakfile = None