Package com.redis.vl.schema
Class GeoField
java.lang.Object
com.redis.vl.schema.BaseField
com.redis.vl.schema.GeoField
GeoField represents a geographic field in Redis. Used for fields that contain longitude,latitude
coordinates and support geographic queries.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFluent builder for GeoField -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GeoField.GeoFieldBuilderbuilder()Create a GeoField builder (Lombok-style).Get the field type.static GeoField.GeoFieldBuilderCreate a GeoField with fluent API.Convert to Jedis SchemaField for index creation.
-
Constructor Details
-
GeoField
Create a GeoField with just a name.- Parameters:
name- The field name
-
-
Method Details
-
of
Create a GeoField with fluent API.- Parameters:
name- The field name- Returns:
- A GeoFieldBuilder for fluent configuration
-
builder
Create a GeoField builder (Lombok-style).- Returns:
- A GeoFieldBuilder for fluent configuration
-
getFieldType
Description copied from class:BaseFieldGet the field type.- Specified by:
getFieldTypein classBaseField- Returns:
- The field type enumeration
-
toJedisSchemaField
Description copied from class:BaseFieldConvert to Jedis SchemaField for index creation.- Specified by:
toJedisSchemaFieldin classBaseField- Returns:
- The Jedis schema field representation
-