Spring Data Solr

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

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

public class GeoHashFunction
extends AbstractFunction

Implementation of geohash(latitude, longitude)

Since:
1.1
Author:
Christoph Strobl

Method Summary
static GeoHashFunction geohash(double latitude, double longitude)
           
static GeoHashFunction geohash(GeoLocation location)
           
 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

geohash

public static GeoHashFunction geohash(GeoLocation location)
Parameters:
location - must not be null
Returns:

geohash

public static GeoHashFunction geohash(double latitude,
                                      double longitude)
Parameters:
latitude -
longitude -
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.