move onAddDoc API up to common base class
@@ -301,6 +301,14 @@ public:
virtual IExtendAttribute * getExtendInterface();
protected:
+ /**
+ * Called when a new document has been added, but only for
+ * multivalue, enumerated, and string attributes.
+ * Can be overridden by subclasses that need to resize structures as a result of this.
+ * Should return true if underlying structures were resized.
+ **/
+ virtual bool onAddDoc(DocId) { return false; }
+
/**
* Returns the number of readers holding a generation guard.
* Should be called by the writer thread.
