use of org.voltdb.VoltTable.ColumnInfo in project voltdb by VoltDB.
the class TableStats method populateColumnSchema.
// Generally we fill in this schema from the EE, but we'll provide
// this so that we can fill in an empty table before the EE has
// provided us with a table. Make sure that any changes to the EE
// schema are reflected here (sigh).
@Override
protected void populateColumnSchema(ArrayList<ColumnInfo> columns) {
super.populateColumnSchema(columns);
columns.add(new ColumnInfo("PARTITION_ID", VoltType.BIGINT));
columns.add(new ColumnInfo("TABLE_NAME", VoltType.STRING));
columns.add(new ColumnInfo("TABLE_TYPE", VoltType.STRING));
columns.add(new ColumnInfo("TUPLE_COUNT", VoltType.BIGINT));
columns.add(new ColumnInfo("TUPLE_ALLOCATED_MEMORY", VoltType.BIGINT));
columns.add(new ColumnInfo("TUPLE_DATA_MEMORY", VoltType.BIGINT));
columns.add(new ColumnInfo("STRING_DATA_MEMORY", VoltType.BIGINT));
columns.add(new ColumnInfo("TUPLE_LIMIT", VoltType.INTEGER));
columns.add(new ColumnInfo("PERCENT_FULL", VoltType.INTEGER));
}
use of org.voltdb.VoltTable.ColumnInfo in project voltdb by VoltDB.
the class SnapshotStatus method populateColumnSchema.
@Override
protected void populateColumnSchema(ArrayList<ColumnInfo> columns) {
super.populateColumnSchema(columns);
columns.add(new ColumnInfo("TABLE", VoltType.STRING));
columns.add(new ColumnInfo("PATH", VoltType.STRING));
columns.add(new ColumnInfo("FILENAME", VoltType.STRING));
columns.add(new ColumnInfo("NONCE", VoltType.STRING));
columns.add(new ColumnInfo("TXNID", VoltType.BIGINT));
columns.add(new ColumnInfo("START_TIME", VoltType.BIGINT));
columns.add(new ColumnInfo("END_TIME", VoltType.BIGINT));
columns.add(new ColumnInfo("SIZE", VoltType.BIGINT));
columns.add(new ColumnInfo("DURATION", VoltType.BIGINT));
columns.add(new ColumnInfo("THROUGHPUT", VoltType.FLOAT));
columns.add(new ColumnInfo("RESULT", VoltType.STRING));
columns.add(new ColumnInfo("TYPE", VoltType.STRING));
}
use of org.voltdb.VoltTable.ColumnInfo in project voltdb by VoltDB.
the class ImporterStatsCollector method populateColumnSchema.
@Override
protected void populateColumnSchema(ArrayList<ColumnInfo> columns) {
super.populateColumnSchema(columns);
columns.add(new ColumnInfo(IMPORTER_NAME_COL, VoltType.STRING));
columns.add(new ColumnInfo(PROC_NAME_COL, VoltType.STRING));
columns.add(new ColumnInfo(SUCCESS_COUNT_COL, VoltType.BIGINT));
columns.add(new ColumnInfo(FAILURE_COUNT_COL, VoltType.BIGINT));
columns.add(new ColumnInfo(PENDING_COUNT_COL, VoltType.BIGINT));
columns.add(new ColumnInfo(RETRY_COUNT_COL, VoltType.BIGINT));
}
use of org.voltdb.VoltTable.ColumnInfo in project voltdb by VoltDB.
the class KSafetyStats method populateColumnSchema.
@Override
protected void populateColumnSchema(ArrayList<ColumnInfo> columns) {
columns.add(new ColumnInfo(Constants.TIMESTAMP, VoltType.BIGINT));
columns.add(new ColumnInfo(Constants.PARTITION_ID, VoltType.INTEGER));
columns.add(new ColumnInfo(Constants.MISSING_REPLICA, VoltType.INTEGER));
}
use of org.voltdb.VoltTable.ColumnInfo in project voltdb by VoltDB.
the class JDBC4DatabaseMetaData method getImportedKeys.
// Retrieves a description of the primary key columns that are referenced by the given table's foreign key columns (the primary keys imported by a table) throws SQLException.
@Override
public ResultSet getImportedKeys(String catalog, String schema, String table) throws SQLException {
checkClosed();
VoltTable vtable = new VoltTable(new ColumnInfo("PKTABLE_CAT", VoltType.STRING), new ColumnInfo("PKTABLE_SCHEM", VoltType.STRING), new ColumnInfo("PKTABLE_NAME", VoltType.STRING), new ColumnInfo("PKCOLUMN_NAME", VoltType.STRING), new ColumnInfo("FKTABLE_CAT", VoltType.STRING), new ColumnInfo("FKTABLE_SCHEM", VoltType.STRING), new ColumnInfo("FKTABLE_NAME", VoltType.STRING), new ColumnInfo("FKCOLUMN_NAME", VoltType.STRING), new ColumnInfo("KEY_SEQ", VoltType.SMALLINT), new ColumnInfo("UPDATE_RULE", VoltType.SMALLINT), new ColumnInfo("DELETE_RULE", VoltType.SMALLINT), new ColumnInfo("FK_NAME", VoltType.STRING), new ColumnInfo("PK_NAME", VoltType.STRING), new ColumnInfo("DEFERRABILITY", VoltType.SMALLINT));
//NB: @SystemCatalog(?) will need additional support if we want to
// populate the table.
JDBC4ResultSet res = new JDBC4ResultSet(this.sysCatalog, vtable);
return res;
}
Aggregations