Class BulkWriteUpsert

java.lang.Object
com.mongodb.bulk.BulkWriteUpsert

@Deprecated(since="2021-05-27") public class BulkWriteUpsert extends Object
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
Represents an item in the bulk write that was upserted.
Since:
3.0
  • Constructor Summary

    Constructors
    Constructor
    Description
    BulkWriteUpsert(int index, BsonValue id)
    Deprecated.
    Construct an instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Deprecated.
     
    Deprecated.
    Gets the id of the upserted item.
    int
    Deprecated.
    Gets the index of the upserted item based on the order it was added to the bulk write operation.
    int
    Deprecated.
     
    Deprecated.
     

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • BulkWriteUpsert

      public BulkWriteUpsert(int index, BsonValue id)
      Deprecated.
      Construct an instance.
      Parameters:
      index - the index in the list of bulk write requests that the upsert occurred in
      id - the id of the document that was inserted as the result of the upsert
  • Method Details

    • getIndex

      public int getIndex()
      Deprecated.
      Gets the index of the upserted item based on the order it was added to the bulk write operation.
      Returns:
      the index
    • getId

      public BsonValue getId()
      Deprecated.
      Gets the id of the upserted item.
      Returns:
      the id
    • equals

      public boolean equals(Object o)
      Deprecated.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object