Class ColumnIdentifier
- java.lang.Object
-
- com.snowflake.snowpark_java.types.ColumnIdentifier
-
-
Constructor Summary
Constructors Constructor Description ColumnIdentifier(String name)
Creates a ColumnIdentifier object for the giving column name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ColumnIdentifier
clone()
Creates a clone of thisColumnIdentifier
object.boolean
equals(Object other)
Compares this ColumnIdentifier with the giving oneint
hashCode()
Calculates the hash code of this ColumnIdentifier.String
name()
Returns the name of column.String
quotedName()
Returns the quoted name of this column Name Format: 1.String
toString()
Generates a String value to represent this Column Identifier.
-
-
-
Constructor Detail
-
ColumnIdentifier
public ColumnIdentifier(String name)
Creates a ColumnIdentifier object for the giving column name. Identifier Requirement can be found from https://docs.snowflake.com/en/sql-reference/identifiers-syntax.html- Parameters:
name
- The column name- Since:
- 0.9.0
-
-
Method Detail
-
name
public String name()
Returns the name of column. Name format: 1. if the name quoted. a. starts with _A-Z and follows by _A-Z0-9$: remove quotes b. starts with $ and follows by digits: remove quotes c. otherwise, do nothing 2. if not quoted. a. starts with _a-zA-Z and follows by _a-zA-Z0-9$, upper case all letters. b. starts with $ and follows by digits, do nothing c. otherwise, quote nameMore details can be found from https://docs.snowflake.com/en/sql-reference/identifiers-syntax.html
- Returns:
- A String value representing the name
- Since:
- 0.9.0
-
quotedName
public String quotedName()
Returns the quoted name of this column Name Format: 1. if quoted, do nothing 2. if not quoted. a. starts with _a-zA-Z and follows by _a-zA-Z0-9$, upper case all letters and then quote b. otherwise, quote nameIt is same as [[name]], but quotes always added. It is always safe to do String comparisons between quoted column names
- Returns:
- A String value representing the quoted name
- Since:
- 0.9.0
-
equals
public boolean equals(Object other)
Compares this ColumnIdentifier with the giving one
-
hashCode
public int hashCode()
Calculates the hash code of this ColumnIdentifier.
-
toString
public String toString()
Generates a String value to represent this Column Identifier.
-
clone
public ColumnIdentifier clone()
Creates a clone of thisColumnIdentifier
object.
-
-