startStructEntry

fun startStructEntry(name: String, schema: StructSchema<*>, timestampMicros: Long = now(), metadata: String = ""): Int(source)

Starts an entry that holds single values of schema, and returns its id.

Writes the schema entries for schema and every struct type nested in it first, if they have not been written already, so a reader can decode the first value.

Throws

if a different schema with the same type name was already written


fun startStructEntry(name: String, schema: StructSchema<*>, at: ComparableTimeMark, metadata: String = ""): Int(source)

Like startStructEntry, stamped with at. See timestampOf.