Package io.trino.sql.tree
Class QualifiedName
- java.lang.Object
-
- io.trino.sql.tree.QualifiedName
-
public class QualifiedName extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)List<Identifier>getOriginalParts()List<String>getParts()Optional<QualifiedName>getPrefix()For an identifier of the form "a.b.c.d", returns "a.b.c" For an identifier of the form "a", returns absentStringgetSuffix()inthashCode()booleanhasSuffix(QualifiedName suffix)static QualifiedNameof(Iterable<Identifier> originalParts)static QualifiedNameof(String name)static QualifiedNameof(String first, String... rest)StringtoString()
-
-
-
Method Detail
-
of
public static QualifiedName of(String first, String... rest)
-
of
public static QualifiedName of(String name)
-
of
public static QualifiedName of(Iterable<Identifier> originalParts)
-
getOriginalParts
public List<Identifier> getOriginalParts()
-
getPrefix
public Optional<QualifiedName> getPrefix()
For an identifier of the form "a.b.c.d", returns "a.b.c" For an identifier of the form "a", returns absent
-
hasSuffix
public boolean hasSuffix(QualifiedName suffix)
-
getSuffix
public String getSuffix()
-
-