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

Method index_col

bench/pytables_backend.py:83–94  ·  view source on GitHub ↗
(self, con, column, kind, optlevel, verbose)

Source from the content-addressed store, hash-verified

81 table.flush()
82
83 def index_col(self, con, column, kind, optlevel, verbose):
84 col = getattr(con.root.table.cols, column)
85 tmp_dir = self.datadir / "scratch2"
86 tmp_dir.mkdir(parents=True, exist_ok=True)
87 col.create_index(
88 kind=kind,
89 optlevel=optlevel,
90 filters=self.filters,
91 tmp_dir=tmp_dir,
92 _verbose=verbose,
93 _blocksizes=None,
94 )
95
96 # _blocksizes=(2**27, 2**22, 2**15, 2**7))
97 # _blocksizes=(2**27, 2**22, 2**14, 2**6))

Callers 1

index_dbMethod · 0.45

Calls 1

create_indexMethod · 0.80

Tested by

no test coverage detected