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:54 UTC

[04/12] drill git commit: Update 030-developing-an-aggregate-function.md pull request

Update 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/0a7f82b7
Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/0a7f82b7
Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/0a7f82b7

Branch: refs/heads/gh-pages
Commit: 0a7f82b7be63c4539ae1bda00ab8e96e758aa45b
Parents: 3a32564
Author: Kristine Hahn <kh...@maprtech.com>
Authored: Thu May 21 17:38:43 2015 -0700
Committer: Kristine Hahn <kh...@maprtech.com>
Committed: Thu May 21 17:38:43 2015 -0700

----------------------------------------------------------------------
 .../030-developing-an-aggregate-function.md               | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill/blob/0a7f82b7/_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 3368c24..50bc462 100644
--- a/_docs/develop-custom-functions/030-developing-an-aggregate-function.md
+++ b/_docs/develop-custom-functions/030-developing-an-aggregate-function.md
@@ -14,7 +14,7 @@ Complete the following steps to create an aggregate function:
 		<dependency>
 		<groupId>org.apache.drill.exec</groupId>
 		<artifactId>drill-java-exec</artifactId>
-		<version>1.0.0-m2-incubating-SNAPSHOT</version>
+		<version>1.0.0</version>
 		</dependency>
   2. Create a class that implements the `DrillAggFunc` interface and identify the scope as `FunctionTemplate.FunctionScope.POINT_AGGREGATE`.
 
@@ -32,14 +32,14 @@ Complete the following steps to create an aggregate function:
   4. Include the `setup(), add(), output(),` and `reset()` methods.
 	
 	**Example**
-		public void setup(RecordBatch b) {
+		public void setup() {
 		  value = new BitHolder(); 
-		    value.value = 0;
+		  value.value = 0;
 		}
 		 
 		@Override
 		public void add() {
-		      value.value++;
+		  value.value++;
 		}
 		@Override
 		public void output() {
@@ -48,7 +48,7 @@ Complete the following steps to create an aggregate function:
 		@Override
 		public void reset() {
 		 
-		    value.value = 0;
+		  value.value = 0;
   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