Class DataTypes
- java.lang.Object
-
- com.snowflake.snowpark_java.types.DataTypes
-
public final class DataTypes extends Object
This class contains all singleton DataTypes and factory methods.- Since:
- 0.9.0
-
-
Field Summary
Fields Modifier and Type Field Description static BinaryTypeBinaryTypeRetrieves the BinaryType object.static BooleanTypeBooleanTypeRetrieves the BooleanType object.static ByteTypeByteTypeRetrieves the ByteType object.static DateTypeDateTypeRetrieves the DateType object.static DoubleTypeDoubleTypeRetrieves the DoubleType object.static FloatTypeFloatTypeRetrieves the FloatType object.static GeographyTypeGeographyTypeRetrieves the GeographyType object.static GeometryTypeGeometryTypeRetrieves the GeometryType object.static IntegerTypeIntegerTypeRetrieves the IntegerType object.static LongTypeLongTypeRetrieves the LongType object.static ShortTypeShortTypeRetrieves the ShortType object.static StringTypeStringTypeRetrieves the StringType object.static TimestampTypeTimestampTypeRetrieves the TimestampType object.static TimeTypeTimeTypeRetrieves the TimeType object.static VariantTypeVariantTypeRetrieves the VariantType object.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ArrayTypecreateArrayType(DataType elementType)Creates a new ArrayType object.static DecimalTypecreateDecimalType(int precision, int scale)Creates a new DecimalType object.static MapTypecreateMapType(DataType keyType, DataType valueType)Create a new MapType object.
-
-
-
Field Detail
-
ByteType
public static final ByteType ByteType
Retrieves the ByteType object.- Since:
- 0.9.0
-
ShortType
public static final ShortType ShortType
Retrieves the ShortType object.- Since:
- 0.9.0
-
IntegerType
public static final IntegerType IntegerType
Retrieves the IntegerType object.- Since:
- 0.9.0
-
LongType
public static final LongType LongType
Retrieves the LongType object.- Since:
- 0.9.0
-
FloatType
public static final FloatType FloatType
Retrieves the FloatType object.- Since:
- 0.9.0
-
DoubleType
public static final DoubleType DoubleType
Retrieves the DoubleType object.- Since:
- 0.9.0
-
BinaryType
public static final BinaryType BinaryType
Retrieves the BinaryType object.- Since:
- 0.9.0
-
BooleanType
public static final BooleanType BooleanType
Retrieves the BooleanType object.- Since:
- 0.9.0
-
DateType
public static final DateType DateType
Retrieves the DateType object.- Since:
- 0.9.0
-
GeographyType
public static final GeographyType GeographyType
Retrieves the GeographyType object.- Since:
- 0.9.0
-
GeometryType
public static final GeometryType GeometryType
Retrieves the GeometryType object.- Since:
- 1.12.0
-
StringType
public static final StringType StringType
Retrieves the StringType object.- Since:
- 0.9.0
-
TimestampType
public static final TimestampType TimestampType
Retrieves the TimestampType object.- Since:
- 0.9.0
-
TimeType
public static final TimeType TimeType
Retrieves the TimeType object.- Since:
- 0.9.0
-
VariantType
public static final VariantType VariantType
Retrieves the VariantType object.- Since:
- 0.9.0
-
-
Method Detail
-
createDecimalType
public static DecimalType createDecimalType(int precision, int scale)
Creates a new DecimalType object.- Parameters:
precision- An int number representing the precisionscale- An int number representing the scale- Returns:
- A new DecimalType object
- Since:
- 0.9.0
-
createArrayType
public static ArrayType createArrayType(DataType elementType)
Creates a new ArrayType object.- Parameters:
elementType- The data type of array's element- Returns:
- A new ArrayType object
-
-