Skip to content

Commit a6b435d

Browse files
committed
Add API that debugger renderer can rely on to avoid breaking changes
1 parent af83646 commit a6b435d

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

dataframe-json/build.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ tasks.withType<KotlinCompile> {
4545
friendPaths.from(project(projects.core.path).projectDir)
4646
}
4747

48+
tasks.withType<Javadoc> {
49+
enabled = false
50+
}
51+
4852
tasks.test {
4953
useJUnitPlatform()
5054
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package org.jetbrains.kotlinx.dataframe.io;
2+
3+
import org.jetbrains.kotlinx.dataframe.DataFrame;
4+
import java.util.Collections;
5+
6+
class JsonFacadeForDebugger {
7+
/**
8+
* utility for rendering dataframe as interactive table in the debugger - it needs json model
9+
* Java class easier to discover in the debugger
10+
* DO NOT BREAK ABI OF THIS METHOD!!
11+
* Keep it for backward compatibility, create a new method if signature must change
12+
*/
13+
static String convertToJson(DataFrame<?> df, int rowLimit, Integer nestedRowLimit) {
14+
return JsonKt.toJsonWithMetadata(df, rowLimit, nestedRowLimit, false, Collections.emptyList(), false);
15+
}
16+
}

0 commit comments

Comments
 (0)