Fixed several replication bugs; Value -> Data; extracted ReplicableEntry as a superclass of HashReplicableEntry

This commit is contained in:
leventov
2015-06-15 21:34:45 +03:00
parent f1da352a5d
commit bf20bc98c3
55 changed files with 6708 additions and 6379 deletions
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -1,6 +1,6 @@
package net.openhft.chronicle.map.impl;
import net.openhft.chronicle.hash.Value;
import net.openhft.chronicle.hash.Data;
import net.openhft.chronicle.map.impl.ret.InstanceReturnValue;
import org.jetbrains.annotations.NotNull;
@@ -19,7 +19,7 @@ public final class NullReturnValue implements InstanceReturnValue {
}
@Override
public void returnValue(@NotNull Value value) {
public void returnValue(@NotNull Data value) {
// ignore
}
}
@@ -1,24 +1,24 @@
package net.openhft.chronicle.map.impl;
import net.openhft.chronicle.hash.Value;
import net.openhft.chronicle.hash.impl.value.instance.KeyInitableValue;
import net.openhft.chronicle.hash.Data;
import net.openhft.chronicle.hash.impl.value.instance.KeyInitableData;
import net.openhft.chronicle.map.ExternalMapQueryContext;
import net.openhft.chronicle.map.MapKeyContext;
import net.openhft.chronicle.map.impl.ret.InstanceReturnValue;
import net.openhft.chronicle.map.impl.ret.UsableReturnValue;
import net.openhft.chronicle.map.impl.value.instance.ValueInitableValue;
import net.openhft.chronicle.map.impl.value.instance.ValueInitableData;
public interface QueryContextInterface<K, V, R> extends ExternalMapQueryContext<K, V, R> {
void initInputKey(Value<K, ?> inputKey);
void initInputKey(Data<K, ?> inputKey);
KeyInitableValue<K, ?> inputKeyInstanceValue();
KeyInitableData<K, ?> inputKeyInstanceValue();
InstanceReturnValue<V> defaultReturnValue();
UsableReturnValue<V> usingReturnValue();
ValueInitableValue<V, ?> inputValueInstanceValue();
ValueInitableData<V, ?> inputValueInstanceValue();
MapKeyContext<K, V> deprecatedMapKeyContext();
@@ -28,7 +28,5 @@ public interface QueryContextInterface<K, V, R> extends ExternalMapQueryContext<
boolean theSegmentIndexInit();
void initEntry(long pos);
void clear();
}
@@ -0,0 +1,8 @@
package net.openhft.chronicle.map.impl.value.instance;
import net.openhft.chronicle.hash.Data;
public interface ValueInitableData<V, T> extends Data<V, T> {
void initValue(V value);
}
@@ -1,8 +0,0 @@
package net.openhft.chronicle.map.impl.value.instance;
import net.openhft.chronicle.hash.Value;
public interface ValueInitableValue<V, T> extends Value<V, T> {
void initValue(V value);
}