Package com.mongodb

Class BulkWriteUpsert


  • @Deprecated(since="2021-05-27")
    public class BulkWriteUpsert
    extends java.lang.Object
    Deprecated.
    Usage of this API is not supported in AEM as a Cloud Service.
    Represents an upsert request in a bulk write operation that resulted in an insert. It contains the index of the upsert request in the operation and the value of the _id field of the inserted document.
    Since:
    2.12
    See Also:
    BulkWriteRequestBuilder.upsert()
    • Constructor Summary

      Constructors 
      Constructor Description
      BulkWriteUpsert​(int index, java.lang.Object id)
      Deprecated.
      Constructs an instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)
      Deprecated.
       
      java.lang.Object getId()
      Deprecated.
      Gets the id of the upserted item.
      int getIndex()
      Deprecated.
      Gets the index of the upserted item based on the order it was added to the bulk write operation.
      int hashCode()
      Deprecated.
       
      java.lang.String toString()
      Deprecated.
       
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • BulkWriteUpsert

        public BulkWriteUpsert​(int index,
                               java.lang.Object id)
        Deprecated.
        Constructs an instance.
        Parameters:
        index - the index of the item that was upserted
        id - the value of the _id of the upserted item
    • Method Detail

      • 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 java.lang.Object getId()
        Deprecated.
        Gets the id of the upserted item.
        Returns:
        the id
      • equals

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

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

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