Class InsertRequest

java.lang.Object
com.mongodb.bulk.WriteRequest
com.mongodb.bulk.InsertRequest

@Deprecated public final class InsertRequest extends WriteRequest
Deprecated.
A representation of a document to insert.
Since:
3.0
  • Constructor Details

    • InsertRequest

      public InsertRequest(BsonDocument document)
      Deprecated.
      Construct an instance with the given document.
      Parameters:
      document - the document, which may not be null
  • Method Details

    • getDocument

      public BsonDocument getDocument()
      Deprecated.
      Gets the document to insert.
      Returns:
      the document
    • getType

      public WriteRequest.Type getType()
      Deprecated.
      Description copied from class: WriteRequest
      Gets the type of the write.
      Specified by:
      getType in class WriteRequest
      Returns:
      the type