Class ReactiveVectorSearchAggregation
java.lang.Object
org.springframework.data.mongodb.repository.query.AbstractReactiveMongoQuery
org.springframework.data.mongodb.repository.query.ReactiveVectorSearchAggregation
- All Implemented Interfaces:
RepositoryQuery
AbstractReactiveMongoQuery implementation to run a VectorSearchAggregation. The pre-filter is either
derived from the method name or provided through VectorSearch.filter().- Since:
- 5.0
- Author:
- Mark Paluch
-
Constructor Summary
ConstructorsConstructorDescriptionReactiveVectorSearchAggregation(ReactiveMongoQueryMethod method, ReactiveMongoOperations mongoOperations, ValueExpressionDelegate delegate) -
Method Summary
Modifier and TypeMethodDescriptioncreateQuery(ConvertingParameterAccessor accessor) Creates aQueryinstance using the givenParameterAccessordoExecute(ReactiveMongoQueryMethod method, ResultProcessor processor, ConvertingParameterAccessor accessor, @Nullable Class<?> typeToRead) Execute theRepositoryQueryof the given method with the parameters provided by theaccessorprotected booleanReturns whether the query should get a count projection applied.protected booleanReturn weather the query should delete matching documents.protected booleanReturns whether the query should get an exists projection applied.protected booleanReturn whether the query has an explicit limit set.Methods inherited from class AbstractReactiveMongoQuery
createCountQuery, createUpdate, execute, getCodecRegistry, getParameterBindingCodec, getQueryMethod, getValueExpressionEvaluatorLater, parseAggregationPipeline
-
Constructor Details
-
ReactiveVectorSearchAggregation
public ReactiveVectorSearchAggregation(ReactiveMongoQueryMethod method, ReactiveMongoOperations mongoOperations, ValueExpressionDelegate delegate) - Parameters:
method- must not be null.mongoOperations- must not be null.delegate- must not be null.
-
-
Method Details
-
doExecute
protected Publisher<Object> doExecute(ReactiveMongoQueryMethod method, ResultProcessor processor, ConvertingParameterAccessor accessor, @Nullable Class<?> typeToRead) Description copied from class:AbstractReactiveMongoQueryExecute theRepositoryQueryof the given method with the parameters provided by theaccessor- Overrides:
doExecutein classAbstractReactiveMongoQuery- Parameters:
method- theReactiveMongoQueryMethodinvoked. Never null.processor-ResultProcessorfor post procession. Never null.accessor- for providing invocation arguments. Never null.typeToRead- the desired component target type. Can be null.
-
createQuery
Description copied from class:AbstractReactiveMongoQueryCreates aQueryinstance using the givenParameterAccessor- Specified by:
createQueryin classAbstractReactiveMongoQuery- Parameters:
accessor- must not be null.- Returns:
-
isCountQuery
protected boolean isCountQuery()Description copied from class:AbstractReactiveMongoQueryReturns whether the query should get a count projection applied.- Specified by:
isCountQueryin classAbstractReactiveMongoQuery- Returns:
-
isExistsQuery
protected boolean isExistsQuery()Description copied from class:AbstractReactiveMongoQueryReturns whether the query should get an exists projection applied.- Specified by:
isExistsQueryin classAbstractReactiveMongoQuery- Returns:
-
isDeleteQuery
protected boolean isDeleteQuery()Description copied from class:AbstractReactiveMongoQueryReturn weather the query should delete matching documents.- Specified by:
isDeleteQueryin classAbstractReactiveMongoQuery- Returns:
-
isLimiting
protected boolean isLimiting()Description copied from class:AbstractReactiveMongoQueryReturn whether the query has an explicit limit set.- Specified by:
isLimitingin classAbstractReactiveMongoQuery- Returns:
-