Class DecimalType
- java.lang.Object
-
- com.snowflake.snowpark_java.types.DataType
-
- com.snowflake.snowpark_java.types.DecimalType
-
- All Implemented Interfaces:
Serializable
public class DecimalType extends DataType
Decimal data type. Mapped to NUMBER Snowflake date type.- Since:
- 0.9.0
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
MAX_PRECISION
static int
MAX_SCALE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object other)
Verifies if a DataType equals to this one.int
getPrecision()
Retrieves the precision of this decimal number.int
getScale()
Retrieves the scale of this decimal number.int
hashCode()
Calculates the hash code of this Decimal Type Object.String
toString()
Generates a String value to represent this DecimalType.
-
-
-
Field Detail
-
MAX_PRECISION
public static final int MAX_PRECISION
- See Also:
- Constant Field Values
-
MAX_SCALE
public static final int MAX_SCALE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getPrecision
public int getPrecision()
Retrieves the precision of this decimal number.- Returns:
- An int value representing the precision of this decimal number
- Since:
- 0.9.0
-
getScale
public int getScale()
Retrieves the scale of this decimal number.- Returns:
- An int value representing the scale of this decimal number
- Since:
- 0.9.0
-
toString
public String toString()
Generates a String value to represent this DecimalType.
-
equals
public boolean equals(Object other)
Verifies if a DataType equals to this one.
-
-