org.springframework.data.solr.core.query
Class IfFunction
java.lang.Object
org.springframework.data.solr.core.query.AbstractFunction
org.springframework.data.solr.core.query.IfFunction
- All Implemented Interfaces:
- Function
public class IfFunction
- extends AbstractFunction
Implementation of if(value|field|function,trueValue,falseValue)
- Since:
- 1.1
- Author:
- Christoph Strobl
when
public static IfFunction.Builder when(Object condition)
- Creates new
IfFunction.Builder for creating IfFunction
- Parameters:
condition -
- Returns:
when
public static IfFunction.Builder when(Field field)
when
public static IfFunction.Builder when(String fieldname)
when
public static IfFunction.Builder when(Function function)
getOperation
public String getOperation()
- Description copied from interface:
Function
- solr readable representation of function
- Returns:
Copyright © 2011-2014-2014 Pivotal. All Rights Reserved.