Class CassandraParameters
java.lang.Object
org.springframework.data.repository.query.Parameters<CassandraParameters, CassandraParameters.CassandraParameter>
org.springframework.data.cassandra.repository.query.CassandraParameters
- All Implemented Interfaces:
Iterable<CassandraParameters.CassandraParameter>, Supplier<Stream<CassandraParameters.CassandraParameter>>, Streamable<CassandraParameters.CassandraParameter>
public class CassandraParameters
extends Parameters<CassandraParameters, CassandraParameters.CassandraParameter>
Custom extension of
Parameters discovering additional properties of query method parameters.- Author:
- Matthew Adams, Mark Paluch
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classCustomParameterimplementation addingCassandraTypesupport. -
Field Summary
Fields inherited from class Parameters
TYPES -
Constructor Summary
ConstructorsConstructorDescriptionCassandraParameters(ParametersSource parametersSource) Create a newCassandraParametersinstance from the givenMethod. -
Method Summary
Modifier and TypeMethodDescriptionprotected CassandraParameterscreateFrom(List<CassandraParameters.CassandraParameter> parameters) intReturns the index of theQueryOptionsparameter to be applied to queries.intReturns the index of theScoringFunctionparameter to be applied to queries.Methods inherited from class Parameters
getBindableParameter, getBindableParameters, getDynamicProjectionIndex, getLimitIndex, getNumberOfParameters, getPageableIndex, getParameter, getScoreIndex, getScoreRangeIndex, getScrollPositionIndex, getSortIndex, getVectorIndex, hasDynamicProjection, hasLimitParameter, hasPageableParameter, hasParameterAt, hasScoreParameter, hasScoreRangeParameter, hasScrollPositionParameter, hasSortParameter, hasSpecialParameter, hasVectorParameter, isBindable, iterator, potentiallySortsDynamicallyMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
CassandraParameters
Create a newCassandraParametersinstance from the givenMethod.- Parameters:
parametersSource- must not be null.
-
-
Method Details
-
createFrom
- Specified by:
createFromin classParameters<CassandraParameters, CassandraParameters.CassandraParameter>
-
getQueryOptionsIndex
public int getQueryOptionsIndex()Returns the index of theQueryOptionsparameter to be applied to queries.- Returns:
- Since:
- 2.0
-
getScoringFunctionIndex
public int getScoringFunctionIndex()Returns the index of theScoringFunctionparameter to be applied to queries.- Returns:
- Since:
- 5.0
-