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

Method remove_index

tables/table.py:3941–3955  ·  view source on GitHub ↗

Remove the index associated with this column. This method does nothing if the column is not indexed. The removed index can be created again by calling the :meth:`Column.create_index` method.

(self)

Source from the content-addressed store, hash-verified

3939 self._do_reindex(dirty=True)
3940
3941 def remove_index(self) -> None:
3942 """Remove the index associated with this column.
3943
3944 This method does nothing if the column is not indexed. The removed
3945 index can be created again by calling the :meth:`Column.create_index`
3946 method.
3947
3948 """
3949 self._table_file._check_writable()
3950
3951 # Remove the index if existing.
3952 if self.is_indexed:
3953 index = self.index
3954 index._f_remove()
3955 self.table._set_column_indexing(self.pathname, False)
3956
3957 def close(self) -> None:
3958 """Close the column."""

Callers 5

test09a_removeIndexMethod · 0.80
test09b_removeIndexMethod · 0.80
test_createIndexMethod · 0.80
test13fMethod · 0.80

Calls 3

_check_writableMethod · 0.80
_set_column_indexingMethod · 0.80
_f_removeMethod · 0.45

Tested by 5

test09a_removeIndexMethod · 0.64
test09b_removeIndexMethod · 0.64
test_createIndexMethod · 0.64
test13fMethod · 0.64