mutating func encode()

in Sources/SparkConnect/ArrowEncoder.swift [452:458]


  mutating func encode<T: Encodable>(_ value: T) throws {
    if ArrowArrayBuilders.isValidBuilderType(T.self) {
      return try self.encoder.doEncode(value, keyIndex: 0)
    } else {
      throw ArrowError.invalid("Type \(T.self) is currently not supported")
    }
  }