drill-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jacq...@apache.org
Subject [06/13] drill git commit: DRILL-3914: Gis contrib module with basic spatial queries functionality
Date Mon, 26 Oct 2015 17:42:53 GMT
DRILL-3914: Gis contrib module with basic spatial queries functionality

This closes #191


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

Branch: refs/heads/master
Commit: 6576123d5351219fc2c5bd3af1676ccb77a51e34
Parents: 52bfd3b
Author: potocki <k255@gmx.com>
Authored: Thu Oct 8 08:10:33 2015 +0200
Committer: Jacques Nadeau <jacques@apache.org>
Committed: Mon Oct 26 08:39:27 2015 -0700

----------------------------------------------------------------------
 contrib/gis/pom.xml                             |  134 +
 contrib/gis/sample-data/CA-cities.csv           | 5727 ++++++++++++++++++
 .../drill/exec/expr/fn/impl/gis/STAsText.java   |   58 +
 .../drill/exec/expr/fn/impl/gis/STDWithin.java  |   68 +
 .../exec/expr/fn/impl/gis/STGeomFromText.java   |   62 +
 .../expr/fn/impl/gis/STGeomFromTextSrid.java    |   68 +
 .../exec/expr/fn/impl/gis/STPointFunc.java      |   63 +
 .../drill/exec/expr/fn/impl/gis/STWithin.java   |   62 +
 .../gis/src/main/resources/drill-module.conf    |    0
 .../exec/expr/fn/impl/gis/GISTestSuite.java     |   30 +
 .../expr/fn/impl/gis/TestGeometryFunctions.java |   75 +
 contrib/pom.xml                                 |    1 +
 distribution/pom.xml                            |    5 +
 distribution/src/assemble/bin.xml               |    1 +
 14 files changed, 6354 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill/blob/6576123d/contrib/gis/pom.xml
----------------------------------------------------------------------
diff --git a/contrib/gis/pom.xml b/contrib/gis/pom.xml
new file mode 100644
index 0000000..133dc2e
--- /dev/null
+++ b/contrib/gis/pom.xml
@@ -0,0 +1,134 @@
+<?xml version="1.0"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements.  See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License.  You may obtain a copy of the License at
+
+     http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+	<modelVersion>4.0.0</modelVersion>
+	<parent>
+		<artifactId>drill-contrib-parent</artifactId>
+		<groupId>org.apache.drill.contrib</groupId>
+		<version>1.3.0-SNAPSHOT</version>
+	</parent>
+
+	<artifactId>drill-gis</artifactId>
+
+	<name>contrib/drill-gis-plugin</name>
+
+	<properties>
+		<gis.TestSuite>**/GISTestSuite.class</gis.TestSuite>
+	</properties>
+
+	<dependencies>
+		<dependency>
+			<groupId>org.apache.drill.exec</groupId>
+			<artifactId>drill-java-exec</artifactId>
+			<version>${project.version}</version>
+		</dependency>
+		<dependency>
+			<groupId>com.esri.geometry</groupId>
+			<artifactId>esri-geometry-api</artifactId>
+			<version>1.2.1</version>
+		</dependency>
+
+		<!-- Test dependencies -->
+		<dependency>
+			<groupId>org.apache.drill.exec</groupId>
+			<artifactId>drill-java-exec</artifactId>
+			<classifier>tests</classifier>
+			<version>${project.version}</version>
+			<scope>test</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.drill</groupId>
+			<artifactId>drill-common</artifactId>
+			<classifier>tests</classifier>
+			<version>${project.version}</version>
+			<scope>test</scope>
+		</dependency>
+		<dependency>
+			<groupId>com.yammer.metrics</groupId>
+			<artifactId>metrics-core</artifactId>
+			<version>2.1.1</version>
+			<scope>test</scope>
+		</dependency>
+	</dependencies>
+	<build>
+		<plugins>
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-surefire-plugin</artifactId>
+				<configuration>
+					<includes>
+						<include>${gis.TestSuite}</include>
+					</includes>
+					<systemProperties>
+						<property>
+							<name>logback.log.dir</name>
+							<value>${project.build.directory}/surefire-reports</value>
+						</property>
+					</systemProperties>
+				</configuration>
+			</plugin>
+			<plugin>
+				<artifactId>maven-resources-plugin</artifactId>
+				<executions>
+					<execution>
+						<id>copy-java-sources</id>
+						<phase>process-sources</phase>
+						<goals>
+							<goal>copy-resources</goal>
+						</goals>
+						<configuration>
+							<outputDirectory>${basedir}/target/classes/org/apache/drill/exec/expr/fn/impl</outputDirectory>
+							<resources>
+								<resource>
+									<directory>src/main/java/org/apache/drill/exec/expr/fn/impl</directory>
+									<filtering>true</filtering>
+								</resource>
+								<resource>
+									<directory>src/test/java</directory>
+									<filtering>true</filtering>
+								</resource>
+								<resource>
+									<directory>target/generated-sources</directory>
+									<!-- <include>*/org</include> -->
+									<filtering>true</filtering>
+								</resource>
+							</resources>
+						</configuration>
+					</execution>
+					<execution>
+						<id>copy-gis-sample-data</id>
+						<phase>process-sources</phase>
+						<goals>
+							<goal>copy-resources</goal>
+						</goals>
+						<configuration>
+							<outputDirectory>${project.build.directory}/classes/sample-data</outputDirectory>
+							<resources>
+								<resource>
+									<directory>sample-data</directory>
+									<filtering>false</filtering>
+								</resource>
+							</resources>
+						</configuration>
+					</execution>
+				</executions>
+			</plugin>
+		</plugins>
+	</build>
+</project>


Mime
View raw message