All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xtdb.arrow.BoxWriter.kt Maven / Gradle / Ivy

There is a newer version: 2.0.0-beta4
Show newest version
package xtdb.arrow

import java.nio.ByteBuffer

internal abstract class BoxWriter : ValueWriter {
    abstract fun box(): ValueWriter

    override fun writeNull() {
        box().writeNull()
    }

    override fun writeBoolean(v: Boolean) {
        box().writeBoolean(v)
    }

    override fun writeByte(v: Byte) {
        box().writeByte(v)
    }

    override fun writeShort(v: Short) {
        box().writeShort(v)
    }

    override fun writeInt(v: Int) {
        box().writeInt(v)
    }

    override fun writeLong(v: Long) {
        box().writeLong(v)
    }

    override fun writeFloat(v: Float) {
        box().writeFloat(v)
    }

    override fun writeDouble(v: Double) {
        box().writeDouble(v)
    }

    override fun writeBytes(v: ByteBuffer) {
        box().writeBytes(v)
    }

    override fun writeObject(obj: Any?) {
        box().writeObject(obj)
    }

    override fun legWriter(leg: String): ValueWriter {
        return box().legWriter(leg)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy