servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbono...@apache.org
Subject svn commit: r1554206 - in /servicemix/smx4/bundles/trunk: ./ javaewah-0.7.9/ javaewah-0.7.9/src/ javaewah-0.7.9/src/main/ javaewah-0.7.9/src/main/resources/ javaewah-0.7.9/src/main/resources/OSGI-INF/
Date Mon, 30 Dec 2013 13:14:52 GMT
Author: jbonofre
Date: Mon Dec 30 13:14:51 2013
New Revision: 1554206

URL: http://svn.apache.org/r1554206
Log:
[SMX4-1650] Create OSGi bundle for javaewah 0.7.9

Added:
    servicemix/smx4/bundles/trunk/javaewah-0.7.9/
    servicemix/smx4/bundles/trunk/javaewah-0.7.9/pom.xml
    servicemix/smx4/bundles/trunk/javaewah-0.7.9/src/
    servicemix/smx4/bundles/trunk/javaewah-0.7.9/src/main/
    servicemix/smx4/bundles/trunk/javaewah-0.7.9/src/main/resources/
    servicemix/smx4/bundles/trunk/javaewah-0.7.9/src/main/resources/OSGI-INF/
    servicemix/smx4/bundles/trunk/javaewah-0.7.9/src/main/resources/OSGI-INF/bundle.info
Modified:
    servicemix/smx4/bundles/trunk/pom.xml

Added: servicemix/smx4/bundles/trunk/javaewah-0.7.9/pom.xml
URL: http://svn.apache.org/viewvc/servicemix/smx4/bundles/trunk/javaewah-0.7.9/pom.xml?rev=1554206&view=auto
==============================================================================
--- servicemix/smx4/bundles/trunk/javaewah-0.7.9/pom.xml (added)
+++ servicemix/smx4/bundles/trunk/javaewah-0.7.9/pom.xml Mon Dec 30 13:14:51 2013
@@ -0,0 +1,99 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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">
+
+    <!--
+
+        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.
+    -->
+
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.apache.servicemix.bundles</groupId>
+        <artifactId>bundles-pom</artifactId>
+        <version>11-SNAPSHOT</version>
+        <relativePath>../bundles-pom/pom.xml</relativePath>
+    </parent>
+
+    <groupId>org.apache.servicemix.bundles</groupId>
+    <artifactId>org.apache.servicemix.bundles.javaewah</artifactId>
+    <version>0.7.9_1-SNAPSHOT</version>
+    <packaging>bundle</packaging>
+    <name>Apache ServiceMix :: Bundles :: ${pkgArtifactId}</name>
+    <description>This OSGi bundle wraps ${pkgArtifactId} ${pkgVersion} jar file.</description>
+
+    <properties>
+        <pkgGroupId>com.googlecode.javaewah</pkgGroupId>
+        <pkgArtifactId>JavaEWAH</pkgArtifactId>
+        <pkgVersion>0.7.9</pkgVersion>
+        <servicemix.osgi.export.pkg>
+            javaewah
+        </servicemix.osgi.export.pkg>
+        <servicemix.osgi.import.pkg>
+
+        </servicemix.osgi.import.pkg>
+    </properties>
+
+    <dependencies>
+        <dependency>
+            <groupId>${pkgGroupId}</groupId>
+            <artifactId>${pkgArtifactId}</artifactId>
+            <version>${pkgVersion}</version>
+        </dependency>
+
+        <!-- sources -->
+        <dependency>
+            <groupId>${pkgGroupId}</groupId>
+            <artifactId>${pkgArtifactId}</artifactId>
+            <version>${pkgVersion}</version>
+            <classifier>sources</classifier>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-shade-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>shade</goal>
+                        </goals>
+                        <configuration>
+                            <artifactSet>
+                                <includes>
+                                    <include>${pkgGroupId}:${pkgArtifactId}</include>
+                                </includes>
+                            </artifactSet>
+                            <filters>
+                                <filter>
+                                    <artifact>${pkgGroupId}:${pkgArtifactId}</artifact>
+                                    <excludes>
+                                        <exclude>**/*</exclude>
+                                    </excludes>
+                                </filter>
+                            </filters>
+                            <promoteTransitiveDependencies>true</promoteTransitiveDependencies>
+                            <createDependencyReducedPom>true</createDependencyReducedPom>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+</project>
\ No newline at end of file

Added: servicemix/smx4/bundles/trunk/javaewah-0.7.9/src/main/resources/OSGI-INF/bundle.info
URL: http://svn.apache.org/viewvc/servicemix/smx4/bundles/trunk/javaewah-0.7.9/src/main/resources/OSGI-INF/bundle.info?rev=1554206&view=auto
==============================================================================
--- servicemix/smx4/bundles/trunk/javaewah-0.7.9/src/main/resources/OSGI-INF/bundle.info (added)
+++ servicemix/smx4/bundles/trunk/javaewah-0.7.9/src/main/resources/OSGI-INF/bundle.info Mon
Dec 30 13:14:51 2013
@@ -0,0 +1,32 @@
+\u001B[1mSYNOPSIS\u001B[0m
+    ${project.description}
+
+    Original Maven URL:
+        \u001B[33mmvn:${pkgGroupId}/${pkgArtifactId}/${pkgVersion}\u001B[0m
+
+\u001B[1mDESCRIPTION\u001B[0m
+	The bit array data structure is implemented in Java as the BitSet class. Unfortunately,
this fails to scale
+	without compression.
+
+    JavaEWAH is a word-aligned compressed variant of the Java bitset class. It uses a 64-bit
run-length encoding (RLE)
+    compression scheme. We trade-off some compression for better processing speed. We also
have a 32-bit version which
+    compresses better, but is not as fast.
+
+    In general, the goal of word-aligned compression is not to achieve the best compression,
but rather to improve query
+    processing time. Hence, we try to save CPU cycles, maybe at the expense of storage. However,
the EWAH scheme we
+    implemented is always more efficient storage-wise than an uncompressed bitmap as implemented
in the BitSet class).
+    Unlike some alternatives, javaewah does not rely on a patented scheme.
+
+    It includes exhaustive unit testing. As of November 2011, Apache Maven is used to build
and validate the releases.
+    (Building the source code with javac remains trivial).
+
+    Usage:
+
+                        // set bits at pos. 0, 2, 64, and 1<<30 to value "true" (others
are false)
+                        EWAHCompressedBitmap ewahBitmap1 = EWAHCompressedBitmap.bitmapOf(0,2,64,1<<30);
+                        EWAHCompressedBitmap ewahBitmap2 = EWAHCompressedBitmap.bitmapOf(1,3,64,1<<30);
+                        EWAHCompressedBitmap xorbitmap = EWAHCompressedBitmap.xor(ewahBitmap1,ewahBitmap2);
+                        int[] setbits = xorbitmap.toArray();// which bits are set?
+
+\u001B[1mSEE ALSO\u001B[0m
+    \u001B[36mhttp://code.google.com/p/javaewah/\u001B[0m

Modified: servicemix/smx4/bundles/trunk/pom.xml
URL: http://svn.apache.org/viewvc/servicemix/smx4/bundles/trunk/pom.xml?rev=1554206&r1=1554205&r2=1554206&view=diff
==============================================================================
--- servicemix/smx4/bundles/trunk/pom.xml (original)
+++ servicemix/smx4/bundles/trunk/pom.xml Mon Dec 30 13:14:51 2013
@@ -61,6 +61,7 @@
         <module>postgresql-9.3-1100-jdbc41</module>
         <module>facebook4j-2.0.4</module>
         <module>hbase-0.96.1.1-hadoop2</module>
+        <module>javaewah-0.7.9</module>
     </modules>
 
 </project>



Mime
View raw message