Class ColumnReferenceExpression
java.lang.Object
dev.frostlake.executor.expressions.ColumnReferenceExpression
- All Implemented Interfaces:
Expression
- Direct Known Subclasses:
ConnectByRootExpression,PriorExpression
Represents a column reference (e.g., "name", "users.id", "u.name")
-
Constructor Summary
ConstructorsConstructorDescriptionColumnReferenceExpression(String columnName) ColumnReferenceExpression(String tableName, String columnName) ColumnReferenceExpression(String tableName, String columnName, SourcePosition position) A reference that remembers where it sat in the text it was parsed from, so a message about it can carry the position Snowflake always reports.ColumnReferenceExpression(String tableName, String columnName, SourcePosition position, int positionalOrdinal) The$Nflavour — seegetPositionalOrdinal(). -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(ExpressionVisitor<T> visitor) Accept a visitor for the visitor patternvoiddescribeStar(StarArgument star) Marks this reference as the star argumentstar; seegetStarArgument().Where this reference sat in its fragment, or null when nobody wrote it.intN when this reference was written$N, 0 when it was written as a name.The star — qualifier, EXCLUDE and ILIKE — when this reference is a star written beside other function arguments, which the evaluator splices into the list as the columns it names.How this reference was written, or null when it was synthesised.booleanvoidsetWrittenName(String written) Records the written spelling; seegetWrittenName().toString()
-
Constructor Details
-
ColumnReferenceExpression
-
ColumnReferenceExpression
-
ColumnReferenceExpression
A reference that remembers where it sat in the text it was parsed from, so a message about it can carry the position Snowflake always reports. SeeSourcePositionfor why the place is fragment-relative and not absolute. -
ColumnReferenceExpression
public ColumnReferenceExpression(String tableName, String columnName, SourcePosition position, int positionalOrdinal) The$Nflavour — seegetPositionalOrdinal().
-
-
Method Details
-
getWrittenName
How this reference was written, or null when it was synthesised. -
setWrittenName
Records the written spelling; seegetWrittenName(). -
getPositionalOrdinal
public int getPositionalOrdinal()N when this reference was written$N, 0 when it was written as a name. -
getPosition
Where this reference sat in its fragment, or null when nobody wrote it. -
getTableName
-
getColumnName
-
isQualified
public boolean isQualified() -
getStarArgument
The star — qualifier, EXCLUDE and ILIKE — when this reference is a star written beside other function arguments, which the evaluator splices into the list as the columns it names. -
describeStar
Marks this reference as the star argumentstar; seegetStarArgument(). -
accept
Description copied from interface:ExpressionAccept a visitor for the visitor pattern- Specified by:
acceptin interfaceExpression
-
toString
-