Package io.github.fupacat.ast
Class OffsetClause
java.lang.Object
io.github.fupacat.ast.TSqlFragment
io.github.fupacat.ast.OffsetClause
- All Implemented Interfaces:
Serializable
This class represents an offset/fetch filter, that can be used in select statements for paging the result set.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionExpression for number fo rows to return.Expression for number fo rows to skip.booleanTrue if FETCH APPROXIMATE (or APPROX) keyword was used.Fields inherited from class io.github.fupacat.ast.TSqlFragment
firstTokenIndex, lastTokenIndex, ScriptTokenStream, Value -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(TSqlFragmentVisitor visitor) voidacceptChildren(TSqlFragmentVisitor visitor) Methods inherited from class io.github.fupacat.ast.TSqlFragment
SetIdentifier, SetUnquotedIdentifier, UpdateTokenInfo, UpdateTokenInfo
-
Field Details
-
OffsetExpression
Expression for number fo rows to skip. -
FetchExpression
Expression for number fo rows to return. -
WithApproximate
public boolean WithApproximateTrue if FETCH APPROXIMATE (or APPROX) keyword was used. Only valid in SQL Server 2025 (170) and above. Note: APPROXIMATE is not valid with OFFSET; only FETCH APPROXIMATE is supported.
-
-
Constructor Details
-
OffsetClause
public OffsetClause()
-
-
Method Details
-
accept
- Specified by:
acceptin classTSqlFragment
-
acceptChildren
- Overrides:
acceptChildrenin classTSqlFragment
-