Package com.google.visualization.datasource.datatable

Examples of com.google.visualization.datasource.datatable.DataTable.clone()


  public static DataTable getRandomDataTable(int tableNum, int numRows,
      long randomSeed) {
    random = new Random(randomSeed);
    DataTable res = new DataTable();
    res.addColumns(dataTables[tableNum].getColumnDescriptions());
    res = res.clone(); // Clones the column descriptions.
    try {
      for (int i = 0; i < numRows; i++) {
        TableRow row = new TableRow();
        for (ColumnDescription colDesc : res.getColumnDescriptions()) {
          Value value = toRandomValue(colDesc.getType());
View Full Code Here


    public static DataTable getRandomDataTable(int tableNum, int numRows,
                                               long randomSeed) {
        random = new Random(randomSeed);
        DataTable res = new DataTable();
        res.addColumns(dataTables[tableNum].getColumnDescriptions());
        res = res.clone(); // Clones the column descriptions.
        try {
            for(int i = 0; i < numRows; i++) {
                TableRow row = new TableRow();
                for(ColumnDescription colDesc : res.getColumnDescriptions()) {
                    Value value = toRandomValue(colDesc.getType());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.