From 3836157c31c7c162ab08b15b5bee421847337ef9 Mon Sep 17 00:00:00 2001 From: Ralph Gasser Date: Thu, 7 Dec 2023 18:05:50 +0100 Subject: [PATCH] Adds missing asUuidValue() function. --- .../src/main/kotlin/org/vitrivr/cottontail/core/tuple/Tuple.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cottontaildb-client/src/main/kotlin/org/vitrivr/cottontail/core/tuple/Tuple.kt b/cottontaildb-client/src/main/kotlin/org/vitrivr/cottontail/core/tuple/Tuple.kt index 176887c54..fa19d715c 100644 --- a/cottontaildb-client/src/main/kotlin/org/vitrivr/cottontail/core/tuple/Tuple.kt +++ b/cottontaildb-client/src/main/kotlin/org/vitrivr/cottontail/core/tuple/Tuple.kt @@ -207,6 +207,8 @@ interface Tuple { fun asDoubleVector(name: String): DoubleArray? = asDoubleVectorValue(indexOf(name))?.data fun asStringValue(index: Int): StringValue? = this[index] as? StringValue fun asStringValue(name: String): StringValue? = this.asStringValue(indexOf(name)) + fun asUuidValue(index: Int): UuidValue? = this[index] as? UuidValue + fun asUuidValue(name: String): UuidValue? = this.asUuidValue(indexOf(name)) fun asString(index: Int): String? = this.asStringValue(index)?.value fun asString(name: String): String? = this.asStringValue(indexOf(name))?.value fun asDateValue(index: Int): DateValue? = this[index] as? DateValue