Class DefaultValueFunction
java.lang.Object
org.springframework.data.solr.core.query.AbstractFunction
org.springframework.data.solr.core.query.DefaultValueFunction
- All Implemented Interfaces:
Function
Implementation of
def(field|function,defaultValue)- Since:
- 1.1
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.data.solr.core.query.Function
Function.Context -
Method Summary
Modifier and TypeMethodDescriptionstatic DefaultValueFunctiondefaultValue(String fieldName, Object defaultValue) Creates newDefaultValueFunctionrepresentingdef(fieldname, defaultValue))static DefaultValueFunctiondefaultValue(Field field, Object defaultValue) Creates newDefaultValueFunctionrepresentingdef(field.getName(), defaultValue))static DefaultValueFunctiondefaultValue(Function function, Object defaultValue) Creates newDefaultValueFunctionrepresentingdef(function, defaultValue))solr readable representation of functionMethods inherited from class org.springframework.data.solr.core.query.AbstractFunction
addArgument, getArguments, hasArguments, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.data.solr.core.query.Function
getArgumentMap, toSolrFunction
-
Method Details
-
defaultValue
Creates newDefaultValueFunctionrepresentingdef(fieldname, defaultValue))- Parameters:
fieldName- must not be emptydefaultValue- must not be null- Returns:
-
defaultValue
Creates newDefaultValueFunctionrepresentingdef(field.getName(), defaultValue))- Parameters:
field- must not be nulldefaultValue- must not be null- Returns:
-
defaultValue
Creates newDefaultValueFunctionrepresentingdef(function, defaultValue))- Parameters:
function- must not be nulldefaultValue- must not be null- Returns:
-
getOperation
Description copied from interface:Functionsolr readable representation of function- Returns:
-