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

xtdb.vector.extensions.UriVector.kt Maven / Gradle / Ivy

The newest version!
package xtdb.vector.extensions

import org.apache.arrow.memory.BufferAllocator
import org.apache.arrow.vector.VarCharVector
import org.apache.arrow.vector.types.pojo.FieldType
import java.net.URI
import java.nio.charset.StandardCharsets

class UriVector(name: String, allocator: BufferAllocator, fieldType: FieldType) :
    XtExtensionVector(name, allocator, fieldType, VarCharVector(name, allocator)) {

    override fun getObject0(index: Int): URI = URI.create(String(underlyingVector[index], StandardCharsets.UTF_8))
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy