Trait

com.redis.api

GeoApi

Related Doc: package api

Permalink

trait GeoApi extends AnyRef

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GeoApi
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def geoadd(key: Any, members: Iterable[Product3[Any, Any, Any]]): Option[Int]

    Permalink

    Add the given members in the key geo sorted set

    Add the given members in the key geo sorted set

    key

    The geo sorted set

    members

    The members to be added. Format is (longitude, latitude, member)

    returns

    The number of elements added to the index. Repeated elements are not added.

  2. abstract def geodist(key: Any, m1: Any, m2: Any, unit: Option[Any]): Option[String]

    Permalink
  3. abstract def geohash[A](key: Any, members: Iterable[Any])(implicit format: Format, parse: Parse[A]): Option[List[Option[A]]]

    Permalink

    Get the geohash for each member in the key geo index.

    Get the geohash for each member in the key geo index.

    returns

    The geohash of each queried member.

  4. abstract def geopos[A](key: Any, members: Iterable[Any])(implicit format: Format, parse: Parse[A]): Option[List[Option[List[Option[A]]]]]

    Permalink

    Retrieve the position of the members in the key geo sorted set.

    Retrieve the position of the members in the key geo sorted set. Note that if a member is not part of the set, None will be returned for this element.

    returns

    the coordinates of the input members in the same order.

  5. abstract def georadius(key: Any, longitude: Any, latitude: Any, radius: Any, unit: Any, withCoord: Boolean, withDist: Boolean, withHash: Boolean, count: Option[Int], sort: Option[Any], store: Option[Any], storeDist: Option[Any]): Option[List[Option[GeoRadiusMember]]]

    Permalink

    Search for members around an origin point in the key geo sorted set

    Search for members around an origin point in the key geo sorted set

    key

    The geo index we are searching in

    longitude

    The base longitude for distance computation

    latitude

    The base latitude for distance computation

    radius

    The radius of the circle we want to search in

    unit

    The unit of the radius. Can be m (meters), km (kilometers), mi (miles), ft (feet)

    withCoord

    If true, the coordinate of the found members will be returned in the result

    withDist

    If true, the distance between the origin and the found members will be returned in the result

    withHash

    If true, the hash of the found members will be returned in the result

    count

    Max number of expected results

    sort

    The sorting strategy. If empty, order is not guaranteed. Can be ASC (ascending) or DESC (descending)

    store

    The Redis store we want to write the result in

    storeDist

    The redis storedist we want to write the result in

    returns

    The found members as GeoRadiusMember instances

  6. abstract def georadiusbymember[A](key: Any, member: Any, radius: Any, unit: Any, withCoord: Boolean, withDist: Boolean, withHash: Boolean, count: Option[Int], sort: Option[Any], store: Option[Any], storeDist: Option[Any])(implicit format: Format, parse: Parse[A]): Option[List[Option[GeoRadiusMember]]]

    Permalink

    Search for members around a specific memberin the key geo sorted set

    Search for members around a specific memberin the key geo sorted set

    key

    The geo index we are searching in

    member

    The member we are searching around

    radius

    The radius of the circle we want to search in

    unit

    The unit of the radius. Can be m (meters), km (kilometers), mi (miles), ft (feet)

    withCoord

    If true, the coordinate of the found members will be returned in the result

    withDist

    If true, the distance between the origin and the found members will be returned in the result

    withHash

    If true, the hash of the found members will be returned in the result

    count

    Max number of expected results

    sort

    The sorting strategy. If empty, order is not guaranteed. Can be ASC (ascending) or DESC (descending)

    store

    The Redis store we want to write the result in

    storeDist

    The redis storedist we want to write the result in

    returns

    The found members as GeoRadiusMember instances

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  10. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  14. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  16. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped