From 9461a08833202630fd38d45b9c5bc3d7fd6daa5f Mon Sep 17 00:00:00 2001
From: Sean McNamara <sean.mcnamara@webtrends.com>
Date: Fri, 2 May 2014 17:35:32 -0600
Subject: [PATCH] adding transform callback

---
 src/bundle.cpp | 6 ++++++
 src/bundle.h   | 2 ++
 2 files changed, 8 insertions(+)

diff --git a/src/bundle.cpp b/src/bundle.cpp
index 1ce4c07..2f7f46c 100755
--- a/src/bundle.cpp
+++ b/src/bundle.cpp
@@ -13,6 +13,9 @@
 #include "utilidor.h"	// ibis::util::reorder
 #include <sstream>	// std::ostringstream
 
+
+void (*ibis::bundleTransform)(ibis::colList& columns) = NULL;
+
 //////////////////////////////////////////////////////////////////////
 // functions of class bundle
 
@@ -1512,6 +1515,9 @@ ibis::bundles::bundles(const ibis::part& tbl, const ibis::selectClause& cmps,
 	    }
 	}
 
+	if (bundleTransform)
+		bundleTransform(cols);
+
 	if (cols.size() > 0)
 	    sort(dir);
 
diff --git a/src/bundle.h b/src/bundle.h
index e906f8a..fdfce18 100644
--- a/src/bundle.h
+++ b/src/bundle.h
@@ -27,6 +27,8 @@ namespace ibis {
     //class bundle2t;
     class bundles;
     //class bundlet;
+	
+	extern void (*bundleTransform)(colList& columns);
 }
 
 /// @ingroup FastBitIBIS
-- 
1.8.5.2 (Apple Git-48)

