(
self,
parentnode: Group,
name: str,
description: (
dict | type[IsDescription] | Description | npt.DTypeLike | None
) = None,
title: str = "",
filters: Filters | None = None,
expectedrows: int | None = None,
chunkshape: int | tuple[int] | None = None,
byteorder: Literal["little", "big", None] = None,
_log: bool = True,
track_times: bool = True,
)
| 689 | return self._condition_cache._nailcount > 0 |
| 690 | |
| 691 | def __init__( |
| 692 | self, |
| 693 | parentnode: Group, |
| 694 | name: str, |
| 695 | description: ( |
| 696 | dict | type[IsDescription] | Description | npt.DTypeLike | None |
| 697 | ) = None, |
| 698 | title: str = "", |
| 699 | filters: Filters | None = None, |
| 700 | expectedrows: int | None = None, |
| 701 | chunkshape: int | tuple[int] | None = None, |
| 702 | byteorder: Literal["little", "big", None] = None, |
| 703 | _log: bool = True, |
| 704 | track_times: bool = True, |
| 705 | ) -> None: |
| 706 | |
| 707 | self._v_new = new = description is not None |
| 708 | """Is this the first time the node has been created?""" |
| 709 | self._v_new_title = title |
| 710 | """New title for this node.""" |
| 711 | self._v_new_filters = filters |
| 712 | """New filter properties for this node.""" |
| 713 | self.extdim = 0 # Tables only have one dimension currently |
| 714 | """The index of the enlargeable dimension (always 0 for tables).""" |
| 715 | self._v_recarray = None |
| 716 | """A structured array to be stored in the table.""" |
| 717 | self._rabyteorder: str | None = None |
| 718 | """The computed byteorder of the self._v_recarray.""" |
| 719 | if expectedrows is None: |
| 720 | expectedrows = parentnode._v_file.params["EXPECTED_ROWS_TABLE"] |
| 721 | self._v_expectedrows: int = expectedrows |
| 722 | """The expected number of rows to be stored in the table.""" |
| 723 | self.nrows = SizeType(0) |
| 724 | """The current number of rows in the table.""" |
| 725 | self.description: Description | None = None |
| 726 | """A Description instance (see :ref:`DescriptionClassDescr`) |
| 727 | reflecting the structure of the table.""" |
| 728 | self._time64colnames: list[str] = [] |
| 729 | """The names of ``Time64`` columns.""" |
| 730 | self._strcolnames: list[str] = [] |
| 731 | """The names of ``String`` columns.""" |
| 732 | self._colenums: dict[str, Enum] = {} |
| 733 | """Maps the name of an enumerated column to its ``Enum`` instance.""" |
| 734 | self._v_chunkshape: tuple[int] | None = None |
| 735 | """Private storage for the `chunkshape` property of the leaf.""" |
| 736 | |
| 737 | self.indexed = False |
| 738 | """Does this table have any indexed columns?""" |
| 739 | self._indexedrows = 0 |
| 740 | """Number of rows indexed in disk.""" |
| 741 | self._unsaved_indexedrows = 0 |
| 742 | """Number of rows indexed in memory but still not in disk.""" |
| 743 | self._listoldindexes: list[str] = [] |
| 744 | """The list of columns with old indexes.""" |
| 745 | self._autoindex: bool | None = None |
| 746 | """Private variable that caches the value for autoindex.""" |
| 747 | |
| 748 | self.colnames: list[str] = [] |
nothing calls this directly
no test coverage detected