aboutsummaryrefslogtreecommitdiffstats
path: root/document/src/main/java/com/yahoo/document/serialization/DocumentUpdateReader.java
blob: 19752f5c1198d4761af5c3fe285199511a3e13a6 (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
28
29
30
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.document.serialization;

import com.yahoo.document.*;
import com.yahoo.document.fieldpathupdate.*;
import com.yahoo.document.update.FieldUpdate;

/**
 * This interface is used to implement custom deserialization of document updates.
 *
 * @author <a href="mailto:thomasg@yahoo-inc.com">Thomas Gundersen</a>
 */
public interface DocumentUpdateReader {

    void read(DocumentUpdate update);

    void read(FieldUpdate update);

    void read(FieldPathUpdate update);

    void read(AssignFieldPathUpdate update);

    void read(AddFieldPathUpdate update);

    void read(RemoveFieldPathUpdate update);

    DocumentId readDocumentId();
    DocumentType readDocumentType();

}