Package net.sf.jsqlparser.expression
Class AnalyticExpression
java.lang.Object
net.sf.jsqlparser.parser.ASTNodeAccessImpl
net.sf.jsqlparser.expression.AnalyticExpression
- All Implemented Interfaces:
Serializable
,Expression
,Model
,ASTNodeAccess
Analytic function. The name of the function is variable but the parameters following the special
analytic function path. e.g. row_number() over (order by test). Additional there can be an
expression for an analytical aggregate like sum(col) or the "all collumns" wildcard like
count(*).
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private Expression
private boolean
private Expression
private Expression
private List
<OrderByElement> private boolean
private boolean
private KeepExpression
private String
private Expression
private AnalyticType
private boolean
private WindowDefinition
private String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(ExpressionVisitor expressionVisitor) <E extends Expression>
EgetDefaultValue
(Class<E> type) <E extends Expression>
EgetExpression
(Class<E> type) <E extends Expression>
EgetFilterExpression
(Class<E> type) getKeep()
getName()
<E extends Expression>
EgetType()
boolean
boolean
boolean
boolean
boolean
boolean
isUnique()
void
setAllColumns
(boolean allColumns) void
setDefaultValue
(Expression defaultValue) void
setDistinct
(boolean distinct) void
setExpression
(Expression expression) void
setFilterExpression
(Expression filterExpression) void
setFuncOrderBy
(List<OrderByElement> funcOrderBy) void
setIgnoreNulls
(boolean ignoreNulls) void
setIgnoreNullsOutside
(boolean ignoreNullsOutside) void
setKeep
(KeepExpression keep) void
void
setOffset
(Expression offset) void
setOrderByElements
(List<OrderByElement> orderByElements) void
setPartitionExpressionList
(ExpressionList partitionExpressionList) void
setPartitionExpressionList
(ExpressionList partitionExpressionList, boolean brackets) void
setType
(AnalyticType type) void
setUnique
(boolean unique) void
setWindowDefinition
(WindowDefinition windowDef) void
setWindowElement
(WindowElement windowElement) void
setWindowName
(String windowName) toString()
withAllColumns
(boolean allColumns) withDefaultValue
(Expression defaultValue) withDistinct
(boolean distinct) withExpression
(Expression expression) withFilterExpression
(Expression filterExpression) withIgnoreNulls
(boolean ignoreNulls) withKeep
(KeepExpression keep) withOffset
(Expression offset) withType
(AnalyticType type) withUnique
(boolean unique) withWindowElement
(WindowElement windowElement) Methods inherited from class net.sf.jsqlparser.parser.ASTNodeAccessImpl
appendTo, getASTNode, setASTNode
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.sf.jsqlparser.parser.ASTNodeAccess
getASTNode, setASTNode
-
Field Details
-
name
-
expression
-
offset
-
defaultValue
-
allColumns
private boolean allColumns -
keep
-
type
-
distinct
private boolean distinct -
unique
private boolean unique -
ignoreNulls
private boolean ignoreNulls -
ignoreNullsOutside
private boolean ignoreNullsOutside -
filterExpression
-
funcOrderBy
-
windowName
-
windowDef
-
-
Constructor Details
-
AnalyticExpression
public AnalyticExpression() -
AnalyticExpression
-
-
Method Details
-
accept
- Specified by:
accept
in interfaceExpression
-
getOrderByElements
-
setOrderByElements
-
getKeep
-
setKeep
-
getPartitionExpressionList
-
setPartitionExpressionList
-
setPartitionExpressionList
-
isPartitionByBrackets
public boolean isPartitionByBrackets() -
getName
-
setName
-
getExpression
-
setExpression
-
getOffset
-
setOffset
-
getDefaultValue
-
setDefaultValue
-
getWindowElement
-
setWindowElement
-
getType
-
setType
-
isDistinct
public boolean isDistinct() -
setDistinct
public void setDistinct(boolean distinct) -
isUnique
public boolean isUnique() -
setUnique
public void setUnique(boolean unique) -
isIgnoreNulls
public boolean isIgnoreNulls() -
setIgnoreNulls
public void setIgnoreNulls(boolean ignoreNulls) -
isIgnoreNullsOutside
public boolean isIgnoreNullsOutside() -
setIgnoreNullsOutside
public void setIgnoreNullsOutside(boolean ignoreNullsOutside) -
getWindowName
-
setWindowName
-
getWindowDefinition
-
setWindowDefinition
-
toString
-
isAllColumns
public boolean isAllColumns() -
setAllColumns
public void setAllColumns(boolean allColumns) -
getFilterExpression
-
setFilterExpression
-
withName
-
withExpression
-
withOffset
-
withDefaultValue
-
withAllColumns
-
withKeep
-
withType
-
withDistinct
-
withUnique
-
withIgnoreNulls
-
withFilterExpression
-
withWindowElement
-
getExpression
-
getOffset
-
getDefaultValue
-
getFilterExpression
-
getFuncOrderBy
-
setFuncOrderBy
-