MCPcopy Index your code
hub / github.com/PyTables/PyTables / _g_remove

Method _g_remove

tables/table.py:2889–2901  ·  view source on GitHub ↗
(self, recursive: bool = False, force: bool = False)

Source from the content-addressed store, hash-verified

2887 itgroup._g_move(newigroup, newiname)
2888
2889 def _g_remove(self, recursive: bool = False, force: bool = False) -> None:
2890 # Remove the associated index group (if any).
2891 itgpathname = _index_pathname_of(self)
2892 try:
2893 itgroup = self._v_file._get_node(itgpathname)
2894 except NoSuchNodeError:
2895 pass
2896 else:
2897 itgroup._f_remove(recursive=True)
2898 self.indexed = False # there are indexes no more
2899
2900 # Remove the leaf itself from the hierarchy.
2901 super()._g_remove(recursive, force)
2902
2903 def _set_column_indexing(self, colpathname: str, indexed: bool) -> None:
2904 """Mark the referred column as indexed or non-indexed."""

Callers

nothing calls this directly

Calls 3

_index_pathname_ofFunction · 0.85
_get_nodeMethod · 0.80
_f_removeMethod · 0.45

Tested by

no test coverage detected