trait CommandCursor[T] extends Object with Readable
Creates a new Command Cursor instance (INTERNAL TYPE, do not instantiate directly)
- Annotations
- @RawJSType() @native()
- See also
http://mongodb.github.io/node-mongodb-native/2.2/api/CommandCursor.html
- Alphabetic
- By Inheritance
- CommandCursor
- Readable
- IEventEmitter
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
-
def
_read(size: Int): Unit
- Definition Classes
- Readable
-
def
_readableState: ReadableState
- Definition Classes
- Readable
-
def
addListener(eventName: String, listener: Function): CommandCursor.this.type
- Definition Classes
- IEventEmitter
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
batchSize(size: Int): CommandCursor.this.type
Set the batch size for the cursor.
Set the batch size for the cursor.
- size
The batchSize for the cursor.
- returns
-
def
clone(): CommandCursor.this.type
Clone the cursor
-
def
close(callback: MongoCallback1[CommandCursor.this.type]): Unit
Close the cursor, sending a KillCursor command and emitting close.
Close the cursor, sending a KillCursor command and emitting close.
- callback
The result callback.
-
def
close(): Promise[CommandCursor.this.type]
Close the cursor, sending a KillCursor command and emitting close.
Close the cursor, sending a KillCursor command and emitting close.
- returns
a promise of the result
-
val
domain: String
- Definition Classes
- IEventEmitter
-
def
each(callback: MongoCallback1[T]): Unit
Iterates over all the documents for this cursor.
Iterates over all the documents for this cursor. As with {cursor.toArray}, not all of the elements will be iterated if this cursor had been previouly accessed. In that case, {cursor.rewind} can be used to reset the cursor. However, unlike {cursor.toArray}, the cursor will only hold a maximum of batch size elements at any given time if batch size is specified. Otherwise, the caller is responsible for making sure that the entire result can fit the memory.
- callback
The result callback.
-
def
emit(name: String, args: Any*): Any
- Definition Classes
- IEventEmitter
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
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
getMaxListeners(): Int
- Definition Classes
- IEventEmitter
-
def
hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
def
isClosed(): Boolean
Is the cursor closed
Is the cursor closed
- returns
true, if the cursor is closed
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isPaused(): Boolean
- Definition Classes
- Readable
-
def
isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
-
def
listenerCount(eventName: String): Int
- Definition Classes
- IEventEmitter
-
def
listeners(eventName: String): Array[Function]
- Definition Classes
- IEventEmitter
-
def
maxTimeMS(value: Int): CommandCursor.this.type
Add a maxTimeMS stage to the aggregation pipeline
Add a maxTimeMS stage to the aggregation pipeline
- value
The state maxTimeMS value.
- returns
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
next(callback: MongoCallback1[T]): Unit
Get the next available document from the cursor, returns null if no more documents are available.
Get the next available document from the cursor, returns null if no more documents are available.
- callback
The result callback.
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
on(eventName: String, listener: Function): CommandCursor.this.type
- Definition Classes
- IEventEmitter
-
def
once(eventName: String, listener: Function): CommandCursor.this.type
- Definition Classes
- IEventEmitter
-
def
pause(): CommandCursor.this.type
- Definition Classes
- Readable
-
def
pipe(destination: Writable, options: |[ReadablePipeOptions, RawOptions]): CommandCursor.this.type
- Definition Classes
- Readable
-
def
propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
-
def
push(chunk: Buffer): Boolean
- Definition Classes
- Readable
-
def
push(chunk: String, encoding: String): Boolean
- Definition Classes
- Readable
-
def
read[T](size: Int): T
- Definition Classes
- Readable
-
def
removeAllListeners(): CommandCursor.this.type
- Definition Classes
- IEventEmitter
-
def
removeAllListeners(eventName: String): CommandCursor.this.type
- Definition Classes
- IEventEmitter
-
def
removeListener(eventName: String, listener: Function): CommandCursor.this.type
- Definition Classes
- IEventEmitter
-
def
resume(): CommandCursor.this.type
- Definition Classes
- Readable
-
def
setEncoding(encoding: String): CommandCursor.this.type
- Definition Classes
- Readable
-
def
setMaxListeners(n: Int): CommandCursor.this.type
- Definition Classes
- IEventEmitter
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toArray(callback: MongoCallback1[Array[T]]): Unit
Returns an array of documents.
Returns an array of documents. The caller is responsible for making sure that there is enough memory to store the results. Note that the array only contain partial results when this cursor had been previouly accessed.
- callback
The result callback.
-
def
toArray(): Promise[Array[T]]
Returns an array of documents.
Returns an array of documents. The caller is responsible for making sure that there is enough memory to store the results. Note that the array only contain partial results when this cursor had been previouly accessed.
- returns
the promise of an array of results
-
def
toLocaleString(): String
- Definition Classes
- Object
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
unpipe(destination: Writable): Unit
- Definition Classes
- Readable
-
def
unshift(chunk: Any): Unit
- Definition Classes
- Readable
-
val
usingDomains: Boolean
- Definition Classes
- IEventEmitter
-
def
valueOf(): Any
- Definition Classes
- Object
-
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( ... )
-
def
wrap(stream: Any): Unit
- Definition Classes
- Readable