Class ColumnSegment
- java.lang.Object
-
- org.apache.shardingsphere.sql.parser.sql.common.segment.dml.column.ColumnSegment
-
- All Implemented Interfaces:
ASTNode,ExpressionSegment,OwnerAvailable,SQLSegment
public final class ColumnSegment extends Object implements ExpressionSegment, OwnerAvailable
Column segment.
-
-
Constructor Summary
Constructors Constructor Description ColumnSegment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetExpression()Get expression.Optional<OwnerSegment>getOwner()Get owner.StringgetQualifiedName()Get qualified name with quote characters.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.shardingsphere.sql.parser.sql.common.segment.generic.OwnerAvailable
setOwner
-
Methods inherited from interface org.apache.shardingsphere.sql.parser.sql.common.segment.SQLSegment
getStartIndex, getStopIndex
-
-
-
-
Method Detail
-
getQualifiedName
public String getQualifiedName()
Get qualified name with quote characters. i.e. `field1`, `table1`, field1, table1, `table1`.`field1`, `table1`.field1, table1.`field1` or table1.field1- Returns:
- qualified name with quote characters
-
getExpression
public String getExpression()
Get expression.- Returns:
- expression
-
getOwner
public Optional<OwnerSegment> getOwner()
Description copied from interface:OwnerAvailableGet owner.- Specified by:
getOwnerin interfaceOwnerAvailable- Returns:
- owner
-
-