aboutsummaryrefslogtreecommitdiffstats
path: root/document/src/main/java/com/yahoo/vespaxmlparser/DocumentFeedOperation.java
blob: 91d74cbda8fdd59bcb8acd357b5dea0fc991e70b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespaxmlparser;

import com.yahoo.document.DocumentPut;
import com.yahoo.document.TestAndSetCondition;

public class DocumentFeedOperation extends FeedOperation {

    private final DocumentPut put;

    public DocumentFeedOperation(DocumentPut put) {
        super(Type.DOCUMENT);
        this.put = put;
    }

    @Override
    public DocumentPut getDocumentPut() {
        return put;
    }

    @Override
    public TestAndSetCondition getCondition() {
        return put.getCondition();
    }

}