/** * Create an index key for an 2dsphere index on the given fields. * * @param fieldNames the field names, which must contain at least one * @return the index specification * @mongodb.driver.manual core/2dsphere 2dsphere Index */ public static Bson geo2dsphere(final String... fieldNames) { return geo2dsphere(asList(fieldNames)); }
public MongoIndex geo2dsphere(String... keys) { this.bson = Indexes.geo2dsphere(keys); return this; }
public MongoIndex geo2dsphere(String... keys) { this.bson = Indexes.geo2dsphere(keys); return this; }
/** * Create an index key for an 2dsphere index on the given fields. * * @param fieldNames the field names, which must contain at least one * @return the index specification * @mongodb.driver.manual core/2dsphere 2dsphere Index */ public static Bson geo2dsphere(final String... fieldNames) { return geo2dsphere(asList(fieldNames)); }