Class GeoIndexDefinition

java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.cloud.cloudant.v1.model.GeoIndexDefinition
All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel

public class GeoIndexDefinition extends com.ibm.cloud.sdk.core.service.model.GenericModel
Schema for a geospatial index definition.
  • Method Details

    • newBuilder

      public GeoIndexDefinition.Builder newBuilder()
      New builder.
      Returns:
      a GeoIndexDefinition builder
    • index

      public String index()
      Gets the index. String form of a JavaScript function that is called for each document in the database. The function takes the document as a parameter, extracts some geospatial data from it, and then calls the `st_index` function to index that data. The `st_index` takes a GeoJSON geometry as a parameter.
      Returns:
      the index