use of org.voltdb.VoltTable.ColumnInfo in project voltdb by VoltDB.
the class SnapshotScanAgent method constructDigestResultsTable.
private VoltTable constructDigestResultsTable() {
ColumnInfo[] result_columns = new ColumnInfo[6];
int ii = 0;
result_columns[ii++] = new ColumnInfo(VoltSystemProcedure.CNAME_HOST_ID, VoltSystemProcedure.CTYPE_ID);
result_columns[ii++] = new ColumnInfo("PATH", VoltType.STRING);
result_columns[ii++] = new ColumnInfo("NAME", VoltType.STRING);
result_columns[ii++] = new ColumnInfo("TABLES", VoltType.STRING);
result_columns[ii++] = new ColumnInfo("RESULT", VoltType.STRING);
result_columns[ii++] = new ColumnInfo("ERR_MSG", VoltType.STRING);
return new VoltTable(result_columns);
}
use of org.voltdb.VoltTable.ColumnInfo in project voltdb by VoltDB.
the class JDBC4DatabaseMetaData method getTableTypes.
// Retrieves the table types available in this database.
@Override
public ResultSet getTableTypes() throws SQLException {
checkClosed();
VoltTable vtable = new VoltTable(new ColumnInfo("TABLE_TYPE", VoltType.STRING));
for (String type : tableTypes) {
vtable.addRow(type);
}
JDBC4ResultSet res = new JDBC4ResultSet(this.sysCatalog, vtable);
return res;
}
use of org.voltdb.VoltTable.ColumnInfo in project voltdb by VoltDB.
the class JDBC4DatabaseMetaData method getTablePrivileges.
// Retrieves a description of the access rights for each table available in a catalog.
@Override
public ResultSet getTablePrivileges(String catalog, String schemaPattern, String tableNamePattern) throws SQLException {
checkClosed();
VoltTable vtable = new VoltTable(new ColumnInfo("TABLE_CAT", VoltType.STRING), new ColumnInfo("TABLE_SCHEM", VoltType.STRING), new ColumnInfo("TABLE_NAME", VoltType.STRING), new ColumnInfo("GRANTOR", VoltType.STRING), new ColumnInfo("GRANTEE", VoltType.STRING), new ColumnInfo("PRIVILEGE", VoltType.STRING), new ColumnInfo("IS_GRANTABLE", VoltType.STRING));
//NB: @SystemCatalog(?) will need additional support if we want to
// populate the table.
JDBC4ResultSet res = new JDBC4ResultSet(this.sysCatalog, vtable);
return res;
}
use of org.voltdb.VoltTable.ColumnInfo in project voltdb by VoltDB.
the class JDBC4DatabaseMetaData method getExportedKeys.
/**
* Retrieves a description of the foreign key columns that reference the
* given table's primary key columns (the foreign keys exported by a table).
*/
@Override
public ResultSet getExportedKeys(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;
}
use of org.voltdb.VoltTable.ColumnInfo in project voltdb by VoltDB.
the class GC method run.
public VoltTable run() throws InterruptedException, ExecutionException {
final long start = System.nanoTime();
System.gc();
final long duration = System.nanoTime() - start;
VoltTable vt = new VoltTable(new ColumnInfo[] { new ColumnInfo("SYSTEM_GC_DURATION_NANOS", VoltType.BIGINT) });
vt.addRow(duration);
return vt;
}
Aggregations