K - Key typepublic class GeoshapeFieldArgs<K> extends FieldArgs<K>
Geoshape fields provide more advanced functionality than GEO fields. You can use them to represent locations as points but also to define shapes and query the interactions between points and shapes (for example, to find all points that are contained within an enclosing shape). You can also choose between geographical coordinates (on the surface of a sphere) or standard Cartesian coordinates.
| Modifier and Type | Class and Description |
|---|---|
static class |
GeoshapeFieldArgs.Builder<K>
Builder for
GeoshapeFieldArgs. |
static class |
GeoshapeFieldArgs.CoordinateSystem
Coordinate system for geoshape fields.
|
as, indexEmpty, indexMissing, name, noIndex, sortable, unNormalizedForm| Constructor and Description |
|---|
GeoshapeFieldArgs() |
| Modifier and Type | Method and Description |
|---|---|
static <K> GeoshapeFieldArgs.Builder<K> |
builder()
Create a new
GeoshapeFieldArgs using the builder pattern. |
protected void |
buildTypeSpecificArgs(CommandArgs<K,?> args)
Add type-specific arguments to the command.
|
Optional<GeoshapeFieldArgs.CoordinateSystem> |
getCoordinateSystem()
Get the coordinate system.
|
String |
getFieldType()
Returns the field type.
|
build, getAs, getName, isIndexEmpty, isIndexMissing, isNoIndex, isSortable, isUnNormalizedFormpublic static <K> GeoshapeFieldArgs.Builder<K> builder()
GeoshapeFieldArgs using the builder pattern.K - Key typeGeoshapeFieldArgs.Builderpublic String getFieldType()
FieldArgsgetFieldType in class FieldArgs<K>public Optional<GeoshapeFieldArgs.CoordinateSystem> getCoordinateSystem()
protected void buildTypeSpecificArgs(CommandArgs<K,?> args)
FieldArgsbuildTypeSpecificArgs in class FieldArgs<K>args - the command arguments to modifyCopyright © 2025 lettuce.io. All rights reserved.