Skip to content

Commit cb884c8

Browse files
authored
Merge pull request #321 from Kotlin/type-argument-docs
Provide extra pointers to operations with DataFrame type argument
2 parents 565ba1f + f661ee4 commit cb884c8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/StardustDocs/topics/adjustSchema.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22

33
[`DataFrame`](DataFrame.md) interface has type argument `T` that doesn't affect contents of [`DataFrame`](DataFrame.md),
44
but marks [`DataFrame`](DataFrame.md) with a type that represents data schema that this [`DataFrame`](DataFrame.md) is supposed to have.
5-
This argument is used to generate [extension properties](extensionPropertiesApi.md) for typed data access.
5+
This argument is used to generate [extension properties](extensionPropertiesApi.md) for typed data access.
6+
7+
Another place where this argument has a special role is in [interop with data classes](collectionsInterop.md#interop-with-data-classes):
8+
* `List<T>` -> `DataFrame<T>`: [toDataFrame](createDataFrame.md#todataframe)
9+
* `DataFrame<T>` -> `List<T>`: [toList](toList.md)
610

711
Actual data in [`DataFrame`](DataFrame.md) may diverge from compile-time schema marker `T` due to dynamic nature of data inside [`DataFrame`](DataFrame.md).
812
However, at some points of code you may know exactly what [`DataFrame`](DataFrame.md) schema is expected.

0 commit comments

Comments
 (0)