mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Remove unused type parameter in ReplicatedMapEntryStages class
This commit is contained in:
@@ -115,8 +115,8 @@ public class ReplicatedChronicleMap<K, KI, MKI extends MetaBytesInterop<K, ? sup
|
||||
public long cleanupTimeout;
|
||||
|
||||
public transient MapRemoteOperations<K, V, R> remoteOperations;
|
||||
transient CompiledReplicatedMapQueryContext<K, KI, MKI, V, VI, MVI, R, ?> remoteOpContext;
|
||||
transient CompiledReplicatedMapIterationContext<K, KI, MKI, V, VI, MVI, R, ?> remoteItContext;
|
||||
transient CompiledReplicatedMapQueryContext<K, KI, MKI, V, VI, MVI, R> remoteOpContext;
|
||||
transient CompiledReplicatedMapIterationContext<K, KI, MKI, V, VI, MVI, R> remoteItContext;
|
||||
|
||||
transient BitSetFrame mainSegmentsModIterFrameForUpdates;
|
||||
transient BitSetFrame mainSegmentsModIterFrameForIteration;
|
||||
@@ -143,9 +143,9 @@ public class ReplicatedChronicleMap<K, KI, MKI extends MetaBytesInterop<K, ? sup
|
||||
@Override
|
||||
void initQueryContext() {
|
||||
queryCxt = new ThreadLocal<
|
||||
CompiledReplicatedMapQueryContext<K, KI, MKI, V, VI, MVI, R, ?>>() {
|
||||
CompiledReplicatedMapQueryContext<K, KI, MKI, V, VI, MVI, R>>() {
|
||||
@Override
|
||||
protected CompiledReplicatedMapQueryContext<K, KI, MKI, V, VI, MVI, R, ?>
|
||||
protected CompiledReplicatedMapQueryContext<K, KI, MKI, V, VI, MVI, R>
|
||||
initialValue() {
|
||||
return new CompiledReplicatedMapQueryContext<>(ReplicatedChronicleMap.this);
|
||||
}
|
||||
@@ -155,9 +155,9 @@ public class ReplicatedChronicleMap<K, KI, MKI extends MetaBytesInterop<K, ? sup
|
||||
@Override
|
||||
void initIterationContext() {
|
||||
iterCxt = new ThreadLocal<
|
||||
CompiledReplicatedMapIterationContext<K, KI, MKI, V, VI, MVI, R, ?>>() {
|
||||
CompiledReplicatedMapIterationContext<K, KI, MKI, V, VI, MVI, R>>() {
|
||||
@Override
|
||||
protected CompiledReplicatedMapIterationContext<K, KI, MKI, V, VI, MVI, R, ?>
|
||||
protected CompiledReplicatedMapIterationContext<K, KI, MKI, V, VI, MVI, R>
|
||||
initialValue() {
|
||||
return new CompiledReplicatedMapIterationContext<>(ReplicatedChronicleMap.this);
|
||||
}
|
||||
@@ -472,14 +472,14 @@ public class ReplicatedChronicleMap<K, KI, MKI extends MetaBytesInterop<K, ? sup
|
||||
}
|
||||
}
|
||||
|
||||
private CompiledReplicatedMapQueryContext<K, KI, MKI, V, VI, MVI, R, ?> q() {
|
||||
private CompiledReplicatedMapQueryContext<K, KI, MKI, V, VI, MVI, R> q() {
|
||||
//noinspection unchecked
|
||||
return (CompiledReplicatedMapQueryContext<K, KI, MKI, V, VI, MVI, R, ?>) queryCxt.get();
|
||||
return (CompiledReplicatedMapQueryContext<K, KI, MKI, V, VI, MVI, R>) queryCxt.get();
|
||||
}
|
||||
|
||||
@Override
|
||||
public CompiledReplicatedMapQueryContext<K, KI, MKI, V, VI, MVI, R, ?> mapContext() {
|
||||
CompiledReplicatedMapQueryContext<K, KI, MKI, V, VI, MVI, R, ?> q = q().getContext();
|
||||
public CompiledReplicatedMapQueryContext<K, KI, MKI, V, VI, MVI, R> mapContext() {
|
||||
CompiledReplicatedMapQueryContext<K, KI, MKI, V, VI, MVI, R> q = q().getContext();
|
||||
q.initUsed(true);
|
||||
return q;
|
||||
}
|
||||
@@ -488,7 +488,7 @@ public class ReplicatedChronicleMap<K, KI, MKI extends MetaBytesInterop<K, ? sup
|
||||
* Assumed to be called from a single thread - the replication thread. Not to waste time
|
||||
* for going into replication thread's threadLocal map, cache the context in Map's field
|
||||
*/
|
||||
private CompiledReplicatedMapQueryContext<K, KI, MKI, V, VI, MVI, R, ?> remoteOpContext() {
|
||||
private CompiledReplicatedMapQueryContext<K, KI, MKI, V, VI, MVI, R> remoteOpContext() {
|
||||
if (remoteOpContext == null) {
|
||||
remoteOpContext = q();
|
||||
}
|
||||
@@ -497,7 +497,7 @@ public class ReplicatedChronicleMap<K, KI, MKI extends MetaBytesInterop<K, ? sup
|
||||
return remoteOpContext;
|
||||
}
|
||||
|
||||
private CompiledReplicatedMapIterationContext<K, KI, MKI, V, VI, MVI, R, ?> remoteItContext() {
|
||||
private CompiledReplicatedMapIterationContext<K, KI, MKI, V, VI, MVI, R> remoteItContext() {
|
||||
if (remoteItContext == null) {
|
||||
remoteItContext = i();
|
||||
}
|
||||
@@ -512,20 +512,20 @@ public class ReplicatedChronicleMap<K, KI, MKI extends MetaBytesInterop<K, ? sup
|
||||
*/
|
||||
@Override
|
||||
public void readExternalEntry(@NotNull Bytes source) {
|
||||
try (CompiledReplicatedMapQueryContext<K, KI, MKI, V, VI, MVI, R, ?> remoteOpContext =
|
||||
try (CompiledReplicatedMapQueryContext<K, KI, MKI, V, VI, MVI, R> remoteOpContext =
|
||||
mapContext()) {
|
||||
remoteOpContext.initReplicationInput(source);
|
||||
remoteOpContext.processReplicatedEvent();
|
||||
}
|
||||
}
|
||||
|
||||
private CompiledReplicatedMapIterationContext<K, KI, MKI, V, VI, MVI, R, ?> i() {
|
||||
private CompiledReplicatedMapIterationContext<K, KI, MKI, V, VI, MVI, R> i() {
|
||||
//noinspection unchecked
|
||||
return (CompiledReplicatedMapIterationContext<K, KI, MKI, V, VI, MVI, R, ?>) iterCxt.get();
|
||||
return (CompiledReplicatedMapIterationContext<K, KI, MKI, V, VI, MVI, R>) iterCxt.get();
|
||||
}
|
||||
|
||||
public CompiledReplicatedMapIterationContext<K, KI, MKI, V, VI, MVI, R, ?> iterationContext() {
|
||||
CompiledReplicatedMapIterationContext<K, KI, MKI, V, VI, MVI, R, ?> c = i().getContext();
|
||||
public CompiledReplicatedMapIterationContext<K, KI, MKI, V, VI, MVI, R> iterationContext() {
|
||||
CompiledReplicatedMapIterationContext<K, KI, MKI, V, VI, MVI, R> c = i().getContext();
|
||||
c.initUsed(true);
|
||||
return c;
|
||||
}
|
||||
@@ -742,7 +742,7 @@ public class ReplicatedChronicleMap<K, KI, MKI extends MetaBytesInterop<K, ? sup
|
||||
this.position = position;
|
||||
int tierIndexMinusOne = (int) (position >>> segmentIndexShift);
|
||||
|
||||
try (CompiledReplicatedMapIterationContext<K, KI, MKI, V, VI, MVI, R, ?> context =
|
||||
try (CompiledReplicatedMapIterationContext<K, KI, MKI, V, VI, MVI, R> context =
|
||||
iterationContext()) {
|
||||
if (iterationMainSegmentsAreaOrTierBulk < 0) {
|
||||
// if main area
|
||||
@@ -827,7 +827,7 @@ public class ReplicatedChronicleMap<K, KI, MKI extends MetaBytesInterop<K, ? sup
|
||||
|
||||
@Override
|
||||
public void dirtyEntries(long fromTimeStamp) {
|
||||
try (CompiledReplicatedMapIterationContext<K, KI, MKI, V, VI, MVI, R, ?> c =
|
||||
try (CompiledReplicatedMapIterationContext<K, KI, MKI, V, VI, MVI, R> c =
|
||||
iterationContext()) {
|
||||
// iterate over all the segments and mark bit in the modification iterator
|
||||
// that correspond to entries with an older timestamp
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
import static net.openhft.chronicle.map.ReplicatedChronicleMap.ADDITIONAL_ENTRY_BYTES;
|
||||
|
||||
@Staged
|
||||
public abstract class ReplicatedMapEntryStages<K, V, T> extends MapEntryStages<K, V>
|
||||
public abstract class ReplicatedMapEntryStages<K, V> extends MapEntryStages<K, V>
|
||||
implements MapReplicableEntry<K, V>, MapAbsentEntry<K, V> {
|
||||
|
||||
@StageRef ReplicatedChronicleMapHolder<?, ?, ?, ?, ?, ?, ?> mh;
|
||||
|
||||
@@ -48,7 +48,7 @@ public abstract class ReplicatedInput<K, V, R>
|
||||
@StageRef KeySearch<?> ks;
|
||||
@StageRef ReplicatedMapQuery<K, V, ?> q;
|
||||
@StageRef SegmentStages s;
|
||||
@StageRef ReplicatedMapEntryStages<K, V, ?> e;
|
||||
@StageRef ReplicatedMapEntryStages<K, V> e;
|
||||
@StageRef DummyValueZeroData<V> dummyValue;
|
||||
|
||||
@Override
|
||||
|
||||
+1
-1
@@ -31,7 +31,7 @@ public class ReplicatedMapAbsentDelegatingForIteration<K, V>
|
||||
implements MapAbsentEntry<K, V>, ReplicableEntryDelegating {
|
||||
|
||||
@StageRef ReplicatedMapSegmentIteration<K, V, ?> delegate;
|
||||
@StageRef ReplicatedMapEntryStages<K, V, ?> e;
|
||||
@StageRef ReplicatedMapEntryStages<K, V> e;
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
|
||||
+1
-1
@@ -31,7 +31,7 @@ public class ReplicatedMapEntryDelegating<K, V>
|
||||
implements MapEntry<K, V>, ReplicableEntryDelegating {
|
||||
|
||||
@StageRef ReplicatedMapSegmentIteration<K, V, ?> delegate;
|
||||
@StageRef ReplicatedMapEntryStages<K, V, ?> e;
|
||||
@StageRef ReplicatedMapEntryStages<K, V> e;
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
|
||||
+1
-1
@@ -39,7 +39,7 @@ public abstract class ReplicatedMapSegmentIteration<K, V, R> extends MapSegmentI
|
||||
ReplicatedHashSegmentContext<K, MapEntry<K, V>>, MapAbsentEntry<K, V> {
|
||||
|
||||
@StageRef VanillaChronicleHashHolder<?, ?, ?> hh;
|
||||
@StageRef ReplicatedMapEntryStages<K, V, ?> e;
|
||||
@StageRef ReplicatedMapEntryStages<K, V> e;
|
||||
@StageRef ReplicationUpdate<K> ru;
|
||||
@StageRef DummyValueZeroData<V> dummyValue;
|
||||
@StageRef ReplicatedMapAbsentDelegatingForIteration<K, V> absentEntryDelegating;
|
||||
|
||||
@@ -29,7 +29,7 @@ import static net.openhft.chronicle.hash.impl.stage.query.KeySearch.SearchState.
|
||||
public abstract class ReplicatedMapAbsent<K, V> extends MapAbsent<K, V> {
|
||||
|
||||
@StageRef MapQuery<K, V, ?> q;
|
||||
@StageRef ReplicatedMapEntryStages<K, V, ?> e;
|
||||
@StageRef ReplicatedMapEntryStages<K, V> e;
|
||||
@StageRef ReplicationUpdate<K> ru;
|
||||
|
||||
@Override
|
||||
|
||||
@@ -29,13 +29,11 @@ import net.openhft.sg.StageRef;
|
||||
import net.openhft.sg.Staged;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import static net.openhft.chronicle.hash.impl.stage.query.KeySearch.SearchState.DELETED;
|
||||
|
||||
@Staged
|
||||
public abstract class ReplicatedMapQuery<K, V, R> extends MapQuery<K, V, R>
|
||||
implements MapRemoteQueryContext<K, V, R>, ReplicableEntry {
|
||||
|
||||
@StageRef ReplicatedMapEntryStages<K, V, ?> e;
|
||||
@StageRef ReplicatedMapEntryStages<K, V> e;
|
||||
@StageRef ReplicationUpdate ru;
|
||||
|
||||
@StageRef BytesReturnValue<V> bytesReturnValue;
|
||||
|
||||
+1
-1
@@ -28,7 +28,7 @@ import net.openhft.sg.Staged;
|
||||
@Staged
|
||||
public abstract class ReplicationUpdate<K> implements RemoteOperationContext<K> {
|
||||
@StageRef SegmentStages s;
|
||||
@StageRef ReplicatedMapEntryStages<K, ?, ?> e;
|
||||
@StageRef ReplicatedMapEntryStages<K, ?> e;
|
||||
@StageRef ReplicatedChronicleMapHolder<?, ?, ?, ?, ?, ?, ?> mh;
|
||||
@StageRef CheckOnEachPublicOperation checkOnEachPublicOperation;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user