Class GeoSearchResultOptions

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String ANY_VALKEY_API
      Valkey API keyword used to change search behavior to return as soon as enough matches are found.
      static java.lang.String COUNT_VALKEY_API
      Valkey API keyword used to perform geosearch with count.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String[] toArgs()
      Converts GeoSearchResultOptions into a String[].
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • COUNT_VALKEY_API

        public static final java.lang.String COUNT_VALKEY_API
        Valkey API keyword used to perform geosearch with count.
        See Also:
        Constant Field Values
      • ANY_VALKEY_API

        public static final java.lang.String ANY_VALKEY_API
        Valkey API keyword used to change search behavior to return as soon as enough matches are found.
        See Also:
        Constant Field Values
    • Constructor Detail

      • GeoSearchResultOptions

        public GeoSearchResultOptions​(long count)
        Define number of search results.
      • GeoSearchResultOptions

        public GeoSearchResultOptions​(long count,
                                      boolean isAny)
        Define number of search results, and whether or not the ANY option should be used.
      • GeoSearchResultOptions

        public GeoSearchResultOptions​(SortOrder order)
        Define the sort order only.
      • GeoSearchResultOptions

        public GeoSearchResultOptions​(SortOrder order,
                                      long count)
        Define the sort order and count.
      • GeoSearchResultOptions

        public GeoSearchResultOptions​(SortOrder order,
                                      long count,
                                      boolean isAny)
        Configure all parameters.
    • Method Detail

      • toArgs

        public java.lang.String[] toArgs()
        Converts GeoSearchResultOptions into a String[].
        Returns:
        String[]