Package io.github.fupacat.ast
Class TopRowFilter
java.lang.Object
io.github.fupacat.ast.TSqlFragment
io.github.fupacat.ast.TopRowFilter
- All Implemented Interfaces:
Serializable
This class represents the top row filter, that can be used in select statement.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe expression.booleanTrue if PERCENT keyword was used.booleanTrue if WITH APPROXIMATE (or APPROX) keyword was used.booleanTrue is WITH TIES keywords were 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
-
Expression
The expression. -
Percent
public boolean PercentTrue if PERCENT keyword was used. -
WithTies
public boolean WithTiesTrue is WITH TIES keywords were used. Important: The interpreter has to check there is an order by clause. -
WithApproximate
public boolean WithApproximateTrue if WITH APPROXIMATE (or APPROX) keyword was used. Introduced in SQL Server 2025 for approximate query processing.
-
-
Constructor Details
-
TopRowFilter
public TopRowFilter()
-
-
Method Details
-
accept
- Specified by:
acceptin classTSqlFragment
-
acceptChildren
- Overrides:
acceptChildrenin classTSqlFragment
-