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

Method index

tables/table.py:3569–3583  ·  view source on GitHub ↗

Return the Index instance associated with this column. Return `None` if the column is not indexed. See :ref:`IndexClassDescr`.

(self)

Source from the content-addressed store, hash-verified

3567
3568 @property
3569 def index(self) -> Index | None:
3570 """Return the Index instance associated with this column.
3571
3572 Return `None` if the column is not indexed.
3573
3574 See :ref:`IndexClassDescr`.
3575 """
3576 index_path = _index_pathname_of_column_(
3577 self._table_path, self.pathname
3578 )
3579 try:
3580 index = self._table_file._get_node(index_path)
3581 except NodeError:
3582 index = None # The column is not indexed
3583 return index
3584
3585 @lazyattr
3586 def _itemtype(self) -> np.dtype:

Callers 15

__repr__Method · 0.80
_packMethod · 0.80
__getitem__Method · 0.80
_g_createMethod · 0.80
__getitem__Method · 0.80
__setitem__Method · 0.80
__getitem__Method · 0.80
__setitem__Method · 0.80
__getitem__Method · 0.80
__setitem__Method · 0.80
_g_unrefnodeMethod · 0.80
__getitem__Method · 0.80

Calls 2

_get_nodeMethod · 0.80

Tested by

no test coverage detected