drill-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tshi...@apache.org
Subject [05/12] drill git commit: Jason's 030-developing-an-aggregate-function.md pull request
Date Fri, 22 May 2015 18:30:55 GMT
Jason's 030-developing-an-aggregate-function.md pull request


Project: http://git-wip-us.apache.org/repos/asf/drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/drill/commit/5c428161
Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/5c428161
Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/5c428161

Branch: refs/heads/gh-pages
Commit: 5c4281613f37afd5bfcaf29a689ab351c4fcd924
Parents: 0a7f82b
Author: Kristine Hahn <khahn@maprtech.com>
Authored: Thu May 21 17:48:35 2015 -0700
Committer: Kristine Hahn <khahn@maprtech.com>
Committed: Thu May 21 17:48:35 2015 -0700

----------------------------------------------------------------------
 .../030-developing-an-aggregate-function.md     | 21 +-------------------
 1 file changed, 1 insertion(+), 20 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill/blob/5c428161/_docs/develop-custom-functions/030-developing-an-aggregate-function.md
----------------------------------------------------------------------
diff --git a/_docs/develop-custom-functions/030-developing-an-aggregate-function.md b/_docs/develop-custom-functions/030-developing-an-aggregate-function.md
index 50bc462..76a9cfe 100644
--- a/_docs/develop-custom-functions/030-developing-an-aggregate-function.md
+++ b/_docs/develop-custom-functions/030-developing-an-aggregate-function.md
@@ -29,26 +29,7 @@ Complete the following steps to create an aggregate function:
 		@Param BitHolder in;
 		@Workspace BitHolder value;
 		@Output BitHolder out;
-  4. Include the `setup(), add(), output(),` and `reset()` methods.
-	
-	**Example**
-		public void setup() {
-		  value = new BitHolder(); 
-		  value.value = 0;
-		}
-		 
-		@Override
-		public void add() {
-		  value.value++;
-		}
-		@Override
-		public void output() {
-		  out.value = value.value;
-		}
-		@Override
-		public void reset() {
-		 
-		  value.value = 0;
+  4. Include the `setup(), add(), output(),` and `reset()` methods.  
   5. Use the maven-source-plugin to compile the sources and classes JAR files. Verify that
an empty `drill-module.conf` is included in the resources folder of the JARs.   
 Drill searches this module during classpath scanning. If the file is not
 included in the resources folder, you can add it to the JAR file or add it to


Mime
View raw message