1 from collections
import namedtuple
4 OutputBufferSizeTypes =
'''
5 kConstant, kUserSpecifiedConstantParameter, kUserSpecifiedRowMultiplier,
6 kTableFunctionSpecifiedParameter, kPreFlightParameter
9 SupportedAnnotations =
'''
10 input_id, name, fields, require, range, default
14 SupportedFunctionAnnotations =
'''
15 filter_table_function_transpose, uses_manager
20 PreFlight=
'kPreFlightParameter',
21 ConstantParameter=
'kUserSpecifiedConstantParameter',
22 RowMultiplier=
'kUserSpecifiedRowMultiplier',
23 UserSpecifiedConstantParameter=
'kUserSpecifiedConstantParameter',
24 UserSpecifiedRowMultiplier=
'kUserSpecifiedRowMultiplier',
25 TableFunctionSpecifiedParameter=
'kTableFunctionSpecifiedParameter',
30 for t
in [
'Int8',
'Int16',
'Int32',
'Int64',
'Float',
'Double',
'Bool',
31 'TextEncodingDict',
'TextEncodingNone']:
32 translate_map[t.lower()] = t
33 if t.startswith(
'Int'):
34 translate_map[t.lower() +
'_t'] = t
37 Signature = namedtuple(
'Signature', [
'name',
'inputs',
'outputs',
38 'input_annotations',
'output_annotations',
39 'function_annotations',
'sizer'])
48 for i, c
in enumerate(line):
53 elif d == 0
and c ==
',':