blob: f76cad08e50e932c2cef96a5da9b1061ee3f847b (
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 Yahoo. 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();
}
}
|