- Type Parameters:
T- The function return type
- All Superinterfaces:
Field<T>,FieldOrConstraint,FieldOrRow,FieldOrRowOrSelect,GroupField,Named,OrderField<T>,QueryPart,SelectField<T>,SelectFieldOrAsterisk,Serializable,TableElement,Typed<T>,WindowFinalStep<T>
This type is used for the window function DSL API.
Example:
field.firstValue()
.ignoreNulls()
.over()
.partitionBy(AUTHOR_ID)
.orderBy(PUBLISHED_IN.asc())
.rowsBetweenUnboundedPreceding()
.andUnboundedFollowing()
- Author:
- Lukas Eder
-
Method Summary
Modifier and TypeMethodDescription@NotNull WindowRowsAndStep<T>Add aGROUPS BETWEEN CURRENT ROW …frame clause to the window function.@NotNull WindowRowsAndStep<T>groupsBetweenFollowing(int number) Add aGROUPS BETWEEN [number] FOLLOWING …frame clause to the window function.@NotNull WindowRowsAndStep<T>groupsBetweenPreceding(int number) Add aGROUPS BETWEEN [number] PRECEDING …frame clause to the window function.@NotNull WindowRowsAndStep<T>Add aGROUPS BETWEEN UNBOUNDED FOLLOWING …frame clause to the window function.@NotNull WindowRowsAndStep<T>Add aGROUPS BETWEEN UNBOUNDED PRECEDING …frame clause to the window function.@NotNull WindowExcludeStep<T>Add aGROUPS CURRENT ROWframe clause to the window function.@NotNull WindowExcludeStep<T>groupsFollowing(int number) Add aGROUPS [number] FOLLOWINGframe clause to the window function.@NotNull WindowExcludeStep<T>groupsPreceding(int number) Add aGROUPS [number] PRECEDINGframe clause to the window function.@NotNull WindowExcludeStep<T>Add aGROUPS UNBOUNDED FOLLOWINGframe clause to the window function.@NotNull WindowExcludeStep<T>Add aGROUPS UNBOUNDED PRECEDINGframe clause to the window function.@NotNull WindowRowsAndStep<T>Add aRANGE BETWEEN CURRENT ROW …frame clause to the window function.@NotNull WindowRowsAndStep<T>rangeBetweenFollowing(int number) Add aRANGE BETWEEN [number] FOLLOWING …frame clause to the window function.@NotNull WindowRowsAndStep<T>rangeBetweenPreceding(int number) Add aRANGE BETWEEN [number] PRECEDING …frame clause to the window function.@NotNull WindowRowsAndStep<T>Add aRANGE BETWEEN UNBOUNDED FOLLOWING …frame clause to the window function.@NotNull WindowRowsAndStep<T>Add aRANGE BETWEEN UNBOUNDED PRECEDING …frame clause to the window function.@NotNull WindowExcludeStep<T>Add aRANGE CURRENT ROWframe clause to the window function.@NotNull WindowExcludeStep<T>rangeFollowing(int number) Add aRANGE [number] FOLLOWINGframe clause to the window function.@NotNull WindowExcludeStep<T>rangePreceding(int number) Add aRANGE [number] PRECEDINGframe clause to the window function.@NotNull WindowExcludeStep<T>Add aRANGE UNBOUNDED FOLLOWINGframe clause to the window function.@NotNull WindowExcludeStep<T>Add aRANGE UNBOUNDED PRECEDINGframe clause to the window function.@NotNull WindowRowsAndStep<T>Add aROWS BETWEEN CURRENT ROW …frame clause to the window function.@NotNull WindowRowsAndStep<T>rowsBetweenFollowing(int number) Add aROWS BETWEEN [number] FOLLOWING …frame clause to the window function.@NotNull WindowRowsAndStep<T>rowsBetweenPreceding(int number) Add aROWS BETWEEN [number] PRECEDING …frame clause to the window function.@NotNull WindowRowsAndStep<T>Add aROWS BETWEEN UNBOUNDED FOLLOWING …frame clause to the window function.@NotNull WindowRowsAndStep<T>Add aROWS BETWEEN UNBOUNDED PRECEDING …frame clause to the window function.@NotNull WindowExcludeStep<T>Add aROWS CURRENT ROWframe clause to the window function.@NotNull WindowExcludeStep<T>rowsFollowing(int number) Add aROWS [number] FOLLOWINGframe clause to the window function.@NotNull WindowExcludeStep<T>rowsPreceding(int number) Add aROWS [number] PRECEDINGframe clause to the window function.@NotNull WindowExcludeStep<T>Add aROWS UNBOUNDED FOLLOWINGframe clause to the window function.@NotNull WindowExcludeStep<T>Add aROWS UNBOUNDED PRECEDINGframe clause to the window function.Methods inherited from interface org.jooq.Field
abs, acos, add, add, as, as, as, as, asc, ascii, asin, atan, atan2, atan2, avg, avgOver, between, between, between, between, betweenSymmetric, betweenSymmetric, betweenSymmetric, betweenSymmetric, bitAnd, bitAnd, bitLength, bitNand, bitNand, bitNor, bitNor, bitNot, bitOr, bitOr, bitXNor, bitXNor, bitXor, bitXor, cast, cast, cast, ceil, changed, charLength, coalesce, coalesce, coerce, coerce, coerce, collate, collate, collate, comment, comment, compare, compare, compare, compare, concat, concat, concat, contains, contains, containsIgnoreCase, containsIgnoreCase, convert, convert, convert, convertFrom, convertFrom, convertTo, convertTo, cos, cosh, cot, coth, count, countDistinct, countOver, decode, decode, decode, decode, deg, desc, div, div, divide, divide, endsWith, endsWith, endsWithIgnoreCase, endsWithIgnoreCase, eq, eq, eq, eq, equal, equal, equal, equal, equalIgnoreCase, equalIgnoreCase, equals, exp, extract, field, firstValue, floor, from, ge, ge, ge, ge, get, getComment, getName, getValue, greaterOrEqual, greaterOrEqual, greaterOrEqual, greaterOrEqual, greaterThan, greaterThan, greaterThan, greaterThan, greatest, greatest, gt, gt, gt, gt, in, in, in, in, in, isDistinctFrom, isDistinctFrom, isDistinctFrom, isDocument, isFalse, isJson, isNotDistinctFrom, isNotDistinctFrom, isNotDistinctFrom, isNotDocument, isNotJson, isNotNull, isNull, isTrue, lag, lag, lag, lag, lastValue, le, le, le, le, lead, lead, lead, lead, least, least, length, lessOrEqual, lessOrEqual, lessOrEqual, lessOrEqual, lessThan, lessThan, lessThan, lessThan, like, like, like, like, like, likeIgnoreCase, likeIgnoreCase, likeIgnoreCase, likeIgnoreCase, likeRegex, likeRegex, ln, log, lower, lpad, lpad, lpad, lpad, lt, lt, lt, lt, ltrim, max, maxOver, median, min, minOver, minus, minus, mod, mod, modulo, modulo, mul, mul, multiply, multiply, ne, ne, ne, ne, neg, notBetween, notBetween, notBetween, notBetween, notBetweenSymmetric, notBetweenSymmetric, notBetweenSymmetric, notBetweenSymmetric, notContains, notContains, notContainsIgnoreCase, notContainsIgnoreCase, notEqual, notEqual, notEqual, notEqual, notEqualIgnoreCase, notEqualIgnoreCase, notIn, notIn, notIn, notIn, notIn, notLike, notLike, notLike, notLike, notLike, notLikeIgnoreCase, notLikeIgnoreCase, notLikeIgnoreCase, notLikeIgnoreCase, notLikeRegex, notLikeRegex, notSimilarTo, notSimilarTo, notSimilarTo, notSimilarTo, notSimilarTo, nullif, nullif, nullsFirst, nullsLast, nvl, nvl, nvl2, nvl2, octetLength, original, plus, plus, plus, position, position, pow, pow, power, power, rad, rem, rem, repeat, repeat, replace, replace, replace, replace, reset, round, round, rpad, rpad, rpad, rpad, rtrim, shl, shl, shr, shr, sign, similarTo, similarTo, similarTo, similarTo, similarTo, sin, sinh, sort, sort, sortAsc, sortAsc, sortDefault, sortDesc, sortDesc, sqrt, startsWith, startsWith, startsWithIgnoreCase, startsWithIgnoreCase, stddevPop, stddevPopOver, stddevSamp, stddevSampOver, sub, sub, substring, substring, substring, substring, subtract, subtract, sum, sumOver, tan, tanh, times, times, trim, unaryMinus, unaryPlus, upper, varPop, varPopOver, varSamp, varSampOverMethods inherited from interface org.jooq.Named
$name, getCommentPart, getQualifiedName, getUnqualifiedNameMethods inherited from interface org.jooq.QueryPart
$replace, $replace, $traverse, $traverse, hashCode, toStringMethods inherited from interface org.jooq.Typed
$dataType, getBinding, getConverter, getDataType, getDataType, getType
-
Method Details
-
rowsUnboundedPreceding
@NotNull @Support({AURORA_POSTGRES,BIGQUERY,COCKROACHDB,DB2,EXASOL,FIREBIRD_4_0,H2,INFORMIX,MARIADB,MEMSQL,MYSQL_8_0,ORACLE,POSTGRES,REDSHIFT,SNOWFLAKE,SQLDATAWAREHOUSE,SQLITE,SQLSERVER2012,SYBASE,TERADATA,VERTICA,YUGABYTEDB}) @NotNull WindowExcludeStep<T> rowsUnboundedPreceding()Add aROWS UNBOUNDED PRECEDINGframe clause to the window function. -
rowsPreceding
@NotNull @Support({AURORA_POSTGRES,BIGQUERY,COCKROACHDB,DB2,EXASOL,FIREBIRD_4_0,H2,INFORMIX,MARIADB,MEMSQL,MYSQL_8_0,ORACLE,POSTGRES,REDSHIFT,SNOWFLAKE,SQLDATAWAREHOUSE,SQLITE,SQLSERVER2012,SYBASE,TERADATA,VERTICA,YUGABYTEDB}) @NotNull WindowExcludeStep<T> rowsPreceding(int number) Add aROWS [number] PRECEDINGframe clause to the window function. -
rowsCurrentRow
@NotNull @Support({AURORA_POSTGRES,BIGQUERY,COCKROACHDB,DB2,EXASOL,FIREBIRD_4_0,H2,INFORMIX,MARIADB,MEMSQL,MYSQL_8_0,ORACLE,POSTGRES,REDSHIFT,SNOWFLAKE,SQLDATAWAREHOUSE,SQLITE,SQLSERVER2012,SYBASE,TERADATA,VERTICA,YUGABYTEDB}) @NotNull WindowExcludeStep<T> rowsCurrentRow()Add aROWS CURRENT ROWframe clause to the window function. -
rowsUnboundedFollowing
@NotNull @Support({AURORA_POSTGRES,BIGQUERY,COCKROACHDB,DB2,EXASOL,FIREBIRD_4_0,H2,INFORMIX,MARIADB,MEMSQL,MYSQL_8_0,ORACLE,POSTGRES,REDSHIFT,SNOWFLAKE,SQLDATAWAREHOUSE,SQLITE,SQLSERVER2012,SYBASE,TERADATA,VERTICA,YUGABYTEDB}) @NotNull WindowExcludeStep<T> rowsUnboundedFollowing()Add aROWS UNBOUNDED FOLLOWINGframe clause to the window function. -
rowsFollowing
@NotNull @Support({AURORA_POSTGRES,BIGQUERY,COCKROACHDB,DB2,EXASOL,FIREBIRD_4_0,H2,INFORMIX,MARIADB,MEMSQL,MYSQL_8_0,ORACLE,POSTGRES,REDSHIFT,SNOWFLAKE,SQLDATAWAREHOUSE,SQLITE,SQLSERVER2012,SYBASE,TERADATA,VERTICA,YUGABYTEDB}) @NotNull WindowExcludeStep<T> rowsFollowing(int number) Add aROWS [number] FOLLOWINGframe clause to the window function. -
rowsBetweenUnboundedPreceding
@NotNull @Support({AURORA_POSTGRES,BIGQUERY,COCKROACHDB,DB2,EXASOL,FIREBIRD_4_0,H2,INFORMIX,MARIADB,MEMSQL,MYSQL_8_0,ORACLE,POSTGRES,REDSHIFT,SNOWFLAKE,SQLDATAWAREHOUSE,SQLITE,SQLSERVER2012,SYBASE,TERADATA,VERTICA,YUGABYTEDB}) @NotNull WindowRowsAndStep<T> rowsBetweenUnboundedPreceding()Add aROWS BETWEEN UNBOUNDED PRECEDING …frame clause to the window function. -
rowsBetweenPreceding
@NotNull @Support({AURORA_POSTGRES,BIGQUERY,COCKROACHDB,DB2,EXASOL,FIREBIRD_4_0,H2,INFORMIX,MARIADB,MEMSQL,MYSQL_8_0,ORACLE,POSTGRES,REDSHIFT,SNOWFLAKE,SQLDATAWAREHOUSE,SQLITE,SQLSERVER2012,SYBASE,TERADATA,VERTICA,YUGABYTEDB}) @NotNull WindowRowsAndStep<T> rowsBetweenPreceding(int number) Add aROWS BETWEEN [number] PRECEDING …frame clause to the window function. -
rowsBetweenCurrentRow
@NotNull @Support({AURORA_POSTGRES,BIGQUERY,COCKROACHDB,DB2,EXASOL,FIREBIRD_4_0,H2,INFORMIX,MARIADB,MEMSQL,MYSQL_8_0,ORACLE,POSTGRES,REDSHIFT,SNOWFLAKE,SQLDATAWAREHOUSE,SQLITE,SQLSERVER2012,SYBASE,TERADATA,VERTICA,YUGABYTEDB}) @NotNull WindowRowsAndStep<T> rowsBetweenCurrentRow()Add aROWS BETWEEN CURRENT ROW …frame clause to the window function. -
rowsBetweenUnboundedFollowing
@NotNull @Support({AURORA_POSTGRES,BIGQUERY,COCKROACHDB,DB2,EXASOL,FIREBIRD_4_0,H2,INFORMIX,MARIADB,MEMSQL,MYSQL_8_0,ORACLE,POSTGRES,REDSHIFT,SNOWFLAKE,SQLDATAWAREHOUSE,SQLITE,SQLSERVER2012,SYBASE,TERADATA,VERTICA,YUGABYTEDB}) @NotNull WindowRowsAndStep<T> rowsBetweenUnboundedFollowing()Add aROWS BETWEEN UNBOUNDED FOLLOWING …frame clause to the window function. -
rowsBetweenFollowing
@NotNull @Support({AURORA_POSTGRES,BIGQUERY,COCKROACHDB,DB2,EXASOL,FIREBIRD_4_0,H2,INFORMIX,MARIADB,MEMSQL,MYSQL_8_0,ORACLE,POSTGRES,REDSHIFT,SNOWFLAKE,SQLDATAWAREHOUSE,SQLITE,SQLSERVER2012,SYBASE,TERADATA,VERTICA,YUGABYTEDB}) @NotNull WindowRowsAndStep<T> rowsBetweenFollowing(int number) Add aROWS BETWEEN [number] FOLLOWING …frame clause to the window function. -
rangeUnboundedPreceding
@NotNull @Support({AURORA_POSTGRES,BIGQUERY,COCKROACHDB,DB2,EXASOL,FIREBIRD_4_0,H2,INFORMIX,MARIADB,MEMSQL,MYSQL_8_0,ORACLE,POSTGRES,SNOWFLAKE,SQLDATAWAREHOUSE,SQLITE,SQLSERVER2012,SYBASE,TERADATA,VERTICA,YUGABYTEDB}) @NotNull WindowExcludeStep<T> rangeUnboundedPreceding()Add aRANGE UNBOUNDED PRECEDINGframe clause to the window function. -
rangePreceding
@NotNull @Support({AURORA_POSTGRES,BIGQUERY,COCKROACHDB,DB2,EXASOL,FIREBIRD_4_0,H2,INFORMIX,MARIADB,MEMSQL,MYSQL_8_0,ORACLE,POSTGRES,SNOWFLAKE,SQLDATAWAREHOUSE,SQLITE,SQLSERVER2012,SYBASE,TERADATA,VERTICA,YUGABYTEDB}) @NotNull WindowExcludeStep<T> rangePreceding(int number) Add aRANGE [number] PRECEDINGframe clause to the window function. -
rangeCurrentRow
@NotNull @Support({AURORA_POSTGRES,BIGQUERY,COCKROACHDB,DB2,EXASOL,FIREBIRD_4_0,H2,INFORMIX,MARIADB,MEMSQL,MYSQL_8_0,ORACLE,POSTGRES,SNOWFLAKE,SQLDATAWAREHOUSE,SQLITE,SQLSERVER2012,SYBASE,TERADATA,VERTICA,YUGABYTEDB}) @NotNull WindowExcludeStep<T> rangeCurrentRow()Add aRANGE CURRENT ROWframe clause to the window function. -
rangeUnboundedFollowing
@NotNull @Support({AURORA_POSTGRES,BIGQUERY,COCKROACHDB,DB2,EXASOL,FIREBIRD_4_0,H2,INFORMIX,MARIADB,MEMSQL,MYSQL_8_0,ORACLE,POSTGRES,SNOWFLAKE,SQLDATAWAREHOUSE,SQLITE,SQLSERVER2012,SYBASE,TERADATA,VERTICA,YUGABYTEDB}) @NotNull WindowExcludeStep<T> rangeUnboundedFollowing()Add aRANGE UNBOUNDED FOLLOWINGframe clause to the window function. -
rangeFollowing
@NotNull @Support({AURORA_POSTGRES,BIGQUERY,COCKROACHDB,DB2,EXASOL,FIREBIRD_4_0,H2,INFORMIX,MARIADB,MEMSQL,MYSQL_8_0,ORACLE,POSTGRES,SNOWFLAKE,SQLDATAWAREHOUSE,SQLITE,SQLSERVER2012,SYBASE,TERADATA,VERTICA,YUGABYTEDB}) @NotNull WindowExcludeStep<T> rangeFollowing(int number) Add aRANGE [number] FOLLOWINGframe clause to the window function. -
rangeBetweenUnboundedPreceding
@NotNull @Support({AURORA_POSTGRES,BIGQUERY,COCKROACHDB,DB2,EXASOL,FIREBIRD_4_0,H2,INFORMIX,MARIADB,MEMSQL,MYSQL_8_0,ORACLE,POSTGRES,SNOWFLAKE,SQLDATAWAREHOUSE,SQLITE,SQLSERVER2012,SYBASE,TERADATA,VERTICA,YUGABYTEDB}) @NotNull WindowRowsAndStep<T> rangeBetweenUnboundedPreceding()Add aRANGE BETWEEN UNBOUNDED PRECEDING …frame clause to the window function. -
rangeBetweenPreceding
@NotNull @Support({AURORA_POSTGRES,BIGQUERY,COCKROACHDB,DB2,EXASOL,FIREBIRD_4_0,H2,INFORMIX,MARIADB,MEMSQL,MYSQL_8_0,ORACLE,POSTGRES,SNOWFLAKE,SQLDATAWAREHOUSE,SQLITE,SQLSERVER2012,SYBASE,TERADATA,VERTICA,YUGABYTEDB}) @NotNull WindowRowsAndStep<T> rangeBetweenPreceding(int number) Add aRANGE BETWEEN [number] PRECEDING …frame clause to the window function. -
rangeBetweenCurrentRow
@NotNull @Support({AURORA_POSTGRES,BIGQUERY,COCKROACHDB,DB2,EXASOL,FIREBIRD_4_0,H2,INFORMIX,MARIADB,MEMSQL,MYSQL_8_0,ORACLE,POSTGRES,SNOWFLAKE,SQLDATAWAREHOUSE,SQLITE,SQLSERVER2012,SYBASE,TERADATA,VERTICA,YUGABYTEDB}) @NotNull WindowRowsAndStep<T> rangeBetweenCurrentRow()Add aRANGE BETWEEN CURRENT ROW …frame clause to the window function. -
rangeBetweenUnboundedFollowing
@NotNull @Support({AURORA_POSTGRES,BIGQUERY,COCKROACHDB,DB2,EXASOL,FIREBIRD_4_0,H2,INFORMIX,MARIADB,MEMSQL,MYSQL_8_0,ORACLE,POSTGRES,SNOWFLAKE,SQLDATAWAREHOUSE,SQLITE,SQLSERVER2012,SYBASE,TERADATA,VERTICA,YUGABYTEDB}) @NotNull WindowRowsAndStep<T> rangeBetweenUnboundedFollowing()Add aRANGE BETWEEN UNBOUNDED FOLLOWING …frame clause to the window function. -
rangeBetweenFollowing
@NotNull @Support({AURORA_POSTGRES,BIGQUERY,COCKROACHDB,DB2,EXASOL,FIREBIRD_4_0,H2,INFORMIX,MARIADB,MEMSQL,MYSQL_8_0,ORACLE,POSTGRES,SNOWFLAKE,SQLDATAWAREHOUSE,SQLITE,SQLSERVER2012,SYBASE,TERADATA,VERTICA,YUGABYTEDB}) @NotNull WindowRowsAndStep<T> rangeBetweenFollowing(int number) Add aRANGE BETWEEN [number] FOLLOWING …frame clause to the window function. -
groupsUnboundedPreceding
@NotNull @Support({COCKROACHDB,EXASOL,H2,ORACLE20C,POSTGRES_11,SQLITE_3_28,YUGABYTEDB}) @NotNull WindowExcludeStep<T> groupsUnboundedPreceding()Add aGROUPS UNBOUNDED PRECEDINGframe clause to the window function. -
groupsPreceding
@NotNull @Support({COCKROACHDB,EXASOL,H2,ORACLE20C,POSTGRES_11,SQLITE_3_28,YUGABYTEDB}) @NotNull WindowExcludeStep<T> groupsPreceding(int number) Add aGROUPS [number] PRECEDINGframe clause to the window function. -
groupsCurrentRow
@NotNull @Support({COCKROACHDB,EXASOL,H2,ORACLE20C,POSTGRES_11,SQLITE_3_28,YUGABYTEDB}) @NotNull WindowExcludeStep<T> groupsCurrentRow()Add aGROUPS CURRENT ROWframe clause to the window function. -
groupsUnboundedFollowing
@NotNull @Support({COCKROACHDB,EXASOL,H2,ORACLE20C,POSTGRES_11,SQLITE_3_28,YUGABYTEDB}) @NotNull WindowExcludeStep<T> groupsUnboundedFollowing()Add aGROUPS UNBOUNDED FOLLOWINGframe clause to the window function. -
groupsFollowing
@NotNull @Support({COCKROACHDB,EXASOL,H2,ORACLE20C,POSTGRES_11,SQLITE_3_28,YUGABYTEDB}) @NotNull WindowExcludeStep<T> groupsFollowing(int number) Add aGROUPS [number] FOLLOWINGframe clause to the window function. -
groupsBetweenUnboundedPreceding
@NotNull @Support({COCKROACHDB,EXASOL,H2,ORACLE20C,POSTGRES_11,SQLITE_3_28,YUGABYTEDB}) @NotNull WindowRowsAndStep<T> groupsBetweenUnboundedPreceding()Add aGROUPS BETWEEN UNBOUNDED PRECEDING …frame clause to the window function. -
groupsBetweenPreceding
@NotNull @Support({COCKROACHDB,EXASOL,H2,ORACLE20C,POSTGRES_11,SQLITE_3_28,YUGABYTEDB}) @NotNull WindowRowsAndStep<T> groupsBetweenPreceding(int number) Add aGROUPS BETWEEN [number] PRECEDING …frame clause to the window function. -
groupsBetweenCurrentRow
@NotNull @Support({COCKROACHDB,EXASOL,H2,ORACLE20C,POSTGRES_11,SQLITE_3_28,YUGABYTEDB}) @NotNull WindowRowsAndStep<T> groupsBetweenCurrentRow()Add aGROUPS BETWEEN CURRENT ROW …frame clause to the window function. -
groupsBetweenUnboundedFollowing
@NotNull @Support({COCKROACHDB,EXASOL,H2,ORACLE20C,POSTGRES_11,SQLITE_3_28,YUGABYTEDB}) @NotNull WindowRowsAndStep<T> groupsBetweenUnboundedFollowing()Add aGROUPS BETWEEN UNBOUNDED FOLLOWING …frame clause to the window function. -
groupsBetweenFollowing
@NotNull @Support({COCKROACHDB,EXASOL,H2,ORACLE20C,POSTGRES_11,SQLITE_3_28,YUGABYTEDB}) @NotNull WindowRowsAndStep<T> groupsBetweenFollowing(int number) Add aGROUPS BETWEEN [number] FOLLOWING …frame clause to the window function.
-