Spring Data Solr

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

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

public class ExistsFunction
extends AbstractFunction

Implementation of exists(field|function)

Since:
1.1
Author:
Christoph Strobl

Method Summary
static ExistsFunction exists(Field field)
          Creates new ExistsFunction representing exists(field)
static ExistsFunction exists(Function function)
          Creates new ExistsFunction representing exists(function())
static ExistsFunction exists(String fieldname)
          Creates new ExistsFunction representing exists(fieldname)
 String getOperation()
          solr readable representation of function
 
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

exists

public static ExistsFunction exists(Field field)
Creates new ExistsFunction representing exists(field)

Parameters:
field -
Returns:

exists

public static ExistsFunction exists(String fieldname)
Creates new ExistsFunction representing exists(fieldname)

Parameters:
fieldname -
Returns:

exists

public static ExistsFunction exists(Function function)
Creates new ExistsFunction representing exists(function())

Parameters:
function -
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.