mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Fixed several replication bugs; Value -> Data; extracted ReplicableEntry as a superclass of HashReplicableEntry
This commit is contained in:
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
+1332
-1199
File diff suppressed because it is too large
Load Diff
+2257
-2152
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);
|
||||
}
|
||||
Reference in New Issue
Block a user