Class DocumentUpdateJsonSerializer

java.lang.Object
com.yahoo.document.json.DocumentUpdateJsonSerializer

public class DocumentUpdateJsonSerializer extends Object
The DocumentUpdateJsonSerializer utility class is used to serialize a DocumentUpdate instance using the JSON format described in Document JSON Format: The Update Structure
Author:
Vegard Sjonfjell
See Also:
  • Constructor Details

    • DocumentUpdateJsonSerializer

      public DocumentUpdateJsonSerializer(OutputStream outputStream)
      Instantiate a DocumentUpdateJsonSerializer that outputs JSON to an OutputStream
    • DocumentUpdateJsonSerializer

      public DocumentUpdateJsonSerializer(com.fasterxml.jackson.core.JsonGenerator generator)
      Instantiate a DocumentUpdateJsonSerializer that writes JSON using existing JsonGenerator
  • Method Details

    • serialize

      public void serialize(DocumentUpdate update)
      Serialize a DocumentUpdate tree to JSON