summaryrefslogtreecommitdiffstats
path: root/document/src
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@oath.com>2018-05-30 23:08:27 +0200
committerHenning Baldersheim <balder@oath.com>2018-05-31 13:49:27 +0200
commitf6cc918be775094726aa3c241ab4340e8363342f (patch)
tree5b3719b0dfa3780027540d0eeea657f4f7d7f10a /document/src
parent343ece39072d3132885922b132dc57dcbebe3881 (diff)
Hide implementation details.
Diffstat (limited to 'document/src')
-rw-r--r--document/src/vespa/document/update/documentupdate.h37
1 files changed, 18 insertions, 19 deletions
diff --git a/document/src/vespa/document/update/documentupdate.h b/document/src/vespa/document/update/documentupdate.h
index a1c6e855bfd..c84834e1a75 100644
--- a/document/src/vespa/document/update/documentupdate.h
+++ b/document/src/vespa/document/update/documentupdate.h
@@ -48,15 +48,6 @@ public:
typedef std::shared_ptr<DocumentUpdate> SP;
typedef std::vector<FieldUpdate> FieldUpdateV;
typedef std::vector<FieldPathUpdate::CP> FieldPathUpdateV;
- /**
- * Enum class containing the legal serialization version for
- * document updates. This version is not encoded in the serialized
- * document update.
- */
- enum class SerializeVersion {
- SERIALIZE_42, // old style format, before vespa 5.0
- SERIALIZE_HEAD // new style format, since vespa 5.0
- };
/**
* Create old style document update, no support for field path updates.
@@ -80,16 +71,6 @@ public:
*/
DocumentUpdate(const DataType &type, const DocumentId& id);
- /**
- * Create a document update from a byte buffer containing a serialized
- * document update.
- *
- * @param repo Document type repo used to find proper document type
- * @param buffer The buffer containing the serialized document update
- * @param serializeVersion Selector between serialization formats.
- */
- DocumentUpdate(const DocumentTypeRepo &repo, ByteBuffer &buffer, SerializeVersion serializeVersion);
-
DocumentUpdate(const DocumentUpdate &) = delete;
DocumentUpdate & operator = (const DocumentUpdate &) = delete;
~DocumentUpdate() override;
@@ -164,6 +145,24 @@ private:
bool _createIfNonExistent;
int deserializeFlags(int sizeAndFlags);
+ /**
+ * Enum class containing the legal serialization version for
+ * document updates. This version is not encoded in the serialized
+ * document update.
+ */
+ enum class SerializeVersion {
+ SERIALIZE_42, // old style format, before vespa 5.0
+ SERIALIZE_HEAD // new style format, since vespa 5.0
+ };
+ /**
+ * Create a document update from a byte buffer containing a serialized
+ * document update.
+ *
+ * @param repo Document type repo used to find proper document type
+ * @param buffer The buffer containing the serialized document update
+ * @param serializeVersion Selector between serialization formats.
+ */
+ DocumentUpdate(const DocumentTypeRepo &repo, ByteBuffer &buffer, SerializeVersion serializeVersion);
};
} // document