Class StructType
java.lang.Object
com.snowflake.snowpark_java.types.DataType
com.snowflake.snowpark_java.types.StructType
- All Implemented Interfaces:
Iterable<StructField>
An ordered list of
StructFields — the shape of a DataFrame, and itself a DataType so
it can nest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StructTypecreate(StructField... fields) Snowpark's factory spelling.get(int index) iterator()String[]names()nameToField(String name) The field of that name, or null.intsize()toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
StructType
-
StructType
-
-
Method Details
-
create
Snowpark's factory spelling. -
size
public int size() -
get
-
nameToField
The field of that name, or null. Column names are matched the way SQL resolves them: ignoring case. -
names
-
iterator
- Specified by:
iteratorin interfaceIterable<StructField>
-
toString
-