[svn] commit: r3746 - /branches/trac418/src/lib/datasrc/zonetable.h

BIND 10 source code commits bind10-changes at lists.isc.org
Tue Dec 7 11:32:52 UTC 2010


Author: jinmei
Date: Tue Dec  7 11:32:52 2010
New Revision: 3746

Log:
updated the the Zone class description with future possible plans of interaction with other data sources.  based on a follow-up discussion in code review.

Modified:
    branches/trac418/src/lib/datasrc/zonetable.h

Modified: branches/trac418/src/lib/datasrc/zonetable.h
==============================================================================
--- branches/trac418/src/lib/datasrc/zonetable.h (original)
+++ branches/trac418/src/lib/datasrc/zonetable.h Tue Dec  7 11:32:52 2010
@@ -44,6 +44,18 @@
 /// will have more specific features.  For example, they will maintain
 /// information about the location of a zone file, whether it's loaded in
 /// memory, etc.
+///
+/// It's not yet clear how the derived zone classes work with various other
+/// data sources when we integrate these components, but one possibility is
+/// something like this:
+/// - If the underlying database such as some variant of SQL doesn't have an
+///   explicit representation of zones (as part of public interface), we can
+///   probably use a "default" zone class that simply encapsulates the
+///   corresponding data source and calls a common "find" like method.
+/// - Some data source may want to specialize it by inheritance as an
+///   optimization.  For example, in the current schema design of the sqlite3
+///   data source, its (derived) zone class would contain the information of
+///   the "zone ID".
 ///
 /// <b>Note:</b> Unlike some other abstract base classes we don't name the
 /// class beginning with "Abstract".  This is because we want to have




More information about the bind10-changes mailing list