VectorType

sealed class VectorType

Inheritors

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class Listy @JvmOverloads constructor(val arrowType: ArrowType, val elType: VectorType, val encoding: Encoding = Encoding.Plain) : VectorType.Mono
Link copied to clipboard
data class Maybe(val mono: VectorType.Mono) : VectorType
Link copied to clipboard
sealed class Mono : VectorType
Link copied to clipboard
data object Nothing : VectorType

The lattice bottom: no values seen yet, no constraint. Nothing ⊔ X = X.

Link copied to clipboard
data object Null : VectorType.Mono
Link copied to clipboard
data class Poly @JvmOverloads constructor(children: Set<VectorType.Mono>, val encoding: Encoding = Encoding.Plain) : VectorType
Link copied to clipboard
data class Scalar @JvmOverloads constructor(val arrowType: ArrowType, val encoding: Encoding = Encoding.Plain) : VectorType.Mono
Link copied to clipboard
data class Struct @JvmOverloads constructor(val children: Map<FieldName, VectorType>, val encoding: Encoding = Encoding.Plain) : VectorType.Mono

Properties

Link copied to clipboard
abstract val arrowType: ArrowType

The values' type, whatever their encoding.

Link copied to clipboard
abstract val asLegField: Field
Link copied to clipboard
@get:JvmName(name = "asMono")
val asMono: VectorType.Mono
Link copied to clipboard
abstract val encoding: Encoding
Link copied to clipboard
Link copied to clipboard
abstract val nullable: Boolean
Link copied to clipboard
abstract val unencoded: VectorType

The type of the values themselves: this type with no encoding at any depth — this, where it has none.

Functions

Link copied to clipboard
fun runEndEncoded(width: RunEndWidth = RunEndWidth.I32): VectorType
Link copied to clipboard
abstract fun toField(name: FieldName): Field
Link copied to clipboard
abstract fun withEncoding(encoding: Encoding): VectorType

This type with its values laid out as encoding.