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