When called on a database configured with secondary indices, this method truncates the primary database and all secondary indices. If configured to return a count of the records discarded, the returned count is the count of records discarded from the primary database.
It is an error to call this method on a database with open cursors.
@param txn For a transactional database, an explicit transaction may be specified, or null may be specified to use auto-commit. For a non-transactional database, null must be specified.
@param countRecords If true, count and return the number of records discarded.
@return The number of records discarded, or -1 if returnCount is false.
@throws DeadlockException if the operation was selected to resolve adeadlock.
@throws DatabaseException if a failure occurs.
|
|