VectorMetric
//fluxbase-kotlin/io.github.nimbleflux.fluxbase.postgrest/VectorMetric
VectorMetric
Section titled “VectorMetric”[jvm]
enum class VectorMetric : Enum<VectorMetric>
Vector similarity metric for pgvector queries. Port of VectorMetric from sdk/src/query-builder.ts:507.
Entries
Section titled “Entries”| L2 | [jvm] L2 |
| COSINE | [jvm] COSINE |
| INNER_PRODUCT | [jvm] INNER_PRODUCT |
Companion properties
Section titled “Companion properties”| Name | Summary |
|---|---|
| entries | [jvm] val entries: EnumEntries<VectorMetric> Returns an immutable kotlin.enums.EnumEntries list containing the constants of this enum type, in the order they’re declared. |
Companion functions
Section titled “Companion functions”| Name | Summary |
|---|---|
| valueOf | [jvm] fun valueOf(value: String): VectorMetric Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.) |
| values | [jvm] fun values(): Array<VectorMetric> Returns an array containing the constants of this enum type, in the order they’re declared. |
Properties
Section titled “Properties”| Name | Summary |
|---|---|
| name | [jvm] val name: String |
| operator | [jvm] val operator: String |
| ordinal | [jvm] val ordinal: Int |