Class Operation

  • All Implemented Interfaces:
    Serializable

    public class Operation
    extends Object
    implements Serializable
    A single stream element which contains a BulkOperationVariant. This class represents an operation that will be performed in an Elasticsearch bulk request.
    See Also:
    Serialized Form
    • Constructor Detail

      • Operation

        public Operation​(co.elastic.clients.elasticsearch.core.bulk.BulkOperationVariant bulkOperation)
        Constructs an Operation with the specified BulkOperationVariant.
        Parameters:
        bulkOperation - the BulkOperationVariant to be wrapped by this Operation.
    • Method Detail

      • getBulkOperationVariant

        public co.elastic.clients.elasticsearch.core.bulk.BulkOperationVariant getBulkOperationVariant()
        Returns the BulkOperationVariant contained in this Operation.
        Returns:
        the BulkOperationVariant instance.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object