Mp utils
tablite.mp_utils
Attributes
tablite.mp_utils.lookup_ops = {'in': _in, 'not in': not_in, '<': operator.lt, '<=': operator.le, '>': operator.gt, '>=': operator.ge, '!=': operator.ne, '==': operator.eq}
module-attribute
tablite.mp_utils.filter_ops = {'>': operator.gt, '>=': operator.ge, '==': operator.eq, '<': operator.lt, '<=': operator.le, '!=': operator.ne, 'in': _in}
module-attribute
tablite.mp_utils.filter_ops_from_text = {'gt': '>', 'gteq': '>=', 'eq': '==', 'lt': '<', 'lteq': '<=', 'neq': '!=', 'in': _in}
module-attribute
Classes
Functions
tablite.mp_utils.not_in(a, b)
Source code in tablite/mp_utils.py
9 10 |
|
tablite.mp_utils.is_mp(fields: int) -> bool
PARAMETER | DESCRIPTION |
---|---|
fields |
number of fields
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
bool
|
bool |
Source code in tablite/mp_utils.py
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
|
tablite.mp_utils.select_processing_method(fields, sp, mp)
PARAMETER | DESCRIPTION |
---|---|
fields |
number of fields
TYPE:
|
sp |
method for single processing
TYPE:
|
mp |
method for multiprocessing
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
_type_
|
description |
Source code in tablite/mp_utils.py
69 70 71 72 73 74 75 76 77 78 79 80 |
|
tablite.mp_utils.maskify(arr)
Source code in tablite/mp_utils.py
82 83 84 85 86 87 88 89 90 |
|
tablite.mp_utils.share_mem(inp_arr, dtype)
Source code in tablite/mp_utils.py
93 94 95 96 97 98 99 100 101 102 |
|
tablite.mp_utils.map_task(data_shm_name, index_shm_name, destination_shm_name, shape, dtype, start, end)
Source code in tablite/mp_utils.py
105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 |
|
tablite.mp_utils.reindex_task(src, dst, index_shm, shm_shape, start, end)
Source code in tablite/mp_utils.py
123 124 125 126 127 128 129 130 131 132 |
|