Spring Data Solr

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

java.lang.Object
  extended by org.springframework.data.solr.core.query.AbstractFunction
      extended by org.springframework.data.solr.core.query.MaxFunction
All Implemented Interfaces:
Function

public class MaxFunction
extends AbstractFunction

Implementation of max(field|function,value)

Since:
1.1
Author:
Christoph Strobl

Method Summary
 String getOperation()
          solr readable representation of function
static MaxFunction max(Function function, Function compareFunction)
           
static MaxFunction max(Function function, Number value)
           
static MaxFunction max(Function function, String fieldname)
           
static MaxFunction max(Number value, Function compareFunction)
           
static MaxFunction max(Number value, Number compareValue)
           
static MaxFunction max(Number value, String fieldname)
           
static MaxFunction max(String fieldName, Function function)
           
static MaxFunction max(String fieldName, Number value)
           
static MaxFunction max(String fieldName, String compareFieldName)
           
 
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

max

public static MaxFunction max(String fieldName,
                              Number value)
Parameters:
fieldName -
maxValue -
Returns:

max

public static MaxFunction max(String fieldName,
                              String compareFieldName)
Parameters:
fieldName -
compareFieldName -
Returns:

max

public static MaxFunction max(String fieldName,
                              Function function)
Parameters:
fieldName -
compareFieldName -
Returns:

max

public static MaxFunction max(Function function,
                              Number value)
Parameters:
candidate -
maxValue -
Returns:

max

public static MaxFunction max(Function function,
                              String fieldname)
Parameters:
candidate -
maxValue -
Returns:

max

public static MaxFunction max(Function function,
                              Function compareFunction)
Parameters:
candidate -
maxValue -
Returns:

max

public static MaxFunction max(Number value,
                              Number compareValue)
Parameters:
candidate -
maxValue -
Returns:

max

public static MaxFunction max(Number value,
                              String fieldname)
Parameters:
candidate -
maxValue -
Returns:

max

public static MaxFunction max(Number value,
                              Function compareFunction)
Parameters:
candidate -
maxValue -
Returns:

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.