Search in sources :

Example 1 with ColumnInfo

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));
}
Also used : ColumnInfo(org.voltdb.VoltTable.ColumnInfo)

Example 2 with ColumnInfo

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));
}
Also used : ColumnInfo(org.voltdb.VoltTable.ColumnInfo)

Example 3 with ColumnInfo

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 };
}
Also used : ColumnInfo(org.voltdb.VoltTable.ColumnInfo)

Example 4 with ColumnInfo

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));
}
Also used : ColumnInfo(org.voltdb.VoltTable.ColumnInfo)

Example 5 with ColumnInfo

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));
}
Also used : ColumnInfo(org.voltdb.VoltTable.ColumnInfo)

Aggregations

ColumnInfo (org.voltdb.VoltTable.ColumnInfo)84 VoltTable (org.voltdb.VoltTable)40 Client (org.voltdb.client.Client)17 HashMap (java.util.HashMap)10 ByteBuffer (java.nio.ByteBuffer)6 DependencyPair (org.voltdb.DependencyPair)6 BigDecimal (java.math.BigDecimal)5 ArrayList (java.util.ArrayList)5 TimestampType (org.voltdb.types.TimestampType)5 Test (org.junit.Test)4 CSVWriter (au.com.bytecode.opencsv_voltpatches.CSVWriter)2 Map (java.util.Map)2 JSONObject (org.json_voltpatches.JSONObject)2 CatalogContext (org.voltdb.CatalogContext)2 CatalogSpecificPlanner (org.voltdb.CatalogSpecificPlanner)2 GeographyPointValue (org.voltdb.types.GeographyPointValue)2 GeographyValue (org.voltdb.types.GeographyValue)2 ByteArrayInputStream (java.io.ByteArrayInputStream)1 File (java.io.File)1 IOException (java.io.IOException)1