def _generateEncoderChoicesV1(fieldInfo):
width = <NUM_LIT:7><EOL>fieldName = fieldInfo['<STR_LIT>']<EOL>fieldType = fieldInfo['<STR_LIT>']<EOL>encoderChoicesList = []<EOL>if fieldType in ['<STR_LIT:float>', '<STR_LIT:int>']:<EOL><INDENT>aggFunction = '<STR_LIT>'<EOL>encoders = [None]<EOL>for n in (<NUM_LIT>, <NUM_LIT:50>, <NUM_LIT>, <NUM_LIT>):<EOL><INDENT>encoder = dict(type='<STR_LIT>', name=fieldName, fieldname=fieldName,<EOL>n=n, w=width, clipInput=True,space="<STR_LIT>")<EOL>if '<STR_LIT>' in fieldInfo:<EOL><INDENT>encoder['<STR_LIT>'] = fieldInfo['<STR_LIT>']<EOL><DEDENT>if '<STR_LIT>' in fieldInfo:<EOL><INDENT>encoder['<STR_LIT>'] = fieldInfo['<STR_LIT>']<EOL><DEDENT>encoders.append(encoder)<EOL><DEDENT>encoderChoicesList.append(encoders)<EOL><DEDENT>elif fieldType == '<STR_LIT:string>':<EOL><INDENT>aggFunction = '<STR_LIT>'<EOL>encoders = [None]<EOL>encoder = dict(type='<STR_LIT>', name=fieldName,<EOL>fieldname=fieldName, n=<NUM_LIT:100>, w=width)<EOL>encoders.append(encoder)<EOL>encoderChoicesList.append(encoders)<EOL><DEDENT>elif fieldType == '<STR_LIT>':<EOL><INDENT>aggFunction = '<STR_LIT>'<EOL>encoders = [None]<EOL>for radius in (<NUM_LIT:1>, <NUM_LIT:8>):<EOL><INDENT>encoder = dict(type='<STR_LIT>', name='<STR_LIT>' % (fieldName),<EOL>fieldname=fieldName, timeOfDay=(width, radius))<EOL>encoders.append(encoder)<EOL><DEDENT>encoderChoicesList.append(encoders)<EOL>encoders = [None]<EOL>for radius in (<NUM_LIT:1>, <NUM_LIT:3>):<EOL><INDENT>encoder = dict(type='<STR_LIT>', name='<STR_LIT>' % (fieldName),<EOL>fieldname=fieldName, dayOfWeek=(width, radius))<EOL>encoders.append(encoder)<EOL><DEDENT>encoderChoicesList.append(encoders)<EOL><DEDENT>else:<EOL><INDENT>raise RuntimeError("<STR_LIT>" % (fieldType))<EOL><DEDENT>return (encoderChoicesList, aggFunction)<EOL>
Return a list of possible encoder parameter combinations for the given
    field and the default aggregation function to use. Each parameter combination
    is a dict defining the parameters for the encoder. Here is an example
    return value for the encoderChoicesList:

     [
       None,
       {'fieldname':'timestamp',
        'name': 'timestamp_timeOfDay',
        'type':'DateEncoder'
        'dayOfWeek': (7,1)
        },
       {'fieldname':'timestamp',
        'name': 'timestamp_timeOfDay',
        'type':'DateEncoder'
        'dayOfWeek': (7,3)
        },
    ],

    Parameters:
    --------------------------------------------------
    fieldInfo:      item from the 'includedFields' section of the
                      description JSON object

    retval:  (encoderChoicesList, aggFunction)
               encoderChoicesList: a list of encoder choice lists for this field.
                 Most fields will generate just 1 encoder choice list.
                 DateTime fields can generate 2 or more encoder choice lists,
                   one for dayOfWeek, one for timeOfDay, etc.
               aggFunction: name of aggregation function to use for this
                             field type