Returns the number of ResultItems, if known, in this ResultSequence. For streaming (non-cached) ResultSequences, ResultItems are processed sequentially from the communication channel and so the size of the full sequence is not known during iteration.
The size, if this ResultSequence is cached, otherwise -1.
ResultSequence Interface | Marklogic.Xcc Namespace