use of org.voltdb.VoltTable.ColumnInfo in project voltdb by VoltDB.
the class GcStats method populateColumnSchema.
@Override
protected void populateColumnSchema(ArrayList<ColumnInfo> columns) {
super.populateColumnSchema(columns);
columns.add(new VoltTable.ColumnInfo("NEWGEN_GC_COUNT", VoltType.INTEGER));
columns.add(new VoltTable.ColumnInfo("NEWGEN_AVG_GC_TIME", VoltType.BIGINT));
columns.add(new VoltTable.ColumnInfo("OLDGEN_GC_COUNT", VoltType.INTEGER));
columns.add(new VoltTable.ColumnInfo("OLDGEN_AVG_GC_TIME", VoltType.BIGINT));
}
use of org.voltdb.VoltTable.ColumnInfo in project voltdb by VoltDB.
the class StarvationTracker method populateColumnSchema.
@Override
protected void populateColumnSchema(ArrayList<ColumnInfo> columns) {
super.populateColumnSchema(columns);
columns.add(new ColumnInfo("COUNT", VoltType.BIGINT));
columns.add(new ColumnInfo("PERCENT", VoltType.FLOAT));
columns.add(new ColumnInfo("AVG", VoltType.BIGINT));
columns.add(new ColumnInfo("MIN", VoltType.BIGINT));
columns.add(new ColumnInfo("MAX", VoltType.BIGINT));
columns.add(new ColumnInfo("STDDEV", VoltType.BIGINT));
}
use of org.voltdb.VoltTable.ColumnInfo in project voltdb by VoltDB.
the class StatsAgent method aggregateProcedureStats.
/**
* Produce PROCEDURE aggregation of PROCEDURE subselector
* Basically it leaves out the rows that were not labeled as "<ALL>".
*/
private VoltTable[] aggregateProcedureStats(VoltTable[] baseStats) {
if (baseStats == null || baseStats.length != 1) {
return baseStats;
}
VoltTable result = new VoltTable(new ColumnInfo("TIMESTAMP", VoltType.BIGINT), new ColumnInfo(VoltSystemProcedure.CNAME_HOST_ID, VoltSystemProcedure.CTYPE_ID), new ColumnInfo("HOSTNAME", VoltType.STRING), new ColumnInfo(VoltSystemProcedure.CNAME_SITE_ID, VoltSystemProcedure.CTYPE_ID), new ColumnInfo("PARTITION_ID", VoltType.INTEGER), new ColumnInfo("PROCEDURE", VoltType.STRING), new ColumnInfo("INVOCATIONS", VoltType.BIGINT), new ColumnInfo("TIMED_INVOCATIONS", VoltType.BIGINT), new ColumnInfo("MIN_EXECUTION_TIME", VoltType.BIGINT), new ColumnInfo("MAX_EXECUTION_TIME", VoltType.BIGINT), new ColumnInfo("AVG_EXECUTION_TIME", VoltType.BIGINT), new ColumnInfo("MIN_RESULT_SIZE", VoltType.INTEGER), new ColumnInfo("MAX_RESULT_SIZE", VoltType.INTEGER), new ColumnInfo("AVG_RESULT_SIZE", VoltType.INTEGER), new ColumnInfo("MIN_PARAMETER_SET_SIZE", VoltType.INTEGER), new ColumnInfo("MAX_PARAMETER_SET_SIZE", VoltType.INTEGER), new ColumnInfo("AVG_PARAMETER_SET_SIZE", VoltType.INTEGER), new ColumnInfo("ABORTS", VoltType.BIGINT), new ColumnInfo("FAILURES", VoltType.BIGINT), new ColumnInfo("TRANSACTIONAL", VoltType.TINYINT));
baseStats[0].resetRowPosition();
while (baseStats[0].advanceRow()) {
if (baseStats[0].getString("STATEMENT").equalsIgnoreCase("<ALL>")) {
result.addRow(baseStats[0].getLong("TIMESTAMP"), baseStats[0].getLong(VoltSystemProcedure.CNAME_HOST_ID), baseStats[0].getString("HOSTNAME"), baseStats[0].getLong(VoltSystemProcedure.CNAME_SITE_ID), baseStats[0].getLong("PARTITION_ID"), baseStats[0].getString("PROCEDURE"), baseStats[0].getLong("INVOCATIONS"), baseStats[0].getLong("TIMED_INVOCATIONS"), baseStats[0].getLong("MIN_EXECUTION_TIME"), baseStats[0].getLong("MAX_EXECUTION_TIME"), baseStats[0].getLong("AVG_EXECUTION_TIME"), baseStats[0].getLong("MIN_RESULT_SIZE"), baseStats[0].getLong("MAX_RESULT_SIZE"), baseStats[0].getLong("AVG_RESULT_SIZE"), baseStats[0].getLong("MIN_PARAMETER_SET_SIZE"), baseStats[0].getLong("MAX_PARAMETER_SET_SIZE"), baseStats[0].getLong("AVG_PARAMETER_SET_SIZE"), baseStats[0].getLong("ABORTS"), baseStats[0].getLong("FAILURES"), (byte) baseStats[0].getLong("TRANSACTIONAL"));
}
}
return new VoltTable[] { result };
}
use of org.voltdb.VoltTable.ColumnInfo in project voltdb by VoltDB.
the class StatsSource method populateColumnSchema.
/**
* Called from the constructor to generate the column schema at run time.
* Derived classes need to override this method in order to specify the
* columns they will be adding. The first line must always be a call the
* superclasses version of populateColumnSchema
* in order to ensure the columns are add to the list in the right order.
* @param columns Output list for the column schema.
*/
protected void populateColumnSchema(ArrayList<ColumnInfo> columns) {
columns.add(new ColumnInfo("TIMESTAMP", VoltType.BIGINT));
columns.add(new ColumnInfo(VoltSystemProcedure.CNAME_HOST_ID, VoltSystemProcedure.CTYPE_ID));
columns.add(new ColumnInfo("HOSTNAME", VoltType.STRING));
}
use of org.voltdb.VoltTable.ColumnInfo in project voltdb by VoltDB.
the class LatencyHistogramStats method populateColumnSchema.
@Override
protected void populateColumnSchema(ArrayList<ColumnInfo> columns) {
super.populateColumnSchema(columns);
columns.add(new ColumnInfo("HISTOGRAM", VoltType.VARBINARY));
}
Aggregations