Class DataType
- java.lang.Object
-
- com.snowflake.snowpark_java.types.DataType
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
ArrayType,BinaryType,BooleanType,ByteType,DateType,DecimalType,DoubleType,FloatType,GeographyType,GeometryType,IntegerType,LongType,MapType,ShortType,StringType,StructType,TimestampType,TimeType,VariantType
public abstract class DataType extends java.lang.Object implements java.io.SerializableSnowpark data types- Since:
- 0.9.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DataType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)Verifies if a DataType equals to this one.inthashCode()Calculates the hash code of this DataType Type Object.java.lang.StringtoString()Generates a String value to represent this DataType object.java.lang.StringtypeName()Retrieves the String name of this DataType object.
-
-
-
Method Detail
-
typeName
public java.lang.String typeName()
Retrieves the String name of this DataType object.- Returns:
- A String name of this DataType object
- Since:
- 0.9.0
-
toString
public java.lang.String toString()
Generates a String value to represent this DataType object.- Overrides:
toStringin classjava.lang.Object- Returns:
- A String value in the format of XXXType
- Since:
- 0.9.0
-
equals
public boolean equals(java.lang.Object other)
Verifies if a DataType equals to this one.- Overrides:
equalsin classjava.lang.Object- Parameters:
other- A DataType object- Returns:
- true if these data types are equivalent, false for otherwise.
- Since:
- 0.9.0
-
hashCode
public int hashCode()
Calculates the hash code of this DataType Type Object.- Overrides:
hashCodein classjava.lang.Object- Returns:
- An int number representing the hash code value
- Since:
- 0.9.0
-
-