xtdb.vector.extensions.UriVector.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xtdb-core Show documentation
Show all versions of xtdb-core Show documentation
An open source document database with bitemporal graph queries
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