You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@drill.apache.org by ts...@apache.org on 2015/05/22 20:30:55 UTC

[05/12] drill git commit: Jason's 030-developing-an-aggregate-function.md pull request

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 <kh...@maprtech.com>
Authored: Thu May 21 17:48:35 2015 -0700
Committer: Kristine Hahn <kh...@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