Пример #1
0
     pckg.parameter_declaration(identifier=PARA_COLUMNS,
                                name='Columns',
                                data_type=pckg.DT_LIST,
                                index=1),
     pckg.parameter_declaration(identifier=PARA_COLUMNS_COLUMN,
                                name='Column',
                                data_type=pckg.DT_COLUMN_ID,
                                index=2,
                                parent=PARA_COLUMNS),
     pckg.parameter_declaration(identifier=PARA_COLUMNS_ORDER,
                                name='Order',
                                data_type=pckg.DT_STRING,
                                index=3,
                                values=[
                                    pckg.enum_value(
                                        value=SORT_ASC,
                                        text='A -> Z',
                                        is_default=True),
                                    pckg.enum_value(value=SORT_DESC,
                                                    text='Z -> A')
                                ],
                                parent=PARA_COLUMNS,
                                required=True)
 ],
 format=[
     pckg.constant_format('SORT'),
     pckg.variable_format(pckg.PARA_DATASET),
     pckg.constant_format('BY'),
     pckg.group_format(
         PARA_COLUMNS,
         format=[
             pckg.variable_format(PARA_COLUMNS_COLUMN),
Пример #2
0
         required=False
     ),
     pckg.parameter_declaration(
         identifier=PARA_STATE,
         name='State',
         data_type=pckg.DT_COLUMN_ID,
         index=4,
         required=False
     ),
      pckg.parameter_declaration(
         identifier=PARA_GEOCODER,
         name='Geocoder',
         data_type=pckg.DT_STRING,
         index=5,
         values=[
             pckg.enum_value(value='GOOGLE', is_default=True),
             pckg.enum_value(value='OSM')
         ]
     ),
     para_materialize_input(6)
 ],
 format=[
     pckg.constant_format('GEOCODE'),
     pckg.variable_format(pckg.PARA_DATASET),
     pckg.constant_format('COLUMNS'),
     pckg.optional_format(PARA_HOUSE_NUMBER, prefix='HOUSE_NUMBER='),
     pckg.optional_format(PARA_STREET, prefix='STREET='),
     pckg.optional_format(PARA_CITY, prefix='CITY='),
     pckg.optional_format(PARA_STATE, prefix='STATE='),
     pckg.constant_format('USING'),
     pckg.variable_format(PARA_GEOCODER)
Пример #3
0
 parameters=[
     pckg.parameter_declaration(identifier=pckg.PARA_NAME,
                                name='Dataset Name',
                                data_type=pckg.DT_STRING,
                                index=0),
     pckg.parameter_declaration(identifier=PARA_FILE,
                                name='Source File',
                                data_type=pckg.DT_FILE_ID,
                                index=1),
     pckg.parameter_declaration(
         PARA_LOAD_FORMAT,
         name='Load Format',
         data_type=pckg.DT_STRING,
         values=[
             pckg.enum_value(value='csv',
                             text='CSV',
                             is_default=True),
             pckg.enum_value(value='json', text='JSON'),
             pckg.enum_value(
                 value='mimir.exec.spark.datasource.pdf',
                 text='PDF'),
             pckg.enum_value(
                 value=
                 'mimir.exec.spark.datasource.google.spreadsheet',
                 text='Google Sheet'),
             pckg.enum_value(value='com.databricks.spark.xml',
                             text='XML'),
             pckg.enum_value(value='com.crealytics.spark.excel',
                             text='Excel'),
             pckg.enum_value(value='jdbc', text='JDBC Source'),
             pckg.enum_value(value='text', text='Text'),
Пример #4
0
                                name='Range',
                                data_type=pckg.DT_STRING,
                                index=8,
                                parent=PARA_XAXIS,
                                required=False),
     pckg.parameter_declaration(identifier=PARA_CHART,
                                name='Chart',
                                data_type=pckg.DT_RECORD,
                                index=9),
     pckg.parameter_declaration(
         identifier=PARA_CHART_TYPE,
         name='Type',
         data_type=pckg.DT_STRING,
         index=10,
         values=[
             pckg.enum_value(value='Area Chart'),
             pckg.enum_value(value='Bar Chart', is_default=True),
             pckg.enum_value(value='Line Chart'),
             pckg.enum_value(value='Scatter Plot')
         ],
         parent=PARA_CHART),
     pckg.parameter_declaration(identifier=PARA_CHART_GROUPED,
                                name='Grouped',
                                data_type=pckg.DT_BOOL,
                                index=11,
                                parent=PARA_CHART)
 ],
 format=[
     pckg.constant_format('CREATE'),
     pckg.constant_format('PLOT'),
     pckg.variable_format(pckg.PARA_NAME),
Пример #5
0
                                name='City',
                                data_type=pckg.DT_COLUMN_ID,
                                index=3,
                                required=False),
     pckg.parameter_declaration(identifier=PARA_STATE,
                                name='State',
                                data_type=pckg.DT_COLUMN_ID,
                                index=4,
                                required=False),
     pckg.parameter_declaration(identifier=PARA_GEOCODER,
                                name='Geocoder',
                                data_type=pckg.DT_STRING,
                                index=5,
                                values=[
                                    pckg.enum_value(
                                        value='GOOGLE',
                                        is_default=True),
                                    pckg.enum_value(value='OSM')
                                ]),
     para_materialize_input(6)
 ],
 format=[
     pckg.constant_format('GEOCODE'),
     pckg.variable_format(pckg.PARA_DATASET),
     pckg.constant_format('COLUMNS'),
     pckg.optional_format(PARA_HOUSE_NUMBER,
                          prefix='HOUSE_NUMBER='),
     pckg.optional_format(PARA_STREET, prefix='STREET='),
     pckg.optional_format(PARA_CITY, prefix='CITY='),
     pckg.optional_format(PARA_STATE, prefix='STATE='),
     pckg.constant_format('USING'),
Пример #6
0
 parameters=[
     pckg.parameter_declaration(identifier=pckg.PARA_NAME,
                                name='Dataset Name',
                                data_type=pckg.DT_STRING,
                                index=0),
     pckg.parameter_declaration(identifier=PARA_FILE,
                                name='Source File',
                                data_type=pckg.DT_FILE_ID,
                                index=1),
     pckg.parameter_declaration(
         PARA_LOAD_FORMAT,
         name='Load Format',
         data_type=pckg.DT_STRING,
         values=[
             pckg.enum_value(value='csv',
                             text='CSV',
                             is_default=True),
             pckg.enum_value(value='json', text='JSON'),
             pckg.enum_value(
                 value='mimir.exec.spark.datasource.pdf',
                 text='PDF'),
             pckg.enum_value(
                 value=
                 'mimir.exec.spark.datasource.google.spreadsheet',
                 text='Google Sheet'),
             pckg.enum_value(value='com.databricks.spark.xml',
                             text='XML'),
             pckg.enum_value(value='com.crealytics.spark.excel',
                             text='Excel'),
             pckg.enum_value(value='jdbc', text='JDBC Source'),
             pckg.enum_value(value='text', text='Text'),