Class DecimalType
- java.lang.Object
-
- com.snowflake.snowpark_java.types.DataType
-
- com.snowflake.snowpark_java.types.DecimalType
-
- All Implemented Interfaces:
java.io.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 intMAX_PRECISIONstatic intMAX_SCALE
-
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.intgetPrecision()Retrieves the precision of this decimal number.intgetScale()Retrieves the scale of this decimal number.inthashCode()Calculates the hash code of this Decimal Type Object.java.lang.StringtoString()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 java.lang.String toString()
Generates a String value to represent this DecimalType.
-
equals
public boolean equals(java.lang.Object other)
Verifies if a DataType equals to this one.
-
-