Create a completely sorted index (CSI) for this column. This method guarantees the creation of an index with zero entropy, that is, a completely sorted index (CSI) -- provided that the number of rows in the table does not exceed the 2**48 figure (that is more than 100
(
self,
filters: Filters | None = None,
tmp_dir: str | None = None,
_blocksizes: tuple[int, int, int, int] | None = None,
_testmode: bool = False,
_verbose: bool = False,
)
| 3854 | return SizeType(idxrows) |
| 3855 | |
| 3856 | def create_csindex( |
| 3857 | self, |
| 3858 | filters: Filters | None = None, |
| 3859 | tmp_dir: str | None = None, |
| 3860 | _blocksizes: tuple[int, int, int, int] | None = None, |
| 3861 | _testmode: bool = False, |
| 3862 | _verbose: bool = False, |
| 3863 | ) -> int: |
| 3864 | """Create a completely sorted index (CSI) for this column. |
| 3865 | |
| 3866 | This method guarantees the creation of an index with zero entropy, that |
| 3867 | is, a completely sorted index (CSI) -- provided that the number of rows |
| 3868 | in the table does not exceed the 2**48 figure (that is more than 100 |
| 3869 | trillions of rows). A CSI index is needed for some table methods (like |
| 3870 | :meth:`Table.itersorted` or :meth:`Table.read_sorted`) in order to |
| 3871 | ensure completely sorted results. |
| 3872 | |
| 3873 | For the meaning of filters and tmp_dir arguments see |
| 3874 | :meth:`Column.create_index`. |
| 3875 | |
| 3876 | Notes |
| 3877 | ----- |
| 3878 | This method is equivalent to |
| 3879 | Column.create_index(optlevel=9, kind='full', ...). |
| 3880 | |
| 3881 | """ |
| 3882 | return self.create_index( |
| 3883 | kind="full", |
| 3884 | optlevel=9, |
| 3885 | filters=filters, |
| 3886 | tmp_dir=tmp_dir, |
| 3887 | _blocksizes=_blocksizes, |
| 3888 | _testmode=_testmode, |
| 3889 | _verbose=_verbose, |
| 3890 | ) |
| 3891 | |
| 3892 | def _do_reindex(self, dirty: bool) -> int: |
| 3893 | """Execute common code for reindex() and reindex_dirty() codes.""" |