Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Add Scala test methods to SyncMongoCollection" #1176

Merged
merged 1 commit into from
Aug 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -480,34 +480,6 @@ case class SyncMongoCollection[T](wrapped: MongoCollection[T]) extends JMongoCol
override def drop(clientSession: ClientSession, dropCollectionOptions: DropCollectionOptions): Unit =
wrapped.drop(unwrap(clientSession), dropCollectionOptions).toFuture().get()

override def createSearchIndex(indexName: String, definition: Bson) =
wrapped.createSearchIndex(indexName, definition).toFuture().get()

override def createSearchIndex(definition: Bson) =
wrapped.createSearchIndex(definition).toFuture().get()

override def createSearchIndexes(searchIndexModels: java.util.List[SearchIndexModel]) =
wrapped.createSearchIndexes(searchIndexModels.asScala.toList).toFuture().get().asJava

def updateSearchIndex(indexName: String, definition: Bson) =
wrapped.updateSearchIndex(indexName, definition).toFuture().get()

def dropSearchIndex(indexName: String) = wrapped.dropSearchIndex(indexName).toFuture().get()

override def listSearchIndexes() = SyncListSearchIndexesIterable(
wrapped
.listSearchIndexes()
)

override def listSearchIndexes[TResult](resultClass: Class[TResult]) =
SyncListSearchIndexesIterable[TResult](
wrapped
.listSearchIndexes[TResult]()(
DefaultsTo.overrideDefault[TResult, org.mongodb.scala.Document],
ClassTag(resultClass)
)
)

override def createIndex(keys: Bson): String = wrapped.createIndex(keys).toFuture().get()

override def createIndex(keys: Bson, indexOptions: IndexOptions) =
Expand Down