Examples of ColumnStats


Examples of org.apache.cassandra.io.sstable.ColumnStats

        catch (IOException e)
        {
            throw new RuntimeException(e);
        }
        // reach into the reducer (created during iteration) to get column count, size, max column timestamp
        columnStats = new ColumnStats(reducer.columns,
                                      reducer.minTimestampSeen,
                                      Math.max(emptyColumnFamily.deletionInfo().maxTimestamp(), reducer.maxTimestampSeen),
                                      reducer.maxLocalDeletionTimeSeen,
                                      reducer.tombstones,
                                      reducer.minColumnNameSeen,
View Full Code Here

Examples of org.apache.cassandra.io.sstable.ColumnStats

        {
            throw new RuntimeException(e);
        }
        // reach into the reducer (created during iteration) to get column count, size, max column timestamp
        // (however, if there are zero columns, iterator() will not be called by ColumnIndexer and reducer will be null)
        columnStats = new ColumnStats(reducer == null ? 0 : reducer.columns,
                                      reducer == null ? Long.MAX_VALUE : reducer.minTimestampSeen,
                                      reducer == null ? maxDelTimestamp : Math.max(maxDelTimestamp, reducer.maxTimestampSeen),
                                      reducer == null ? Integer.MIN_VALUE : reducer.maxLocalDeletionTimeSeen,
                                      reducer == null ? new StreamingHistogram(SSTable.TOMBSTONE_HISTOGRAM_BIN_SIZE) : reducer.tombstones,
                                      reducer == null ? Collections.<ByteBuffer>emptyList() : reducer.minColumnNameSeen,
View Full Code Here

Examples of org.apache.cassandra.io.sstable.ColumnStats

        {
            throw new RuntimeException(e);
        }
        // reach into the reducer used during iteration to get column count, size, max column timestamp
        // (however, if there are zero columns, iterator() will not be called by ColumnIndexer and reducer will be null)
        columnStats = new ColumnStats(reducer == null ? 0 : reducer.columns,
                                      reducer == null ? Long.MAX_VALUE : reducer.minTimestampSeen,
                                      reducer == null ? maxDelTimestamp : Math.max(maxDelTimestamp, reducer.maxTimestampSeen),
                                      reducer == null ? new StreamingHistogram(SSTable.TOMBSTONE_HISTOGRAM_BIN_SIZE) : reducer.tombstones
        );
        columnSerializedSize = reducer == null ? 0 : reducer.serializedSize;
View Full Code Here

Examples of org.apache.cassandra.io.sstable.ColumnStats

            if (deletionTime < Integer.MAX_VALUE)
                tombstones.update(deletionTime);
            minColumnNamesSeen = ColumnNameHelper.minComponents(minColumnNamesSeen, column.name, metadata.comparator);
            maxColumnNamesSeen = ColumnNameHelper.maxComponents(maxColumnNamesSeen, column.name, metadata.comparator);
        }
        return new ColumnStats(getColumnCount(), minTimestampSeen, maxTimestampSeen, maxLocalDeletionTime, tombstones, minColumnNamesSeen, maxColumnNamesSeen);
    }
View Full Code Here

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

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

      tableStats.setNumBlocks(1);
    }

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

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

      tableStats.setNumBlocks(1);
    }

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

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

    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

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

  }

  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

Examples of org.teiid.metadata.ColumnStats

            TableStats stats = metadataRepository.getTableStats(vdbName, vdbVersion, t);
            if (stats != null) {
              t.setTableStats(stats);
            }
            for (Column c : t.getColumns()) {
              ColumnStats cStats = metadataRepository.getColumnStats(vdbName, vdbVersion, c);
              if (cStats != null) {
                c.setColumnStats(cStats);
              }
            }
          } else {
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.