Companion¶
object Companion
Properties¶
COUNTER_BOUND¶
const val COUNTER_BOUND: Int
The smallest integer that is not allowed in ObjectId.counter.
The minimum allowed value is 0.
MAX¶
MIN¶
PROCESS_ID_BOUND¶
const val PROCESS_ID_BOUND: Long
The smallest integer that is not allowed in ObjectId.processId.
The minimum allowed value is 0.
Functions¶
maxAt¶
The maximum ObjectId created at timestamp.
It is guaranteed that:
-
All
ObjectIdinstances created attimestampare lesser or equal to the output of this function. -
All
ObjectIdinstances created beforetimestampare strictly lesser than the output of this function. -
All
ObjectIdinstances created aftertimestampare strictly greater than the output of this function.
This function is particularly helpful to create queries against ranges of timestamps.
See also
minAt¶
The minimum ObjectId created at timestamp.
It is guaranteed that:
-
All
ObjectIdinstances created attimestampare greater or equal to the output of this function. -
All
ObjectIdinstances created beforetimestampare strictly lesser than the output of this function. -
All
ObjectIdinstances created aftertimestampare strictly greater than the output of this function.
This function is particularly helpful to create queries against ranges of timestamps.
See also