Moved to CityHash (proven to be faster); Made Hashing and BytesInterop API more cohrent; removed Void marshalling because values should never be null

This commit is contained in:
leventov
2015-01-26 13:21:27 +07:00
parent 935c2422dd
commit 68697831b8
51 changed files with 1623 additions and 550 deletions
@@ -19,6 +19,7 @@
package net.openhft.chronicle.map;
import net.openhft.chronicle.hash.replication.TcpTransportAndNetworkConfig;
import net.openhft.chronicle.hash.serialization.internal.DummyValue;
import java.io.File;
import java.io.IOException;
@@ -58,11 +59,11 @@ public class Builder {
return file;
}
public static <T extends ChronicleMap<Integer, Void>> T newMapVoid(
public static <T extends ChronicleMap<Integer, DummyValue>> T newMapDummyValue(
final byte identifier,
final int serverPort,
final InetSocketAddress... endpoints) throws IOException {
return (T) newTcpSocketShmBuilder(Integer.class, Void.class,
return (T) newTcpSocketShmBuilder(Integer.class, DummyValue.class,
identifier, serverPort, endpoints).create();
}