Docs Menu
Docs Home
/ / /
PHP 라이브러리 매뉴얼
/ /

MongoDB\BulkWriteCommandResult 클래스

MongoDB\BulkWriteCommandResult

이 클래스에는 완료된 클라이언트 대량 쓰기 (write) 작업에 대한 정보가 포함되어 있습니다.MongoDB\Client::bulkWrite() 에서 반환됩니다.

메서드
설명

getInsertedCount()

Returns the total number of documents inserted by all insert operations in the bulk write command.

getMatchedCount()

Returns the total number of documents matched by all update and replace operations in the bulk write command.

getModifiedCount()

Returns the total number of documents modified by all update and replace operations in the bulk write command.

getUpsertedCount()

Returns the total number of documents upserted by all update and replace operations in the bulk write command.

getDeletedCount()

Return the total number of documents deleted by all delete operations in the bulk write command.

getInsertResults()

Returns a map of results of each successful insert operation. Each operation is represented by an integer key, which contains a document with information corresponding to the operation such as the inserted _id value.

getUpdateResults()

Returns a map of results of each successful update operation. Each operation is represented by an integer key, which contains a document with information corresponding to the operation.

getDeleteResults()

Returns a map of results of each successful delete operation. Each operation is represented by an integer key, which contains a document with information corresponding to the operation.

isAcknowledged()

Returns a boolean indicating whether the server acknowledged the bulk operation.

클라이언트 대량 쓰기 (write) 작업을 수행할 때 서버 에서 반환되는 정보에 대해 자세히 학습 셸 메서드 참조의 출력 Mongo.bulkWrite 섹션을 참조하세요.

  • 대량 쓰기 작업 가이드 의 클라이언트 대량 쓰기 섹션

돌아가기

결과 클래스