Class GeoAddOptions
- java.lang.Object
-
- glide.api.models.commands.geospatial.GeoAddOptions
-
public final class GeoAddOptions extends java.lang.ObjectOptional arguments forGeospatialIndicesBaseCommands.geoadd(String, Map, GeoAddOptions)command.- See Also:
- valkey.io
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCHANGED_VALKEY_API
-
Constructor Summary
Constructors Constructor Description GeoAddOptions(boolean changed)Optional arguments forGeospatialIndicesBaseCommands.geoadd(String, Map, GeoAddOptions)command.GeoAddOptions(ConditionalChange updateMode)Optional arguments forGeospatialIndicesBaseCommands.geoadd(String, Map, GeoAddOptions)command.GeoAddOptions(ConditionalChange updateMode, boolean changed)Optional arguments forGeospatialIndicesBaseCommands.geoadd(String, Map, GeoAddOptions)command.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConditionalChangegetUpdateMode()Options for handling existing members.booleanisChanged()Iftrue, returns the count of changed elements instead of new elements added.java.lang.String[]toArgs()Converts GeoAddOptions into a String[].
-
-
-
Field Detail
-
CHANGED_VALKEY_API
public static final java.lang.String CHANGED_VALKEY_API
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GeoAddOptions
public GeoAddOptions(ConditionalChange updateMode, boolean changed)
Optional arguments forGeospatialIndicesBaseCommands.geoadd(String, Map, GeoAddOptions)command.- Parameters:
updateMode- Options for handling existing members. SeeConditionalChangechanged- Iftrue, returns the count of changed elements instead of new elements added.
-
GeoAddOptions
public GeoAddOptions(ConditionalChange updateMode)
Optional arguments forGeospatialIndicesBaseCommands.geoadd(String, Map, GeoAddOptions)command.- Parameters:
updateMode- Options for handling existing members. SeeConditionalChange
-
GeoAddOptions
public GeoAddOptions(boolean changed)
Optional arguments forGeospatialIndicesBaseCommands.geoadd(String, Map, GeoAddOptions)command.- Parameters:
changed- Iftrue, returns the count of changed elements instead of new elements added.
-
-
Method Detail
-
toArgs
public java.lang.String[] toArgs()
Converts GeoAddOptions into a String[].- Returns:
- String[]
-
getUpdateMode
public ConditionalChange getUpdateMode()
Options for handling existing members. SeeConditionalChange.
-
isChanged
public boolean isChanged()
Iftrue, returns the count of changed elements instead of new elements added.
-
-