Spring Data Solr

org.springframework.data.solr.core.query
Class IfFunction

java.lang.Object
  extended by org.springframework.data.solr.core.query.AbstractFunction
      extended by 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

Nested Class Summary
static class IfFunction.Builder
           
 
Method Summary
 String getOperation()
          solr readable representation of function
static IfFunction.Builder when(Field field)
           
static IfFunction.Builder when(Function function)
           
static IfFunction.Builder when(Object condition)
          Creates new IfFunction.Builder for creating IfFunction
static IfFunction.Builder when(String fieldname)
           
 
Methods inherited from class org.springframework.data.solr.core.query.AbstractFunction
addArgument, getArguments, hasArguments, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

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:

Spring Data Solr

Copyright © 2011-2014-2014 Pivotal. All Rights Reserved.