summaryrefslogtreecommitdiffstats
path: root/vdslib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2018-10-31 23:02:45 +0100
committerHenning Baldersheim <balder@yahoo-inc.com>2018-10-31 23:02:45 +0100
commitfb6f2c5f01f615b16860b76ba7a39b5fa7d5518f (patch)
tree954fdf6ef08d341df4558273b9aa26a33af7fc63 /vdslib
parent3db4288215479f38f7db9c1ddeeceb69a8ff93e5 (diff)
Deprecating a whole lot of body/header related methods that should have been done a long time ago.
Diffstat (limited to 'vdslib')
-rw-r--r--vdslib/src/main/java/com/yahoo/vdslib/DynamicDocumentList.java12
1 files changed, 9 insertions, 3 deletions
diff --git a/vdslib/src/main/java/com/yahoo/vdslib/DynamicDocumentList.java b/vdslib/src/main/java/com/yahoo/vdslib/DynamicDocumentList.java
index b243f0a3dea..fd627c5839e 100644
--- a/vdslib/src/main/java/com/yahoo/vdslib/DynamicDocumentList.java
+++ b/vdslib/src/main/java/com/yahoo/vdslib/DynamicDocumentList.java
@@ -2,7 +2,12 @@
package com.yahoo.vdslib;
import com.yahoo.compress.CompressionType;
-import com.yahoo.document.*;
+import com.yahoo.document.BucketIdFactory;
+import com.yahoo.document.DataType;
+import com.yahoo.document.Document;
+import com.yahoo.document.DocumentPut;
+import com.yahoo.document.DocumentRemove;
+import com.yahoo.document.DocumentUpdate;
import com.yahoo.document.serialization.DocumentSerializer;
import com.yahoo.document.serialization.DocumentSerializerFactory;
import com.yahoo.vespa.objects.Serializer;
@@ -72,6 +77,7 @@ public class DynamicDocumentList extends DocumentList {
buf.put(null, serializer.getBuf().getByteBuffer());
}
}
+ @SuppressWarnings("deprecation")
private void serializeInternal(DocumentSerializer buf) {
ByteOrder originalOrder = buf.getBuf().order();
buf.getBuf().order(ByteOrder.LITTLE_ENDIAN);
@@ -106,8 +112,8 @@ public class DynamicDocumentList extends DocumentList {
metaEntry.timestamp = lastModified;
}
- if (doc.getDataType().getHeaderType().getCompressionConfig() != null
- && doc.getDataType().getHeaderType().getCompressionConfig().type != CompressionType.NONE) {
+ if (doc.getDataType().getContentType().getCompressionConfig() != null
+ && doc.getDataType().getContentType().getCompressionConfig().type != CompressionType.NONE) {
metaEntry.flags |= MetaEntry.COMPRESSED;
}
if (doc.getDataType().getBodyType().getCompressionConfig() != null