SchemaV2Field

Contains details about a schema field in the V2 format. This field format supports nested and complex data types such as struct, list, and map, in addition to primitive types.

Types

Link copied to clipboard
class Builder
Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val doc: String?

An optional description of the field.

Link copied to clipboard
val id: Int

The unique identifier for the schema field. Field IDs are used by Apache Iceberg to track schema evolution and maintain compatibility across schema changes.

Link copied to clipboard

The name of the field.

Link copied to clipboard

A Boolean value that specifies whether values are required for each row in this field. If this is true, the field does not allow null values.

Link copied to clipboard
val type: <Error class: unknown class>?

The data type of the field. This can be a primitive type string such as boolean, int, long, float, double, string, binary, date, timestamp, or timestamptz, or a complex type represented as a JSON object for nested types such as struct, list, or map. For more information, see the Apache Iceberg schemas and data types documentation.

Functions

Link copied to clipboard
inline fun copy(block: SchemaV2Field.Builder.() -> Unit = {}): SchemaV2Field
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String