Description. Calling this method closes a scan. Rows returned by this scan are no longer available after the scan has been closed using this method.
See Scans with exclusive locks, for information about multiple threads attempting to perform the same scan with an exclusive lock and how this can affect closing the scans.
Signature.
void close
(
bool forceSend = false,
bool releaseOp = false
)
Parameters. This method takes the two parameters listed here:
forceSend
defaults tofalse
; callclose()
with this parameter set totrue
in order to force transactions to be sent.-
releaseOp
also defaults tofalse
; set this totrue
in order to release the operation.Prior to NDB 7.2.19 and NDB 7.3.8, the buffer allocated by an
NdbScanOperation
for receiving the scanned rows was not released until theNdbTransaction
owning the scan operation was closed (Bug #75128, Bug #20166585). In these and subsequent versions of NDB Cluster, the buffer is released whenever the cursor navigating the result set is closed using theclose()
method, regardless of the value of thereleaseOp
argument.
Return value. None.