public class IndexesKt
@NotNull
public static org.bson.conversions.Bson ascendingIndex(@NotNull
kotlin.reflect.KProperty... properties)
Create an index key for an ascending index on the given fields.
properties - the properties, which must contain at least one@NotNull
public static org.bson.conversions.Bson ascendingIndex(@NotNull
java.lang.Iterable<? extends kotlin.reflect.KProperty<?>> properties)
Create an index key for an ascending index on the given fields.
properties - the properties, which must contain at least one@NotNull
public static org.bson.conversions.Bson descendingIndex(@NotNull
kotlin.reflect.KProperty... properties)
Create an index key for a descending index on the given fields.
properties - the properties, which must contain at least one@NotNull
public static org.bson.conversions.Bson descendingIndex(@NotNull
java.lang.Iterable<? extends kotlin.reflect.KProperty<?>> properties)
Create an index key for a descending index on the given fields.
properties - the properties, which must contain at least one@NotNull
public static org.bson.conversions.Bson geo2dsphere(@NotNull
kotlin.reflect.KProperty... properties)
Create an index key for an 2dsphere index on the given fields.
properties - the properties, which must contain at least one@NotNull
public static org.bson.conversions.Bson geo2dsphere(@NotNull
java.lang.Iterable<? extends kotlin.reflect.KProperty<?>> properties)
Create an index key for an 2dsphere index on the given fields.
properties - the properties, which must contain at least one@NotNull
public static <T> org.bson.conversions.Bson textIndex(@NotNull
kotlin.reflect.KProperty<? extends T> $this$textIndex)
Create an index key for a text index on the given property.
@NotNull
public static <T> org.bson.conversions.Bson hashedIndex(@NotNull
kotlin.reflect.KProperty<? extends T> $this$hashedIndex)
Create an index key for a hashed index on the given property.
@NotNull
public static org.bson.conversions.Bson index(@NotNull
kotlin.Pair... properties)
Create a compound index specifications. If any properties are repeated, the last one takes precedence.
@NotNull
public static org.bson.conversions.Bson index(@NotNull
java.util.Map<kotlin.reflect.KProperty,java.lang.Boolean> properties)
Create a compound multiple index specifications. If any properties are repeated, the last one takes precedence.