Frame

class Frame(val schema: DataFrameSchema, val nullable: Boolean, val contentType: KType?) : ColumnSchema

The schema of a frame column.

Constructors

Link copied to clipboard
constructor(schema: DataFrameSchema, nullable: Boolean, contentType: KType?)

Properties

Link copied to clipboard
open override val contentType: KType?

The type associated with the contents of the column. For Value this is irrelevant and thus null. Use type instead. For Group this is the common base type associated with all the DataRows in the column. For Frame this is the common base type associated with all the DataFrames in the column.

Link copied to clipboard
open override val kind: ColumnKind

Either Value or Group or Frame.

Link copied to clipboard
open override val nullable: Boolean

Whether the column is nullable. Is always false for Group.

Link copied to clipboard

The DataFrameSchema of the dataframes held by the column.

Link copied to clipboard
open override val type: KType

The type of the column. For Value this is the common base type associated with all the values in the column. For Group this is AnyRow. For Frame this is AnyFrame.

Functions

Link copied to clipboard
fun compare(other: ColumnSchema, comparisonMode: ComparisonMode = LENIENT): CompareResult

Compares this column schema with the other column schema.

fun compare(other: ColumnSchema.Frame, comparisonMode: ComparisonMode = LENIENT): CompareResult
Link copied to clipboard

Create "empty" column based on the toplevel of this ColumnSchema.

Link copied to clipboard
internal fun ColumnSchema.createNullFilledColumn(name: String, numberOfRows: Int): AnyCol

Creates a column based on this ColumnSchema filled with null or empty dataframes.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Checks equality by kind, type, or schema

Link copied to clipboard
open override fun hashCode(): Int