Package-level declarations

Types

Link copied to clipboard
class Base64ImageEncodingOptions(val imageSizeLimit: Int = DEFAULT_IMG_SIZE, options: Int = GZIP_ON or LIMIT_SIZE_ON)

Class representing the options for encoding images.

Link copied to clipboard
interface CustomEncoder

Interface for defining a custom encoder. That applied to the value during dataframe JSON serialization

Link copied to clipboard
Link copied to clipboard
class JSON(typeClashTactic: JSON.TypeClashTactic = ARRAY_AND_VALUE_COLUMNS, keyValuePaths: List<JsonPath> = emptyList(), unifyNumbers: Boolean = true) : SupportedDataFrameFormat
Link copied to clipboard

Properties

Link copied to clipboard
internal const val ARRAY_COLUMN_NAME: String
Link copied to clipboard
internal const val DEFAULT_IMG_SIZE: Int = 600
Link copied to clipboard
internal const val VALUE_COLUMN_NAME: String

Functions

Link copied to clipboard
fun DataFrame.Companion.readJson(file: File, header: List<String> = emptyList(), keyValuePaths: List<JsonPath> = emptyList(), typeClashTactic: JSON.TypeClashTactic = ARRAY_AND_VALUE_COLUMNS, unifyNumbers: Boolean = true): AnyFrame
fun DataFrame.Companion.readJson(url: URL, header: List<String> = emptyList(), keyValuePaths: List<JsonPath> = emptyList(), typeClashTactic: JSON.TypeClashTactic = ARRAY_AND_VALUE_COLUMNS, unifyNumbers: Boolean = true): AnyFrame
fun DataFrame.Companion.readJson(path: Path, header: List<String> = emptyList(), keyValuePaths: List<JsonPath> = emptyList(), typeClashTactic: JSON.TypeClashTactic = ARRAY_AND_VALUE_COLUMNS, unifyNumbers: Boolean = true): AnyFrame
fun DataFrame.Companion.readJson(path: String, header: List<String> = emptyList(), keyValuePaths: List<JsonPath> = emptyList(), typeClashTactic: JSON.TypeClashTactic = ARRAY_AND_VALUE_COLUMNS, unifyNumbers: Boolean = true): AnyFrame
fun DataRow.Companion.readJson(file: File, header: List<String> = emptyList(), keyValuePaths: List<JsonPath> = emptyList(), typeClashTactic: JSON.TypeClashTactic = ARRAY_AND_VALUE_COLUMNS, unifyNumbers: Boolean = true): AnyRow
fun DataRow.Companion.readJson(url: URL, header: List<String> = emptyList(), keyValuePaths: List<JsonPath> = emptyList(), typeClashTactic: JSON.TypeClashTactic = ARRAY_AND_VALUE_COLUMNS, unifyNumbers: Boolean = true): AnyRow
fun DataRow.Companion.readJson(path: Path, header: List<String> = emptyList(), keyValuePaths: List<JsonPath> = emptyList(), typeClashTactic: JSON.TypeClashTactic = ARRAY_AND_VALUE_COLUMNS, unifyNumbers: Boolean = true): AnyRow
fun DataRow.Companion.readJson(path: String, header: List<String> = emptyList(), keyValuePaths: List<JsonPath> = emptyList(), typeClashTactic: JSON.TypeClashTactic = ARRAY_AND_VALUE_COLUMNS, unifyNumbers: Boolean = true): AnyRow
fun DataFrame.Companion.readJson(stream: InputStream, header: List<String> = emptyList(), keyValuePaths: List<JsonPath> = emptyList(), typeClashTactic: JSON.TypeClashTactic = ARRAY_AND_VALUE_COLUMNS, unifyNumbers: Boolean = true, format: Json = Json.Default): AnyFrame
fun DataRow.Companion.readJson(stream: InputStream, header: List<String> = emptyList(), keyValuePaths: List<JsonPath> = emptyList(), typeClashTactic: JSON.TypeClashTactic = ARRAY_AND_VALUE_COLUMNS, unifyNumbers: Boolean = true, format: Json = Json.Default): AnyRow
Link copied to clipboard
fun DataFrame.Companion.readJsonStr(text: String, header: List<String> = emptyList(), keyValuePaths: List<JsonPath> = emptyList(), typeClashTactic: JSON.TypeClashTactic = ARRAY_AND_VALUE_COLUMNS, unifyNumbers: Boolean = true): AnyFrame
fun DataRow.Companion.readJsonStr(text: String, header: List<String> = emptyList(), keyValuePaths: List<JsonPath> = emptyList(), typeClashTactic: JSON.TypeClashTactic = ARRAY_AND_VALUE_COLUMNS, unifyNumbers: Boolean = true): AnyRow
Link copied to clipboard
fun AnyFrame.toJson(prettyPrint: Boolean = false): String

Converts this DataFrame to a JSON array; each row becomes an element of that array.

fun AnyRow.toJson(prettyPrint: Boolean = false): String
Link copied to clipboard
fun AnyFrame.toJsonWithMetadata(rowLimit: Int, nestedRowLimit: Int? = null, prettyPrint: Boolean = false, customEncoders: List<CustomEncoder> = emptyList(), isFormatted: Boolean = false): String

Converts the DataFrame to a JSON string representation with additional metadata about serialized data. It is heavily used to implement some integration features in Kotlin Notebook IntelliJ IDEA plugin.

Link copied to clipboard
fun AnyFrame.writeJson(file: File, prettyPrint: Boolean = false)
fun AnyFrame.writeJson(writer: Appendable, prettyPrint: Boolean = false)
fun AnyFrame.writeJson(path: Path, prettyPrint: Boolean = false)
fun AnyFrame.writeJson(path: String, prettyPrint: Boolean = false)
fun AnyRow.writeJson(file: File, prettyPrint: Boolean = false)
fun AnyRow.writeJson(writer: Appendable, prettyPrint: Boolean = false)
fun AnyRow.writeJson(path: Path, prettyPrint: Boolean = false)
fun AnyRow.writeJson(path: String, prettyPrint: Boolean = false)