Skip to content

Commit 6391f0c

Browse files
committed
Gardening: scalafmt
Change-Id: Ib39540312632d8524739cb6fa1f63a19653ce029 Reviewed-on: https://review.couchbase.org/c/couchbase-jvm-clients/+/211386 Tested-by: Build Bot <[email protected]> Tested-by: David Nault <[email protected]> Reviewed-by: David Nault <[email protected]>
1 parent 0b53855 commit 6391f0c

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

scala-client/src/main/scala/com/couchbase/client/scala/search/queries/BooleanQuery.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ case class BooleanQuery private (
3838
def shouldMin(minForShould: Int): BooleanQuery = {
3939
copy(should = Some((this.should match {
4040
case Some(existing) => existing
41-
case None => DisjunctionQuery()
41+
case None => DisjunctionQuery()
4242
}).min(minForShould)))
4343
}
4444

@@ -49,7 +49,7 @@ case class BooleanQuery private (
4949
def must(mustQueries: SearchQuery*): BooleanQuery = {
5050
copy(must = Some((must match {
5151
case Some(existing) => existing
52-
case _ => ConjunctionQuery()
52+
case _ => ConjunctionQuery()
5353
}).and(mustQueries: _*)))
5454
}
5555

@@ -60,7 +60,7 @@ case class BooleanQuery private (
6060
def mustNot(mustNotQueries: SearchQuery*): BooleanQuery = {
6161
copy(mustNot = Some((mustNot match {
6262
case Some(existing) => existing
63-
case _ => DisjunctionQuery()
63+
case _ => DisjunctionQuery()
6464
}).or(mustNotQueries: _*)))
6565
}
6666

@@ -71,7 +71,7 @@ case class BooleanQuery private (
7171
def should(shouldQueries: SearchQuery*): BooleanQuery = {
7272
copy(should = Some((should match {
7373
case Some(existing) => existing
74-
case _ => DisjunctionQuery()
74+
case _ => DisjunctionQuery()
7575
}).or(shouldQueries: _*)))
7676
}
7777

scala-client/src/main/scala/com/couchbase/client/scala/search/vector/VectorQuery.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ case class VectorQuery private (
2525
private val vectorQuery: Either[Array[Float], String],
2626
private val vectorField: String,
2727
private val numCandidates: Option[Int] = None,
28-
private val boost: Option[Double] = None,
28+
private val boost: Option[Double] = None
2929
) {
3030

3131
/** Can be used to control how much weight to give the results of this query vs other queries.
@@ -47,7 +47,7 @@ case class VectorQuery private (
4747
private[scala] def toCore: CoreVectorQuery =
4848
new CoreVectorQuery(
4949
vectorQuery match {
50-
case Left(floatArray) => CoreVector.of(floatArray)
50+
case Left(floatArray) => CoreVector.of(floatArray)
5151
case Right(base64String) => CoreVector.of(base64String)
5252
},
5353
vectorField,
@@ -57,6 +57,7 @@ case class VectorQuery private (
5757
}
5858

5959
object VectorQuery {
60+
6061
/** Will perform a vector query using a vector provided as an array of floats. */
6162
@SinceCouchbase("7.6")
6263
def apply(vectorField: String, vectorQuery: Array[Float]): VectorQuery =

scala-client/src/main/scala/com/couchbase/client/scala/search/vector/VectorSearchOptions.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@
1616

1717
package com.couchbase.client.scala.search.vector
1818

19-
import com.couchbase.client.core.api.search.vector.{CoreVectorQueryCombination, CoreVectorSearchOptions}
19+
import com.couchbase.client.core.api.search.vector.{
20+
CoreVectorQueryCombination,
21+
CoreVectorSearchOptions
22+
}
2023

2124
/** Specifies how multiple [[VectorQuery]]s in a [[VectorSearch]] are combined. */
2225
sealed trait VectorQueryCombination

0 commit comments

Comments
 (0)