K - Key typepublic class GeoFieldArgs<K> extends FieldArgs<K>
Geo fields are used to store geographical coordinates such as longitude and latitude. They enable geospatial radius queries, which allow you to implement location-based search functionality in your applications such as finding nearby restaurants, stores, or any other points of interest.
| Modifier and Type | Class and Description |
|---|---|
static class |
GeoFieldArgs.Builder<K>
Builder for
GeoFieldArgs. |
as, indexEmpty, indexMissing, name, noIndex, sortable, unNormalizedForm| Constructor and Description |
|---|
GeoFieldArgs() |
| Modifier and Type | Method and Description |
|---|---|
static <K> GeoFieldArgs.Builder<K> |
builder()
Create a new
GeoFieldArgs using the builder pattern. |
protected void |
buildTypeSpecificArgs(CommandArgs<K,?> args)
Add type-specific arguments to the command.
|
String |
getFieldType()
Returns the field type.
|
build, getAs, getName, isIndexEmpty, isIndexMissing, isNoIndex, isSortable, isUnNormalizedFormpublic static <K> GeoFieldArgs.Builder<K> builder()
GeoFieldArgs using the builder pattern.K - Key typeGeoFieldArgs.Builderpublic String getFieldType()
FieldArgsgetFieldType in class FieldArgs<K>protected void buildTypeSpecificArgs(CommandArgs<K,?> args)
FieldArgsbuildTypeSpecificArgs in class FieldArgs<K>args - the command arguments to modifyCopyright © 2025 lettuce.io. All rights reserved.