This project is a demonstration of Kotlin DataFrame compiler plugin.
- Install
IntelliJ IDEA 2024.2
- Enable K2 mode in the Settings
- Restart the IDE
- Press Double Shift and search for
Registry
- Un-check
kotlin.k2.only.bundled.compiler.plugins.enabled
- Sync the project
At this point, properties provided by the compiler plugin should appear. If they're red, don't hesitate to reach out for help in the issue tracker.
Multiple examples are provided:
- WowAH.kt starts with defined DataSchema
- JetBrainsRepositories.kt infers DataSchema from the data
- SupportedAPI.kt provides an overview for things that plugin can do.
- DataClasses.kt is an entry point if the data you want to play with can be conveniently created as a list of object instances. Then it can be converted to DataFrame
- GenerateSchema.kt and UseSchema.kt is an entry point if you have a file or API with data
- JetBrainsRepositoriesAdvanced.kt shows how to create functions
- Kandy.kt shows how properties provided by the plugin can be used to build plots with Kandy
Have a look at first and second to get an idea why and how the plugin is useful.
If you want to try in with your data, check out examples 4 and 5. SupportedAPI.kt will help to understand where to expect generated properties.