aboutsummaryrefslogtreecommitdiffstats
path: root/document/src/main/java/com/yahoo/document/serialization/DocumentDeserializerFactory.java
diff options
context:
space:
mode:
Diffstat (limited to 'document/src/main/java/com/yahoo/document/serialization/DocumentDeserializerFactory.java')
-rw-r--r--document/src/main/java/com/yahoo/document/serialization/DocumentDeserializerFactory.java15
1 files changed, 8 insertions, 7 deletions
diff --git a/document/src/main/java/com/yahoo/document/serialization/DocumentDeserializerFactory.java b/document/src/main/java/com/yahoo/document/serialization/DocumentDeserializerFactory.java
index 072f11f5f22..03aa409ee8d 100644
--- a/document/src/main/java/com/yahoo/document/serialization/DocumentDeserializerFactory.java
+++ b/document/src/main/java/com/yahoo/document/serialization/DocumentDeserializerFactory.java
@@ -13,25 +13,26 @@ public class DocumentDeserializerFactory {
/**
* Creates a de-serializer for the current head document format.
- * This format is an extension of the 4.2 format.
+ * This format is an extension of the 6.x format.
*/
public static DocumentDeserializer createHead(DocumentTypeManager manager, GrowableByteBuffer buf) {
return new VespaDocumentDeserializerHead(manager, buf);
}
/**
- * Creates a de-serializer for the document format that was created on Vespa 4.2.
+ * Creates a de-serializer for the 6.x document format.
+ * This format is an extension of the 4.2 format.
*/
- @SuppressWarnings("deprecation")
- public static DocumentDeserializer create42(DocumentTypeManager manager, GrowableByteBuffer buf) {
- return new VespaDocumentDeserializer42(manager, buf);
+ public static DocumentDeserializer create6(DocumentTypeManager manager, GrowableByteBuffer buf) {
+ return new VespaDocumentDeserializer6(manager, buf);
}
/**
* Creates a de-serializer for the document format that was created on Vespa 4.2.
*/
@SuppressWarnings("deprecation")
- public static DocumentDeserializer create42(DocumentTypeManager manager, GrowableByteBuffer buf, GrowableByteBuffer body) {
- return new VespaDocumentDeserializer42(manager, buf, body);
+ public static DocumentDeserializer create42(DocumentTypeManager manager, GrowableByteBuffer buf) {
+ return new VespaDocumentDeserializer42(manager, buf);
}
+
}