zcollection.indexing.abc.Indexer._table_2_indexer#

Indexer._table_2_indexer(table, only_partition_keys)[source]#

Convert a table to an indexer.

Parameters:
  • table (Table) – The table to convert.

  • only_partition_keys (bool) – If True, only the partition keys are kept.

Returns:

The indexer.

Return type:

Iterable[Tuple[Tuple[Tuple[str, int], …], slice]]