in metropolis/metropolis.py [0:0]
def getind(self, table_name: str, token: str) -> int:
"""This returns the index of the record in a table in constant runtime.
Args:
table_name: Table name.
token: Token of the record.
Returns:
The index of the record in table, table is an array.
"""
return self._token2ind[table_name][token]