Class BulkWriteOptions


  • public class BulkWriteOptions
    extends Object
    Options for configuring bulk write operations.
    Author:
    sschmitt
    • Field Detail

      • WRITE_OPTION

        public static final String WRITE_OPTION
        Field name for the writeOption value in json representation
        See Also:
        Constant Field Values
      • DEFAULT_ORDERED

        public static final boolean DEFAULT_ORDERED
        The default value of ordered = true
        See Also:
        Constant Field Values
    • Constructor Detail

      • BulkWriteOptions

        public BulkWriteOptions()
        Default constructor
      • BulkWriteOptions

        public BulkWriteOptions​(boolean ordered)
        Constructor specifying ordered
        Parameters:
        ordered - the value of ordered
      • BulkWriteOptions

        public BulkWriteOptions​(BulkWriteOptions other)
        Copy constructor
        Parameters:
        other - the one to copy
      • BulkWriteOptions

        public BulkWriteOptions​(JsonObject json)
        Constructor from JSON
        Parameters:
        json - the json
    • Method Detail

      • getWriteOption

        public WriteOption getWriteOption()
        Get the write option
        Returns:
        the write option
      • setWriteOption

        public BulkWriteOptions setWriteOption​(WriteOption writeOption)
        Set the write option
        Parameters:
        writeOption - the write option
        Returns:
        fluent reference to this
      • isOrdered

        public boolean isOrdered()
        Get whether the operations will be executed in the given order
        Returns:
        if ordered is enabled
      • setOrdered

        public BulkWriteOptions setOrdered​(boolean ordered)
        Set the ordered option
        Parameters:
        ordered - the ordered option
        Returns:
        fluent reference to this
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object