Package org.apache.tajo.catalog.statistics

Examples of org.apache.tajo.catalog.statistics.ColumnStats


    }
    tableStats.setNumBytes(numBytes);
    tableStats.setNumBlocks(rawFragmentList.size());

    for(Column eachColumn: schema.getColumns()) {
      ColumnStats columnStats = new ColumnStats(eachColumn);
      tableStats.addColumnStat(columnStats);
    }
  }
View Full Code Here


      tableStats.setNumBlocks(1);
    }

    if (schema != null) {
      for(Column eachColumn: schema.getColumns()) {
        ColumnStats columnStats = new ColumnStats(eachColumn);
        tableStats.addColumnStat(columnStats);
      }
    }
  }
View Full Code Here

      tableStats.setNumBlocks(1);
    }

    if (schema != null) {
      for(Column eachColumn: schema.getColumns()) {
        ColumnStats columnStats = new ColumnStats(eachColumn);
        tableStats.addColumnStat(columnStats);
      }
    }
  }
View Full Code Here

    stats.setAvgRows(80000);

    int numCols = 2;
    ColumnStats[] cols = new ColumnStats[numCols];
    for (int i = 0; i < numCols; i++) {
      cols[i] = new ColumnStats(schema.getColumn(i));
      cols[i].setNumDistVals(1024 * i);
      cols[i].setNumNulls(100 * i);
      stats.addColumnStat(cols[i]);
    }
    desc.setStats(stats);
View Full Code Here

  }

  public TableStats getTableStat() {
    TableStats stat = new TableStats();

    ColumnStats columnStats;
    for (int i = 0; i < schema.size(); i++) {
      columnStats = new ColumnStats(schema.getColumn(i));
      columnStats.setNumNulls(numNulls[i]);
      columnStats.setMinValue(minValues.get(i));
      columnStats.setMaxValue(maxValues.get(i));
      stat.addColumnStat(columnStats);
    }

    stat.setNumRows(this.numRows);
    stat.setNumBytes(this.numBytes);
View Full Code Here

TOP

Related Classes of org.apache.tajo.catalog.statistics.ColumnStats

Copyright © 2018 www.massapicom. 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.