Class DataTypes
java.lang.Object
com.snowflake.snowpark_java.types.DataTypes
The type instances a handler names, e.g.
new StructField("id", DataTypes.LongType).
Each constant is typed as its own class rather than as DataType, matching Snowpark, so
StringType s = DataTypes.StringType compiles.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BinaryTypestatic final BooleanTypestatic final ByteTypestatic final DateTypestatic final DoubleTypestatic final FloatTypestatic final GeographyTypestatic final GeometryTypestatic final IntegerTypestatic final LongTypestatic final ShortTypestatic final StringTypestatic final TimestampTypestatic final TimeTypestatic final VariantType -
Method Summary
Modifier and TypeMethodDescriptionstatic ArrayTypecreateArrayType(DataType elementType) static DecimalTypecreateDecimalType(int precision, int scale) static MapTypecreateMapType(DataType keyType, DataType valueType) static StructTypecreateStructType(StructField[] fields)
-
Field Details
-
BinaryType
-
BooleanType
-
ByteType
-
DateType
-
DoubleType
-
FloatType
-
GeographyType
-
GeometryType
-
IntegerType
-
LongType
-
ShortType
-
StringType
-
TimeType
-
TimestampType
-
VariantType
-
-
Method Details
-
createDecimalType
-
createArrayType
-
createMapType
-
createStructType
-