Package com.c8db.model
Class GeoIndexOptions
- java.lang.Object
-
- com.c8db.model.IndexOptions
-
- com.c8db.model.GeoIndexOptions
-
public class GeoIndexOptions extends IndexOptions
-
-
Constructor Summary
Constructors Constructor Description GeoIndexOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected GeoIndexOptionsfields(Iterable<String> fields)GeoIndexOptionsgeoJson(Boolean geoJson)protected Iterable<String>getFields()BooleangetGeoJson()-
Methods inherited from class com.c8db.model.IndexOptions
create, getInBackground, getName, getType, inBackground, name
-
-
-
-
Method Detail
-
fields
protected GeoIndexOptions fields(Iterable<String> fields)
- Parameters:
fields- A list of attribute paths- Returns:
- options
-
getGeoJson
public Boolean getGeoJson()
-
geoJson
public GeoIndexOptions geoJson(Boolean geoJson)
- Parameters:
geoJson- If a geo-spatial index on a location is constructed and geoJson is true, then the order within the array is longitude followed by latitude. This corresponds to the format described in- Returns:
- options
-
-