Beispiel #1
0
def array_data_to_thrift_struct(rows, cols, get_row):
    array_data = ArrayData()
    array_data.rows = rows
    array_data.cols = cols
    # `ArrayData.data`
    data = []
    for row in range(rows):
        data.append([var_to_str(value) for value in get_row(row)])

    array_data.data = data
    return array_data
def array_data_to_thrift_struct(rows, cols, get_row):
    array_data = ArrayData()
    array_data.rows = rows
    array_data.cols = cols
    # `ArrayData.data`
    data = []
    for row in range(rows):
        data.append([var_to_str(value) for value in get_row(row)])

    array_data.data = data
    return array_data