MCPcopy Create free account
hub / github.com/PyTables/PyTables / reindex

Method reindex

tables/table.py:2957–2965  ·  view source on GitHub ↗

Recompute all the existing indexes in the table. This can be useful when you suspect that, for any reason, the index information for columns is no longer valid and want to rebuild the indexes on it.

(self)

Source from the content-addressed store, hash-verified

2955 return SizeType(indexedrows)
2956
2957 def reindex(self) -> None:
2958 """Recompute all the existing indexes in the table.
2959
2960 This can be useful when you suspect that, for any reason, the
2961 index information for columns is no longer valid and want to
2962 rebuild the indexes on it.
2963
2964 """
2965 self._do_reindex(dirty=False)
2966
2967 def reindex_dirty(self) -> None:
2968 """Recompute the existing indexes in table, *if* they are dirty.

Callers 1

test_reindexMethod · 0.45

Calls 1

_do_reindexMethod · 0.95

Tested by 1

test_reindexMethod · 0.36