Class BulkOperation

    • Method Detail

      • isIndex

        public boolean isIndex()
        Is this variant instance of kind index?
      • index

        public <TDocument> IndexOperation<TDocument> index()
        Get the index variant value.
        Throws:
        java.lang.IllegalStateException - if the current variant is not of the index kind.
      • isCreate

        public boolean isCreate()
        Is this variant instance of kind create?
      • create

        public <TDocument> CreateOperation<TDocument> create()
        Get the create variant value.
        Throws:
        java.lang.IllegalStateException - if the current variant is not of the create kind.
      • isUpdate

        public boolean isUpdate()
        Is this variant instance of kind update?
      • update

        public <TDocument> UpdateOperation<TDocument> update()
        Get the update variant value.
        Throws:
        java.lang.IllegalStateException - if the current variant is not of the update kind.
      • isDelete

        public boolean isDelete()
        Is this variant instance of kind delete?
      • delete

        public DeleteOperation delete()
        Get the delete variant value.
        Throws:
        java.lang.IllegalStateException - if the current variant is not of the delete kind.