aboutsummaryrefslogtreecommitdiffstats
path: root/document/src/main/java/com/yahoo/document/serialization/DocumentReader.java
blob: b4c242a6f92645477165725b23f9f7b4d9df96f5 (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.document.serialization;

import com.yahoo.document.Document;
import com.yahoo.document.DocumentId;
import com.yahoo.document.DocumentType;
import com.yahoo.document.DocumentTypeManager;

/**
 * This interface is used to implement custom deserialization of document updates.
 *
 * @author Ravi Sharma
 * @author baldersheim
 */
public interface DocumentReader {

    /**
     * Read a document
     *
     * @param document - document to be read
     */
    void read(Document document);

    DocumentId readDocumentId();
    DocumentType readDocumentType();

}