Package org.redisson

Class RedissonGeo<V>

    • Method Detail

      • addAsync

        public RFuture<Long> addAsync​(double longitude,
                                      double latitude,
                                      V member)
        Description copied from interface: RGeoAsync
        Adds geospatial member.
        Specified by:
        addAsync in interface RGeoAsync<V>
        Parameters:
        longitude - - longitude of object
        latitude - - latitude of object
        member - - object itself
        Returns:
        number of elements added to the sorted set, not including elements already existing for which the score was updated
      • add

        public long add​(double longitude,
                        double latitude,
                        V member)
        Description copied from interface: RGeo
        Adds geospatial member.
        Specified by:
        add in interface RGeo<V>
        Parameters:
        longitude - - longitude of object
        latitude - - latitude of object
        member - - object itself
        Returns:
        number of elements added to the sorted set, not including elements already existing for which the score was updated
      • add

        public long add​(GeoEntry... entries)
        Description copied from interface: RGeo
        Adds geospatial members.
        Specified by:
        add in interface RGeo<V>
        Parameters:
        entries - - objects
        Returns:
        number of elements added to the sorted set, not including elements already existing for which the score was updated
      • addAsync

        public RFuture<Long> addAsync​(GeoEntry... entries)
        Description copied from interface: RGeoAsync
        Adds geospatial members.
        Specified by:
        addAsync in interface RGeoAsync<V>
        Parameters:
        entries - - objects
        Returns:
        number of elements added to the sorted set, not including elements already existing for which the score was updated
      • dist

        public Double dist​(V firstMember,
                           V secondMember,
                           GeoUnit geoUnit)
        Description copied from interface: RGeo
        Returns distance between members in GeoUnit units.
        Specified by:
        dist in interface RGeo<V>
        Parameters:
        firstMember - - first object
        secondMember - - second object
        geoUnit - - geo unit
        Returns:
        distance
      • distAsync

        public RFuture<Double> distAsync​(V firstMember,
                                         V secondMember,
                                         GeoUnit geoUnit)
        Description copied from interface: RGeoAsync
        Returns distance between members in GeoUnit units.
        Specified by:
        distAsync in interface RGeoAsync<V>
        Parameters:
        firstMember - - first object
        secondMember - - second object
        geoUnit - - geo unit
        Returns:
        distance
      • hash

        public Map<V,​String> hash​(V... members)
        Description copied from interface: RGeo
        Returns 11 characters Geohash string mapped by defined member.
        Specified by:
        hash in interface RGeo<V>
        Parameters:
        members - - objects
        Returns:
        hash mapped by object
      • hashAsync

        public RFuture<Map<V,​String>> hashAsync​(V... members)
        Description copied from interface: RGeoAsync
        Returns 11 characters Geohash string mapped by defined member.
        Specified by:
        hashAsync in interface RGeoAsync<V>
        Parameters:
        members - - objects
        Returns:
        hash mapped by object
      • pos

        public Map<V,​GeoPosition> pos​(V... members)
        Description copied from interface: RGeo
        Returns geo-position mapped by defined member.
        Specified by:
        pos in interface RGeo<V>
        Parameters:
        members - - objects
        Returns:
        geo position mapped by object
      • posAsync

        public RFuture<Map<V,​GeoPosition>> posAsync​(V... members)
        Description copied from interface: RGeoAsync
        Returns geo-position mapped by defined member.
        Specified by:
        posAsync in interface RGeoAsync<V>
        Parameters:
        members - - objects
        Returns:
        geo position mapped by object
      • radius

        public List<V> radius​(double longitude,
                              double latitude,
                              double radius,
                              GeoUnit geoUnit)
        Description copied from interface: RGeo
        Returns the members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) in GeoUnit units.
        Specified by:
        radius in interface RGeo<V>
        Parameters:
        longitude - - longitude of object
        latitude - - latitude of object
        radius - - radius in geo units
        geoUnit - - geo unit
        Returns:
        list of objects
      • radiusAsync

        public RFuture<List<V>> radiusAsync​(double longitude,
                                            double latitude,
                                            double radius,
                                            GeoUnit geoUnit)
        Description copied from interface: RGeoAsync
        Returns the members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) in GeoUnit units.
        Specified by:
        radiusAsync in interface RGeoAsync<V>
        Parameters:
        longitude - - longitude of object
        latitude - - latitude of object
        radius - - radius in geo units
        geoUnit - - geo unit
        Returns:
        list of objects
      • radius

        public List<V> radius​(double longitude,
                              double latitude,
                              double radius,
                              GeoUnit geoUnit,
                              int count)
        Description copied from interface: RGeo
        Returns the members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) in GeoUnit units and limited by count
        Specified by:
        radius in interface RGeo<V>
        Parameters:
        longitude - - longitude of object
        latitude - - latitude of object
        radius - - radius in geo units
        geoUnit - - geo unit
        count - - result limit
        Returns:
        list of objects
      • radiusAsync

        public RFuture<List<V>> radiusAsync​(double longitude,
                                            double latitude,
                                            double radius,
                                            GeoUnit geoUnit,
                                            int count)
        Description copied from interface: RGeoAsync
        Returns the members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) in GeoUnit units and limited by count
        Specified by:
        radiusAsync in interface RGeoAsync<V>
        Parameters:
        longitude - - longitude of object
        latitude - - latitude of object
        radius - - radius in geo units
        geoUnit - - geo unit
        count - - result limit
        Returns:
        list of objects
      • radius

        public List<V> radius​(double longitude,
                              double latitude,
                              double radius,
                              GeoUnit geoUnit,
                              GeoOrder geoOrder)
        Description copied from interface: RGeo
        Returns the members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) in GeoUnit units with GeoOrder
        Specified by:
        radius in interface RGeo<V>
        Parameters:
        longitude - - longitude of object
        latitude - - latitude of object
        radius - - radius in geo units
        geoUnit - - geo unit
        geoOrder - - order of result
        Returns:
        list of objects
      • radiusAsync

        public RFuture<List<V>> radiusAsync​(double longitude,
                                            double latitude,
                                            double radius,
                                            GeoUnit geoUnit,
                                            GeoOrder geoOrder)
        Description copied from interface: RGeoAsync
        Returns the members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) in GeoUnit units with GeoOrder
        Specified by:
        radiusAsync in interface RGeoAsync<V>
        Parameters:
        longitude - - longitude of object
        latitude - - latitude of object
        radius - - radius in geo units
        geoUnit - - geo unit
        geoOrder - - order of result
        Returns:
        list of objects
      • radius

        public List<V> radius​(double longitude,
                              double latitude,
                              double radius,
                              GeoUnit geoUnit,
                              GeoOrder geoOrder,
                              int count)
        Description copied from interface: RGeo
        Returns the members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) in GeoUnit units with GeoOrder and limited by count
        Specified by:
        radius in interface RGeo<V>
        Parameters:
        longitude - - longitude of object
        latitude - - latitude of object
        radius - - radius in geo units
        geoUnit - - geo unit
        geoOrder - - order of result
        count - - result limit
        Returns:
        list of objects
      • radiusAsync

        public RFuture<List<V>> radiusAsync​(double longitude,
                                            double latitude,
                                            double radius,
                                            GeoUnit geoUnit,
                                            GeoOrder geoOrder,
                                            int count)
        Description copied from interface: RGeoAsync
        Returns the members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) in GeoUnit units with GeoOrder and limited by count
        Specified by:
        radiusAsync in interface RGeoAsync<V>
        Parameters:
        longitude - - longitude of object
        latitude - - latitude of object
        radius - - radius in geo units
        geoUnit - - geo unit
        geoOrder - - order of result
        count - - result limit
        Returns:
        list of objects
      • radiusWithDistance

        public Map<V,​Double> radiusWithDistance​(double longitude,
                                                      double latitude,
                                                      double radius,
                                                      GeoUnit geoUnit)
        Description copied from interface: RGeo
        Returns the distance mapped by member, distance between member and the location. Members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) in GeoUnit units.
        Specified by:
        radiusWithDistance in interface RGeo<V>
        Parameters:
        longitude - - longitude of object
        latitude - - latitude of object
        radius - - radius in geo units
        geoUnit - - geo unit
        Returns:
        distance mapped by object
      • radiusWithDistanceAsync

        public RFuture<Map<V,​Double>> radiusWithDistanceAsync​(double longitude,
                                                                    double latitude,
                                                                    double radius,
                                                                    GeoUnit geoUnit)
        Description copied from interface: RGeoAsync
        Returns the distance mapped by member, distance between member and the location. Members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) in GeoUnit units.
        Specified by:
        radiusWithDistanceAsync in interface RGeoAsync<V>
        Parameters:
        longitude - - longitude of object
        latitude - - latitude of object
        radius - - radius in geo units
        geoUnit - - geo unit
        Returns:
        distance mapped by object
      • radiusWithDistance

        public Map<V,​Double> radiusWithDistance​(double longitude,
                                                      double latitude,
                                                      double radius,
                                                      GeoUnit geoUnit,
                                                      int count)
        Description copied from interface: RGeo
        Returns the distance mapped by member, distance between member and the location. Members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) in GeoUnit units and limited by count.
        Specified by:
        radiusWithDistance in interface RGeo<V>
        Parameters:
        longitude - - longitude of object
        latitude - - latitude of object
        radius - - radius in geo units
        geoUnit - - geo unit
        count - - result limit
        Returns:
        distance mapped by object
      • radiusWithDistanceAsync

        public RFuture<Map<V,​Double>> radiusWithDistanceAsync​(double longitude,
                                                                    double latitude,
                                                                    double radius,
                                                                    GeoUnit geoUnit,
                                                                    int count)
        Description copied from interface: RGeoAsync
        Returns the distance mapped by member, distance between member and the location. Members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) in GeoUnit units and limited by count.
        Specified by:
        radiusWithDistanceAsync in interface RGeoAsync<V>
        Parameters:
        longitude - - longitude of object
        latitude - - latitude of object
        radius - - radius in geo units
        geoUnit - - geo unit
        count - - result limit
        Returns:
        distance mapped by object
      • radiusWithDistance

        public Map<V,​Double> radiusWithDistance​(double longitude,
                                                      double latitude,
                                                      double radius,
                                                      GeoUnit geoUnit,
                                                      GeoOrder geoOrder)
        Description copied from interface: RGeo
        Returns the distance mapped by member, distance between member and the location. Members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) in GeoUnit units with GeoOrder
        Specified by:
        radiusWithDistance in interface RGeo<V>
        Parameters:
        longitude - - longitude of object
        latitude - - latitude of object
        radius - - radius in geo units
        geoUnit - - geo unit
        geoOrder - - order of result
        Returns:
        distance mapped by object
      • radiusWithDistanceAsync

        public RFuture<Map<V,​Double>> radiusWithDistanceAsync​(double longitude,
                                                                    double latitude,
                                                                    double radius,
                                                                    GeoUnit geoUnit,
                                                                    GeoOrder geoOrder)
        Description copied from interface: RGeoAsync
        Returns the distance mapped by member, distance between member and the location. Members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) in GeoUnit units with GeoOrder
        Specified by:
        radiusWithDistanceAsync in interface RGeoAsync<V>
        Parameters:
        longitude - - longitude of object
        latitude - - latitude of object
        radius - - radius in geo units
        geoUnit - - geo unit
        geoOrder - - order of result
        Returns:
        distance mapped by object
      • radiusWithDistance

        public Map<V,​Double> radiusWithDistance​(double longitude,
                                                      double latitude,
                                                      double radius,
                                                      GeoUnit geoUnit,
                                                      GeoOrder geoOrder,
                                                      int count)
        Description copied from interface: RGeo
        Returns the distance mapped by member, distance between member and the location. Members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) in GeoUnit units with GeoOrder and limited by count
        Specified by:
        radiusWithDistance in interface RGeo<V>
        Parameters:
        longitude - - longitude of object
        latitude - - latitude of object
        radius - - radius in geo units
        geoUnit - - geo unit
        geoOrder - - order of result
        count - - result limit
        Returns:
        distance mapped by object
      • radiusWithDistanceAsync

        public RFuture<Map<V,​Double>> radiusWithDistanceAsync​(double longitude,
                                                                    double latitude,
                                                                    double radius,
                                                                    GeoUnit geoUnit,
                                                                    GeoOrder geoOrder,
                                                                    int count)
        Description copied from interface: RGeoAsync
        Returns the distance mapped by member, distance between member and the location. Members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) in GeoUnit units with GeoOrder and limited by count
        Specified by:
        radiusWithDistanceAsync in interface RGeoAsync<V>
        Parameters:
        longitude - - longitude of object
        latitude - - latitude of object
        radius - - radius in geo units
        geoUnit - - geo unit
        geoOrder - - order of result
        count - - result limit
        Returns:
        distance mapped by object
      • radiusWithPosition

        public Map<V,​GeoPosition> radiusWithPosition​(double longitude,
                                                           double latitude,
                                                           double radius,
                                                           GeoUnit geoUnit)
        Description copied from interface: RGeo
        Returns the geo-position mapped by member. Members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) in GeoUnit units.
        Specified by:
        radiusWithPosition in interface RGeo<V>
        Parameters:
        longitude - - longitude of object
        latitude - - latitude of object
        radius - - radius in geo units
        geoUnit - - geo unit
        Returns:
        geo position mapped by object
      • radiusWithPositionAsync

        public RFuture<Map<V,​GeoPosition>> radiusWithPositionAsync​(double longitude,
                                                                         double latitude,
                                                                         double radius,
                                                                         GeoUnit geoUnit)
        Description copied from interface: RGeoAsync
        Returns the geo-position mapped by member. Members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) in GeoUnit units.
        Specified by:
        radiusWithPositionAsync in interface RGeoAsync<V>
        Parameters:
        longitude - - longitude of object
        latitude - - latitude of object
        radius - - radius in geo units
        geoUnit - - geo unit
        Returns:
        geo position mapped by object
      • radiusWithPosition

        public Map<V,​GeoPosition> radiusWithPosition​(double longitude,
                                                           double latitude,
                                                           double radius,
                                                           GeoUnit geoUnit,
                                                           int count)
        Description copied from interface: RGeo
        Returns the geo-position mapped by member. Members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) in GeoUnit units and limited by count
        Specified by:
        radiusWithPosition in interface RGeo<V>
        Parameters:
        longitude - - longitude of object
        latitude - - latitude of object
        radius - - radius in geo units
        geoUnit - - geo unit
        count - - result limit
        Returns:
        geo position mapped by object
      • radiusWithPositionAsync

        public RFuture<Map<V,​GeoPosition>> radiusWithPositionAsync​(double longitude,
                                                                         double latitude,
                                                                         double radius,
                                                                         GeoUnit geoUnit,
                                                                         int count)
        Description copied from interface: RGeoAsync
        Returns the geo-position mapped by member. Members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) in GeoUnit units and limited by count
        Specified by:
        radiusWithPositionAsync in interface RGeoAsync<V>
        Parameters:
        longitude - - longitude of object
        latitude - - latitude of object
        radius - - radius in geo units
        geoUnit - - geo unit
        count - - result limit
        Returns:
        geo position mapped by object
      • radiusWithPosition

        public Map<V,​GeoPosition> radiusWithPosition​(double longitude,
                                                           double latitude,
                                                           double radius,
                                                           GeoUnit geoUnit,
                                                           GeoOrder geoOrder)
        Description copied from interface: RGeo
        Returns the geo-position mapped by member. Members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) in GeoUnit units with GeoOrder
        Specified by:
        radiusWithPosition in interface RGeo<V>
        Parameters:
        longitude - - longitude of object
        latitude - - latitude of object
        radius - - radius in geo units
        geoUnit - - geo unit
        geoOrder - - geo order
        Returns:
        geo position mapped by object
      • radiusWithPositionAsync

        public RFuture<Map<V,​GeoPosition>> radiusWithPositionAsync​(double longitude,
                                                                         double latitude,
                                                                         double radius,
                                                                         GeoUnit geoUnit,
                                                                         GeoOrder geoOrder)
        Description copied from interface: RGeoAsync
        Returns the geo-position mapped by member. Members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) in GeoUnit units with GeoOrder
        Specified by:
        radiusWithPositionAsync in interface RGeoAsync<V>
        Parameters:
        longitude - - longitude of object
        latitude - - latitude of object
        radius - - radius in geo units
        geoUnit - - geo unit
        geoOrder - - geo order
        Returns:
        geo position mapped by object
      • radiusWithPosition

        public Map<V,​GeoPosition> radiusWithPosition​(double longitude,
                                                           double latitude,
                                                           double radius,
                                                           GeoUnit geoUnit,
                                                           GeoOrder geoOrder,
                                                           int count)
        Description copied from interface: RGeo
        Returns the geo-position mapped by member. Members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) in GeoUnit units with GeoOrder and limited by count
        Specified by:
        radiusWithPosition in interface RGeo<V>
        Parameters:
        longitude - - longitude of object
        latitude - - latitude of object
        radius - - radius in geo units
        geoUnit - - geo unit
        geoOrder - - geo order
        count - - result limit
        Returns:
        geo position mapped by object
      • radiusWithPositionAsync

        public RFuture<Map<V,​GeoPosition>> radiusWithPositionAsync​(double longitude,
                                                                         double latitude,
                                                                         double radius,
                                                                         GeoUnit geoUnit,
                                                                         GeoOrder geoOrder,
                                                                         int count)
        Description copied from interface: RGeoAsync
        Returns the geo-position mapped by member. Members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) in GeoUnit units with GeoOrder and limited by count
        Specified by:
        radiusWithPositionAsync in interface RGeoAsync<V>
        Parameters:
        longitude - - longitude of object
        latitude - - latitude of object
        radius - - radius in geo units
        geoUnit - - geo unit
        geoOrder - - geo order
        count - - result limit
        Returns:
        geo position mapped by object
      • radius

        public List<V> radius​(V member,
                              double radius,
                              GeoUnit geoUnit)
        Description copied from interface: RGeo
        Returns the members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) in GeoUnit units.
        Specified by:
        radius in interface RGeo<V>
        Parameters:
        member - - object
        radius - - radius in geo units
        geoUnit - - geo unit
        Returns:
        list of objects
      • radiusAsync

        public RFuture<List<V>> radiusAsync​(V member,
                                            double radius,
                                            GeoUnit geoUnit)
        Description copied from interface: RGeoAsync
        Returns the members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) in GeoUnit units.
        Specified by:
        radiusAsync in interface RGeoAsync<V>
        Parameters:
        member - - object
        radius - - radius in geo units
        geoUnit - - geo unit
        Returns:
        list of objects
      • radius

        public List<V> radius​(V member,
                              double radius,
                              GeoUnit geoUnit,
                              int count)
        Description copied from interface: RGeo
        Returns the members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) in GeoUnit units and limited by count
        Specified by:
        radius in interface RGeo<V>
        Parameters:
        member - - object
        radius - - radius in geo units
        geoUnit - - geo unit
        count - - result limit
        Returns:
        list of objects
      • radiusAsync

        public RFuture<List<V>> radiusAsync​(V member,
                                            double radius,
                                            GeoUnit geoUnit,
                                            int count)
        Description copied from interface: RGeoAsync
        Returns the members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) in GeoUnit units and limited by count
        Specified by:
        radiusAsync in interface RGeoAsync<V>
        Parameters:
        member - - object
        radius - - radius in geo units
        geoUnit - - geo unit
        count - - result limit
        Returns:
        list of objects
      • radius

        public List<V> radius​(V member,
                              double radius,
                              GeoUnit geoUnit,
                              GeoOrder geoOrder)
        Description copied from interface: RGeo
        Returns the members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) in GeoUnit units with GeoOrder
        Specified by:
        radius in interface RGeo<V>
        Parameters:
        member - - object
        radius - - radius in geo units
        geoUnit - - geo unit
        geoOrder - - geo order
        Returns:
        list of objects
      • radiusAsync

        public RFuture<List<V>> radiusAsync​(V member,
                                            double radius,
                                            GeoUnit geoUnit,
                                            GeoOrder geoOrder)
        Description copied from interface: RGeoAsync
        Returns the members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) in GeoUnit units with GeoOrder
        Specified by:
        radiusAsync in interface RGeoAsync<V>
        Parameters:
        member - - object
        radius - - radius in geo units
        geoUnit - - geo unit
        geoOrder - - geo order
        Returns:
        list of objects
      • radius

        public List<V> radius​(V member,
                              double radius,
                              GeoUnit geoUnit,
                              GeoOrder geoOrder,
                              int count)
        Description copied from interface: RGeo
        Returns the members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) in GeoUnit units with GeoOrder and limited by count
        Specified by:
        radius in interface RGeo<V>
        Parameters:
        member - - object
        radius - - radius in geo units
        geoUnit - - geo unit
        geoOrder - - geo order
        count - - result limit
        Returns:
        list of objects
      • radiusAsync

        public RFuture<List<V>> radiusAsync​(V member,
                                            double radius,
                                            GeoUnit geoUnit,
                                            GeoOrder geoOrder,
                                            int count)
        Description copied from interface: RGeoAsync
        Returns the members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) in GeoUnit units with GeoOrder
        Specified by:
        radiusAsync in interface RGeoAsync<V>
        Parameters:
        member - - object
        radius - - radius in geo units
        geoUnit - - geo unit
        geoOrder - - geo order
        count - - result limit
        Returns:
        list of objects
      • radiusWithDistance

        public Map<V,​Double> radiusWithDistance​(V member,
                                                      double radius,
                                                      GeoUnit geoUnit)
        Description copied from interface: RGeo
        Returns the distance mapped by member, distance between member and the defined member location. Members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) in GeoUnit units.
        Specified by:
        radiusWithDistance in interface RGeo<V>
        Parameters:
        member - - object
        radius - - radius in geo units
        geoUnit - - geo unit
        Returns:
        distance mapped by object
      • radiusWithDistanceAsync

        public RFuture<Map<V,​Double>> radiusWithDistanceAsync​(V member,
                                                                    double radius,
                                                                    GeoUnit geoUnit)
        Description copied from interface: RGeoAsync
        Returns the distance mapped by member, distance between member and the defined member location. Members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) in GeoUnit units.
        Specified by:
        radiusWithDistanceAsync in interface RGeoAsync<V>
        Parameters:
        member - - object
        radius - - radius in geo units
        geoUnit - - geo unit
        Returns:
        distance mapped by object
      • radiusWithDistance

        public Map<V,​Double> radiusWithDistance​(V member,
                                                      double radius,
                                                      GeoUnit geoUnit,
                                                      int count)
        Description copied from interface: RGeo
        Returns the distance mapped by member, distance between member and the defined member location. Members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) in GeoUnit units and limited by count
        Specified by:
        radiusWithDistance in interface RGeo<V>
        Parameters:
        member - - object
        radius - - radius in geo units
        geoUnit - - geo unit
        count - - result limit
        Returns:
        distance mapped by object
      • radiusWithDistanceAsync

        public RFuture<Map<V,​Double>> radiusWithDistanceAsync​(V member,
                                                                    double radius,
                                                                    GeoUnit geoUnit,
                                                                    int count)
        Description copied from interface: RGeoAsync
        Returns the distance mapped by member, distance between member and the defined member location. Members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) in GeoUnit units and limited by count
        Specified by:
        radiusWithDistanceAsync in interface RGeoAsync<V>
        Parameters:
        member - - object
        radius - - radius in geo units
        geoUnit - - geo unit
        count - - result limit
        Returns:
        distance mapped by object
      • radiusWithDistance

        public Map<V,​Double> radiusWithDistance​(V member,
                                                      double radius,
                                                      GeoUnit geoUnit,
                                                      GeoOrder geoOrder)
        Description copied from interface: RGeo
        Returns the distance mapped by member, distance between member and the defined member location. Members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) in GeoUnit units with GeoOrder
        Specified by:
        radiusWithDistance in interface RGeo<V>
        Parameters:
        member - - object
        radius - - radius in geo units
        geoUnit - - geo unit
        geoOrder - - geo order
        Returns:
        distance mapped by object
      • radiusWithDistanceAsync

        public RFuture<Map<V,​Double>> radiusWithDistanceAsync​(V member,
                                                                    double radius,
                                                                    GeoUnit geoUnit,
                                                                    GeoOrder geoOrder)
        Description copied from interface: RGeoAsync
        Returns the distance mapped by member, distance between member and the defined member location. Members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) in GeoUnit units with GeoOrder
        Specified by:
        radiusWithDistanceAsync in interface RGeoAsync<V>
        Parameters:
        member - - object
        radius - - radius in geo units
        geoUnit - - geo unit
        geoOrder - - geo
        Returns:
        distance mapped by object
      • radiusWithDistance

        public Map<V,​Double> radiusWithDistance​(V member,
                                                      double radius,
                                                      GeoUnit geoUnit,
                                                      GeoOrder geoOrder,
                                                      int count)
        Description copied from interface: RGeo
        Returns the distance mapped by member, distance between member and the defined member location. Members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) in GeoUnit units with GeoOrder and limited by count
        Specified by:
        radiusWithDistance in interface RGeo<V>
        Parameters:
        member - - object
        radius - - radius in geo units
        geoUnit - - geo unit
        geoOrder - - geo order
        count - - result limit
        Returns:
        distance mapped by object
      • radiusWithDistanceAsync

        public RFuture<Map<V,​Double>> radiusWithDistanceAsync​(V member,
                                                                    double radius,
                                                                    GeoUnit geoUnit,
                                                                    GeoOrder geoOrder,
                                                                    int count)
        Description copied from interface: RGeoAsync
        Returns the distance mapped by member, distance between member and the defined member location. Members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) in GeoUnit units with GeoOrder and limited by count
        Specified by:
        radiusWithDistanceAsync in interface RGeoAsync<V>
        Parameters:
        member - - object
        radius - - radius in geo units
        geoUnit - - geo unit
        geoOrder - - geo
        count - - result limit
        Returns:
        distance mapped by object
      • radiusWithPosition

        public Map<V,​GeoPosition> radiusWithPosition​(V member,
                                                           double radius,
                                                           GeoUnit geoUnit)
        Description copied from interface: RGeo
        Returns the geo-position mapped by member. Members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) in GeoUnit units.
        Specified by:
        radiusWithPosition in interface RGeo<V>
        Parameters:
        member - - object
        radius - - radius in geo units
        geoUnit - - geo unit
        Returns:
        geo position mapped by object
      • radiusWithPositionAsync

        public RFuture<Map<V,​GeoPosition>> radiusWithPositionAsync​(V member,
                                                                         double radius,
                                                                         GeoUnit geoUnit)
        Description copied from interface: RGeoAsync
        Returns the geo-position mapped by member. Members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) in GeoUnit units.
        Specified by:
        radiusWithPositionAsync in interface RGeoAsync<V>
        Parameters:
        member - - object
        radius - - radius in geo units
        geoUnit - - geo unit
        Returns:
        geo position mapped by object
      • radiusWithPosition

        public Map<V,​GeoPosition> radiusWithPosition​(V member,
                                                           double radius,
                                                           GeoUnit geoUnit,
                                                           int count)
        Description copied from interface: RGeo
        Returns the geo-position mapped by member. Members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) in GeoUnit units and limited by count
        Specified by:
        radiusWithPosition in interface RGeo<V>
        Parameters:
        member - - object
        radius - - radius in geo units
        geoUnit - - geo unit
        count - - result limit
        Returns:
        geo position mapped by object
      • radiusWithPositionAsync

        public RFuture<Map<V,​GeoPosition>> radiusWithPositionAsync​(V member,
                                                                         double radius,
                                                                         GeoUnit geoUnit,
                                                                         int count)
        Description copied from interface: RGeoAsync
        Returns the geo-position mapped by member. Members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) in GeoUnit units and limited by count
        Specified by:
        radiusWithPositionAsync in interface RGeoAsync<V>
        Parameters:
        member - - object
        radius - - radius in geo units
        geoUnit - - geo unit
        count - - result limit
        Returns:
        geo position mapped by object
      • radiusWithPosition

        public Map<V,​GeoPosition> radiusWithPosition​(V member,
                                                           double radius,
                                                           GeoUnit geoUnit,
                                                           GeoOrder geoOrder)
        Description copied from interface: RGeo
        Returns the geo-position mapped by member. Members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) in GeoUnit units with GeoOrder
        Specified by:
        radiusWithPosition in interface RGeo<V>
        Parameters:
        member - - object
        radius - - radius in geo units
        geoUnit - - geo unit
        geoOrder - - geo order
        Returns:
        geo position mapped by object
      • radiusWithPositionAsync

        public RFuture<Map<V,​GeoPosition>> radiusWithPositionAsync​(V member,
                                                                         double radius,
                                                                         GeoUnit geoUnit,
                                                                         GeoOrder geoOrder)
        Description copied from interface: RGeoAsync
        Returns the geo-position mapped by member. Members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) in GeoUnit units with GeoOrder
        Specified by:
        radiusWithPositionAsync in interface RGeoAsync<V>
        Parameters:
        member - - object
        radius - - radius in geo units
        geoUnit - - geo unit
        geoOrder - - geo order
        Returns:
        geo position mapped by object
      • radiusWithPosition

        public Map<V,​GeoPosition> radiusWithPosition​(V member,
                                                           double radius,
                                                           GeoUnit geoUnit,
                                                           GeoOrder geoOrder,
                                                           int count)
        Description copied from interface: RGeo
        Returns the geo-position mapped by member. Members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) in GeoUnit units with GeoOrder and limited by count
        Specified by:
        radiusWithPosition in interface RGeo<V>
        Parameters:
        member - - object
        radius - - radius in geo units
        geoUnit - - geo unit
        geoOrder - - geo order
        count - - result limit
        Returns:
        geo position mapped by object
      • radiusWithPositionAsync

        public RFuture<Map<V,​GeoPosition>> radiusWithPositionAsync​(V member,
                                                                         double radius,
                                                                         GeoUnit geoUnit,
                                                                         GeoOrder geoOrder,
                                                                         int count)
        Description copied from interface: RGeoAsync
        Returns the geo-position mapped by member. Members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) in GeoUnit units with GeoOrder and limited by count
        Specified by:
        radiusWithPositionAsync in interface RGeoAsync<V>
        Parameters:
        member - - object
        radius - - radius in geo units
        geoUnit - - geo unit
        geoOrder - - geo order
        count - - result limit
        Returns:
        geo position mapped by object
      • radiusStoreTo

        public long radiusStoreTo​(String destName,
                                  double longitude,
                                  double latitude,
                                  double radius,
                                  GeoUnit geoUnit)
        Description copied from interface: RGeo
        Finds the members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) in GeoUnit units. Store result to destName.
        Specified by:
        radiusStoreTo in interface RGeo<V>
        Parameters:
        destName - - Geo object destination
        longitude - - longitude of object
        latitude - - latitude of object
        radius - - radius in geo units
        geoUnit - - geo unit
        Returns:
        length of result
      • radiusStoreToAsync

        public RFuture<Long> radiusStoreToAsync​(String destName,
                                                double longitude,
                                                double latitude,
                                                double radius,
                                                GeoUnit geoUnit)
        Description copied from interface: RGeoAsync
        Finds the members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) in GeoUnit units. Store result to destName.
        Specified by:
        radiusStoreToAsync in interface RGeoAsync<V>
        Parameters:
        destName - - Geo object destination
        longitude - - longitude of object
        latitude - - latitude of object
        radius - - radius in geo units
        geoUnit - - geo unit
        Returns:
        length of result
      • radiusStoreTo

        public long radiusStoreTo​(String destName,
                                  double longitude,
                                  double latitude,
                                  double radius,
                                  GeoUnit geoUnit,
                                  int count)
        Description copied from interface: RGeo
        Finds the members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) in GeoUnit units and limited by count Store result to destName.
        Specified by:
        radiusStoreTo in interface RGeo<V>
        Parameters:
        destName - - Geo object destination
        longitude - - longitude of object
        latitude - - latitude of object
        radius - - radius in geo units
        geoUnit - - geo unit
        count - - result limit
        Returns:
        length of result
      • radiusStoreToAsync

        public RFuture<Long> radiusStoreToAsync​(String destName,
                                                double longitude,
                                                double latitude,
                                                double radius,
                                                GeoUnit geoUnit,
                                                int count)
        Description copied from interface: RGeoAsync
        Finds the members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) in GeoUnit units and limited by count Store result to destName.
        Specified by:
        radiusStoreToAsync in interface RGeoAsync<V>
        Parameters:
        destName - - Geo object destination
        longitude - - longitude of object
        latitude - - latitude of object
        radius - - radius in geo units
        geoUnit - - geo unit
        count - - result limit
        Returns:
        length of result
      • radiusStoreTo

        public long radiusStoreTo​(String destName,
                                  double longitude,
                                  double latitude,
                                  double radius,
                                  GeoUnit geoUnit,
                                  GeoOrder geoOrder,
                                  int count)
        Description copied from interface: RGeo
        Finds the members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) in GeoUnit units with GeoOrder and limited by count Store result to destName.
        Specified by:
        radiusStoreTo in interface RGeo<V>
        Parameters:
        destName - - Geo object destination
        longitude - - longitude of object
        latitude - - latitude of object
        radius - - radius in geo units
        geoUnit - - geo unit
        geoOrder - - order of result
        count - - result limit
        Returns:
        length of result
      • radiusStoreToAsync

        public RFuture<Long> radiusStoreToAsync​(String destName,
                                                double longitude,
                                                double latitude,
                                                double radius,
                                                GeoUnit geoUnit,
                                                GeoOrder geoOrder,
                                                int count)
        Description copied from interface: RGeoAsync
        Finds the members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) in GeoUnit units with GeoOrder and limited by count Store result to destName.
        Specified by:
        radiusStoreToAsync in interface RGeoAsync<V>
        Parameters:
        destName - - Geo object destination
        longitude - - longitude of object
        latitude - - latitude of object
        radius - - radius in geo units
        geoUnit - - geo unit
        geoOrder - - order of result
        count - - result limit
        Returns:
        length of result
      • radiusStoreTo

        public long radiusStoreTo​(String destName,
                                  V member,
                                  double radius,
                                  GeoUnit geoUnit)
        Description copied from interface: RGeo
        Finds the members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) in GeoUnit units. Store result to destName.
        Specified by:
        radiusStoreTo in interface RGeo<V>
        Parameters:
        destName - - Geo object destination
        member - - object
        radius - - radius in geo units
        geoUnit - - geo unit
        Returns:
        length of result
      • radiusStoreToAsync

        public RFuture<Long> radiusStoreToAsync​(String destName,
                                                V member,
                                                double radius,
                                                GeoUnit geoUnit)
        Description copied from interface: RGeoAsync
        Finds the members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) in GeoUnit units. Store result to destName.
        Specified by:
        radiusStoreToAsync in interface RGeoAsync<V>
        Parameters:
        destName - - Geo object destination
        member - - object
        radius - - radius in geo units
        geoUnit - - geo unit
        Returns:
        length of result
      • radiusStoreTo

        public long radiusStoreTo​(String destName,
                                  V member,
                                  double radius,
                                  GeoUnit geoUnit,
                                  int count)
        Description copied from interface: RGeo
        Finds the members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) in GeoUnit units and limited by count Store result to destName.
        Specified by:
        radiusStoreTo in interface RGeo<V>
        Parameters:
        destName - - Geo object destination
        member - - object
        radius - - radius in geo units
        geoUnit - - geo unit
        count - - result limit
        Returns:
        length of result
      • radiusStoreToAsync

        public RFuture<Long> radiusStoreToAsync​(String destName,
                                                V member,
                                                double radius,
                                                GeoUnit geoUnit,
                                                int count)
        Description copied from interface: RGeoAsync
        Finds the members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) in GeoUnit units and limited by count Store result to destName.
        Specified by:
        radiusStoreToAsync in interface RGeoAsync<V>
        Parameters:
        destName - - Geo object destination
        member - - object
        radius - - radius in geo units
        geoUnit - - geo unit
        count - - result limit
        Returns:
        length of result
      • radiusStoreTo

        public long radiusStoreTo​(String destName,
                                  V member,
                                  double radius,
                                  GeoUnit geoUnit,
                                  GeoOrder geoOrder,
                                  int count)
        Description copied from interface: RGeo
        Finds the members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) in GeoUnit units with GeoOrder Store result to destName.
        Specified by:
        radiusStoreTo in interface RGeo<V>
        Parameters:
        destName - - Geo object destination
        member - - object
        radius - - radius in geo units
        geoUnit - - geo unit
        geoOrder - - geo order
        count - - result limit
        Returns:
        length of result
      • radiusStoreToAsync

        public RFuture<Long> radiusStoreToAsync​(String destName,
                                                V member,
                                                double radius,
                                                GeoUnit geoUnit,
                                                GeoOrder geoOrder,
                                                int count)
        Description copied from interface: RGeoAsync
        Finds the members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) in GeoUnit units with GeoOrder Store result to destName.
        Specified by:
        radiusStoreToAsync in interface RGeoAsync<V>
        Parameters:
        destName - - Geo object destination
        member - - object
        radius - - radius in geo units
        geoUnit - - geo unit
        geoOrder - - geo order
        count - - result limit
        Returns:
        length of result
      • expire

        public boolean expire​(long timeToLive,
                              TimeUnit timeUnit)
        Description copied from interface: RExpirable
        Set a timeout for object. After the timeout has expired, the key will automatically be deleted.
        Specified by:
        expire in interface RExpirable
        Parameters:
        timeToLive - - timeout before object will be deleted
        timeUnit - - timeout time unit
        Returns:
        true if the timeout was set and false if not
      • expireAsync

        public RFuture<Boolean> expireAsync​(long timeToLive,
                                            TimeUnit timeUnit)
        Description copied from interface: RExpirableAsync
        Set a timeout for object in async mode. After the timeout has expired, the key will automatically be deleted.
        Specified by:
        expireAsync in interface RExpirableAsync
        Parameters:
        timeToLive - - timeout before object will be deleted
        timeUnit - - timeout time unit
        Returns:
        true if the timeout was set and false if not
      • expireAt

        public boolean expireAt​(long timestamp)
        Description copied from interface: RExpirable
        Set an expire date for object. When expire date comes the key will automatically be deleted.
        Specified by:
        expireAt in interface RExpirable
        Parameters:
        timestamp - - expire date in milliseconds (Unix timestamp)
        Returns:
        true if the timeout was set and false if not
      • expireAtAsync

        public RFuture<Boolean> expireAtAsync​(long timestamp)
        Description copied from interface: RExpirableAsync
        Set an expire date for object in async mode. When expire date comes the key will automatically be deleted.
        Specified by:
        expireAtAsync in interface RExpirableAsync
        Parameters:
        timestamp - - expire date in milliseconds (Unix timestamp)
        Returns:
        true if the timeout was set and false if not
      • expireAt

        public boolean expireAt​(Date timestamp)
        Description copied from interface: RExpirable
        Set an expire date for object. When expire date comes the key will automatically be deleted.
        Specified by:
        expireAt in interface RExpirable
        Parameters:
        timestamp - - expire date
        Returns:
        true if the timeout was set and false if not
      • expireAtAsync

        public RFuture<Boolean> expireAtAsync​(Date timestamp)
        Description copied from interface: RExpirableAsync
        Set an expire date for object in async mode. When expire date comes the key will automatically be deleted.
        Specified by:
        expireAtAsync in interface RExpirableAsync
        Parameters:
        timestamp - - expire date
        Returns:
        true if the timeout was set and false if not
      • clearExpire

        public boolean clearExpire()
        Description copied from interface: RExpirable
        Clear an expire timeout or expire date for object.
        Specified by:
        clearExpire in interface RExpirable
        Returns:
        true if timeout was removed false if object does not exist or does not have an associated timeout
      • clearExpireAsync

        public RFuture<Boolean> clearExpireAsync()
        Description copied from interface: RExpirableAsync
        Clear an expire timeout or expire date for object in async mode. Object will not be deleted.
        Specified by:
        clearExpireAsync in interface RExpirableAsync
        Returns:
        true if the timeout was cleared and false if not
      • remainTimeToLive

        public long remainTimeToLive()
        Description copied from interface: RExpirable
        Remaining time to live of Redisson object that has a timeout
        Specified by:
        remainTimeToLive in interface RExpirable
        Returns:
        time in milliseconds -2 if the key does not exist. -1 if the key exists but has no associated expire.
      • remainTimeToLiveAsync

        public RFuture<Long> remainTimeToLiveAsync()
        Description copied from interface: RExpirableAsync
        Remaining time to live of Redisson object that has a timeout
        Specified by:
        remainTimeToLiveAsync in interface RExpirableAsync
        Returns:
        time in milliseconds -2 if the key does not exist. -1 if the key exists but has no associated expire.