Class GeoField

java.lang.Object
com.redis.vl.schema.BaseField
com.redis.vl.schema.GeoField

public class GeoField extends BaseField
GeoField represents a geographic field in Redis. Used for fields that contain longitude,latitude coordinates and support geographic queries.
  • Constructor Details

    • GeoField

      public GeoField(String name)
      Create a GeoField with just a name.
      Parameters:
      name - The field name
  • Method Details

    • of

      public static GeoField.GeoFieldBuilder of(String name)
      Create a GeoField with fluent API.
      Parameters:
      name - The field name
      Returns:
      A GeoFieldBuilder for fluent configuration
    • builder

      public static GeoField.GeoFieldBuilder builder()
      Create a GeoField builder (Lombok-style).
      Returns:
      A GeoFieldBuilder for fluent configuration
    • getFieldType

      public FieldType getFieldType()
      Description copied from class: BaseField
      Get the field type.
      Specified by:
      getFieldType in class BaseField
      Returns:
      The field type enumeration
    • toJedisSchemaField

      public SchemaField toJedisSchemaField()
      Description copied from class: BaseField
      Convert to Jedis SchemaField for index creation.
      Specified by:
      toJedisSchemaField in class BaseField
      Returns:
      The Jedis schema field representation