Skip to content

Commit

Permalink
Move hash functions to io module.
Browse files Browse the repository at this point in the history
  • Loading branch information
kuujo committed Mar 5, 2015
1 parent 1b307a3 commit 42fab4a
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 102 deletions.
9 changes: 9 additions & 0 deletions io/pom.xml
Expand Up @@ -26,12 +26,21 @@
<artifactId>copycat-io</artifactId>
<name>Copycat I/O</name>

<properties>
<hash.version>0.2</hash.version>
</properties>

<dependencies>
<dependency>
<groupId>net.kuujo.copycat</groupId>
<artifactId>copycat-util</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>net.openhft</groupId>
<artifactId>zero-allocation-hashing</artifactId>
<version>${hash.version}</version>
</dependency>
</dependencies>

<build>
Expand Down
4 changes: 0 additions & 4 deletions io/src/main/java/net/kuujo/copycat/io/util/BloomFilter.java
Expand Up @@ -15,10 +15,6 @@
*/
package net.kuujo.copycat.io.util;

import net.kuujo.copycat.util.hash.CityHashFunction;
import net.kuujo.copycat.util.hash.HashFunction;
import net.kuujo.copycat.util.hash.Murmur3HashFunction;

import java.io.Closeable;
import java.io.IOException;
import java.util.Objects;
Expand Down
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package net.kuujo.copycat.util.hash;
package net.kuujo.copycat.io.util;

import net.openhft.hashing.LongHashFunction;

Expand Down
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package net.kuujo.copycat.util.hash;
package net.kuujo.copycat.io.util;

import net.kuujo.copycat.util.internal.Buffers;

Expand Down
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package net.kuujo.copycat.util.hash;
package net.kuujo.copycat.io.util;

/**
* Hash function constants.
Expand Down
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package net.kuujo.copycat.util.hash;
package net.kuujo.copycat.io.util;

import net.openhft.hashing.LongHashFunction;

Expand Down
12 changes: 0 additions & 12 deletions util/pom.xml
Expand Up @@ -26,18 +26,6 @@
<artifactId>copycat-util</artifactId>
<name>Copycat Utilities</name>

<properties>
<hash.version>0.2</hash.version>
</properties>

<dependencies>
<dependency>
<groupId>net.openhft</groupId>
<artifactId>zero-allocation-hashing</artifactId>
<version>${hash.version}</version>
</dependency>
</dependencies>

<build>
<plugins>
<!-- This plugin forces the generation of jar containing streaming test classes, so that the tests
Expand Down
42 changes: 0 additions & 42 deletions util/src/test/java/net/kuujo/copycat/util/BitSetTest.java

This file was deleted.

40 changes: 0 additions & 40 deletions util/src/test/java/net/kuujo/copycat/util/BloomFilterTest.java

This file was deleted.

0 comments on commit 42fab4a

Please sign in to comment.