riptable.rt_sort_cache

Classes

SortCache

Global sort cache for uid - unique ids which are often generated from GetTSC (CPU time stamp counter)

class riptable.rt_sort_cache.SortCache[source]

Bases: object

Global sort cache for uid - unique ids which are often generated from GetTSC (CPU time stamp counter)

to ensure that the values have not changed underneath, it performs a crc check and compares via the crc of a known sorted index array

_cache
_logging = False
classmethod get_sorted_row_index(uid, nrows, sortdict, ascending)[source]
classmethod invalidate(uid)[source]
classmethod invalidate_all()[source]
classmethod logging_off()[source]
classmethod logging_on()[source]
classmethod store_sort(uid, sortlist, sortidx, ascending)[source]

Restore a sort index from file.