fr.ght1pc9kc.testy.dsl.information_schema.tables.QueryStatistics Maven / Gradle / Ivy
The newest version!
/*
* This file is generated by jOOQ.
*/
package fr.ght1pc9kc.testy.dsl.information_schema.tables;
import fr.ght1pc9kc.testy.dsl.information_schema.InformationSchema;
import fr.ght1pc9kc.testy.dsl.information_schema.tables.records.QueryStatisticsRecord;
import java.util.function.Function;
import javax.annotation.processing.Generated;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Function12;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Records;
import org.jooq.Row12;
import org.jooq.Schema;
import org.jooq.SelectField;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.TableOptions;
import org.jooq.impl.DSL;
import org.jooq.impl.SQLDataType;
import org.jooq.impl.TableImpl;
/**
* This class is generated by jOOQ.
*/
@Generated(
value = {
"https://www.jooq.org",
"jOOQ version:3.18.7"
},
comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class QueryStatistics extends TableImpl {
private static final long serialVersionUID = 1L;
/**
* The reference instance of
* INFORMATION_SCHEMA.QUERY_STATISTICS
*/
public static final QueryStatistics QUERY_STATISTICS = new QueryStatistics();
/**
* The class holding records for this type
*/
@Override
public Class getRecordType() {
return QueryStatisticsRecord.class;
}
/**
* The column
* INFORMATION_SCHEMA.QUERY_STATISTICS.SQL_STATEMENT
.
*/
public final TableField SQL_STATEMENT = createField(DSL.name("SQL_STATEMENT"), SQLDataType.VARCHAR(1000000000), this, "");
/**
* The column
* INFORMATION_SCHEMA.QUERY_STATISTICS.EXECUTION_COUNT
.
*/
public final TableField EXECUTION_COUNT = createField(DSL.name("EXECUTION_COUNT"), SQLDataType.INTEGER, this, "");
/**
* The column
* INFORMATION_SCHEMA.QUERY_STATISTICS.MIN_EXECUTION_TIME
.
*/
public final TableField MIN_EXECUTION_TIME = createField(DSL.name("MIN_EXECUTION_TIME"), SQLDataType.DOUBLE, this, "");
/**
* The column
* INFORMATION_SCHEMA.QUERY_STATISTICS.MAX_EXECUTION_TIME
.
*/
public final TableField MAX_EXECUTION_TIME = createField(DSL.name("MAX_EXECUTION_TIME"), SQLDataType.DOUBLE, this, "");
/**
* The column
* INFORMATION_SCHEMA.QUERY_STATISTICS.CUMULATIVE_EXECUTION_TIME
.
*/
public final TableField CUMULATIVE_EXECUTION_TIME = createField(DSL.name("CUMULATIVE_EXECUTION_TIME"), SQLDataType.DOUBLE, this, "");
/**
* The column
* INFORMATION_SCHEMA.QUERY_STATISTICS.AVERAGE_EXECUTION_TIME
.
*/
public final TableField AVERAGE_EXECUTION_TIME = createField(DSL.name("AVERAGE_EXECUTION_TIME"), SQLDataType.DOUBLE, this, "");
/**
* The column
* INFORMATION_SCHEMA.QUERY_STATISTICS.STD_DEV_EXECUTION_TIME
.
*/
public final TableField STD_DEV_EXECUTION_TIME = createField(DSL.name("STD_DEV_EXECUTION_TIME"), SQLDataType.DOUBLE, this, "");
/**
* The column
* INFORMATION_SCHEMA.QUERY_STATISTICS.MIN_ROW_COUNT
.
*/
public final TableField MIN_ROW_COUNT = createField(DSL.name("MIN_ROW_COUNT"), SQLDataType.BIGINT, this, "");
/**
* The column
* INFORMATION_SCHEMA.QUERY_STATISTICS.MAX_ROW_COUNT
.
*/
public final TableField MAX_ROW_COUNT = createField(DSL.name("MAX_ROW_COUNT"), SQLDataType.BIGINT, this, "");
/**
* The column
* INFORMATION_SCHEMA.QUERY_STATISTICS.CUMULATIVE_ROW_COUNT
.
*/
public final TableField CUMULATIVE_ROW_COUNT = createField(DSL.name("CUMULATIVE_ROW_COUNT"), SQLDataType.BIGINT, this, "");
/**
* The column
* INFORMATION_SCHEMA.QUERY_STATISTICS.AVERAGE_ROW_COUNT
.
*/
public final TableField AVERAGE_ROW_COUNT = createField(DSL.name("AVERAGE_ROW_COUNT"), SQLDataType.DOUBLE, this, "");
/**
* The column
* INFORMATION_SCHEMA.QUERY_STATISTICS.STD_DEV_ROW_COUNT
.
*/
public final TableField STD_DEV_ROW_COUNT = createField(DSL.name("STD_DEV_ROW_COUNT"), SQLDataType.DOUBLE, this, "");
private QueryStatistics(Name alias, Table aliased) {
this(alias, aliased, null);
}
private QueryStatistics(Name alias, Table aliased, Field>[] parameters) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table());
}
/**
* Create an aliased INFORMATION_SCHEMA.QUERY_STATISTICS
table
* reference
*/
public QueryStatistics(String alias) {
this(DSL.name(alias), QUERY_STATISTICS);
}
/**
* Create an aliased INFORMATION_SCHEMA.QUERY_STATISTICS
table
* reference
*/
public QueryStatistics(Name alias) {
this(alias, QUERY_STATISTICS);
}
/**
* Create a INFORMATION_SCHEMA.QUERY_STATISTICS
table reference
*/
public QueryStatistics() {
this(DSL.name("QUERY_STATISTICS"), null);
}
public QueryStatistics(Table child, ForeignKey key) {
super(child, key, QUERY_STATISTICS);
}
@Override
public Schema getSchema() {
return aliased() ? null : InformationSchema.INFORMATION_SCHEMA;
}
@Override
public QueryStatistics as(String alias) {
return new QueryStatistics(DSL.name(alias), this);
}
@Override
public QueryStatistics as(Name alias) {
return new QueryStatistics(alias, this);
}
@Override
public QueryStatistics as(Table> alias) {
return new QueryStatistics(alias.getQualifiedName(), this);
}
/**
* Rename this table
*/
@Override
public QueryStatistics rename(String name) {
return new QueryStatistics(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public QueryStatistics rename(Name name) {
return new QueryStatistics(name, null);
}
/**
* Rename this table
*/
@Override
public QueryStatistics rename(Table> name) {
return new QueryStatistics(name.getQualifiedName(), null);
}
// -------------------------------------------------------------------------
// Row12 type methods
// -------------------------------------------------------------------------
@Override
public Row12 fieldsRow() {
return (Row12) super.fieldsRow();
}
/**
* Convenience mapping calling {@link SelectField#convertFrom(Function)}.
*/
public SelectField mapping(Function12 super String, ? super Integer, ? super Double, ? super Double, ? super Double, ? super Double, ? super Double, ? super Long, ? super Long, ? super Long, ? super Double, ? super Double, ? extends U> from) {
return convertFrom(Records.mapping(from));
}
/**
* Convenience mapping calling {@link SelectField#convertFrom(Class,
* Function)}.
*/
public SelectField mapping(Class toType, Function12 super String, ? super Integer, ? super Double, ? super Double, ? super Double, ? super Double, ? super Double, ? super Long, ? super Long, ? super Long, ? super Double, ? super Double, ? extends U> from) {
return convertFrom(toType, Records.mapping(from));
}
}