class IndexOptions extends Object
Index Options
- Annotations
- @RawJSType() @ScalaJSDefined()
- Alphabetic
- By Inheritance
- IndexOptions
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
IndexOptions(w: Any = null, wtimeout: Integer = null, j: Boolean = false, unique: Boolean = false, sparse: Boolean = false, background: Boolean = false, dropDups: Boolean = false, min: Integer = null, max: Integer = null, v: Integer = null, expireAfterSeconds: Integer = null, name: Integer = null)
- w
The write concern (number | string; default: null).
- wtimeout
The write concern timeout (default: null).
- j
Specify a journal write concern (default: false).
- unique
Creates an unique index (default: false).
- sparse
Creates a sparse index (default: false).
- background
Creates the index in the background, yielding whenever possible (default: false).
- dropDups
A unique index cannot be created on a key that has pre-existing duplicate values. If you would like to create the index anyway keeping the first document the database indexes and deleting all subsequent documents that have duplicate value (default: false).
- min
For geospatial indexes set the lower bound for the co-ordinates (default: null).
- max
For geospatial indexes set the high bound for the co-ordinates (default: null).
- v
Specify the format version of the indexes (default: null).
- expireAfterSeconds
Allows you to expire data on indexes applied to a data (MongoDB 2.2 or higher) (default: null).
- name
Override the auto-generated index name (useful if the resulting name is larger than 128 bytes) (default: null)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- var background: Boolean
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- var dropDups: Boolean
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- var expireAfterSeconds: Integer
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
- var j: Boolean
- var max: Integer
- var min: Integer
- var name: Integer
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
- var sparse: Boolean
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toLocaleString(): String
- Definition Classes
- Object
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- var unique: Boolean
- var v: Integer
-
def
valueOf(): Any
- Definition Classes
- Object
- var w: Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- var wtimeout: Integer