Uses of Class
org.apache.cassandra.locator.Replica
-
-
Uses of Replica in org.apache.cassandra.config
Methods in org.apache.cassandra.config that return types with arguments of type Replica Modifier and Type Method Description static java.util.Comparator<Replica>DatabaseDescriptor. getLocalComparator() -
Uses of Replica in org.apache.cassandra.db
Methods in org.apache.cassandra.db with parameters of type Replica Modifier and Type Method Description ReadCommandReadCommand. copyAsDigestQuery(Replica replica)Returns a copy of this command with isDigestQuery set to true.ReadCommandReadCommand. copyAsTransientQuery(Replica replica)Returns a copy of this command with acceptsTransient set to true.Method parameters in org.apache.cassandra.db with type arguments of type Replica Modifier and Type Method Description ReadCommandReadCommand. copyAsDigestQuery(java.lang.Iterable<Replica> replicas)Returns a copy of this command with isDigestQuery set to true.ReadCommandReadCommand. copyAsTransientQuery(java.lang.Iterable<Replica> replicas)Returns a copy of this command with acceptsTransient set to true. -
Uses of Replica in org.apache.cassandra.db.view
Methods in org.apache.cassandra.db.view that return types with arguments of type Replica Modifier and Type Method Description static java.util.Optional<Replica>ViewUtils. getViewNaturalEndpoint(AbstractReplicationStrategy replicationStrategy, Token baseToken, Token viewToken)Calculate the natural endpoint for the view. -
Uses of Replica in org.apache.cassandra.dht
Fields in org.apache.cassandra.dht declared as Replica Modifier and Type Field Description ReplicaRangeStreamer.FetchReplica. localReplicaRangeStreamer.FetchReplica. remoteFields in org.apache.cassandra.dht with type parameters of type Replica Modifier and Type Field Description static com.google.common.base.Predicate<Replica>RangeStreamer. ALIVE_PREDICATEMethods in org.apache.cassandra.dht with parameters of type Replica Modifier and Type Method Description booleanRangeStreamer.AllowedSourcesFilter. apply(Replica replica)booleanRangeStreamer.ExcludeLocalNodeFilter. apply(Replica replica)booleanRangeStreamer.FailureDetectorSourceFilter. apply(Replica replica)booleanRangeStreamer.SingleDatacenterFilter. apply(Replica replica)booleanRangeStreamer.SourceFilter. apply(Replica replica)java.lang.StringRangeStreamer.AllowedSourcesFilter. message(Replica replica)java.lang.StringRangeStreamer.ExcludeLocalNodeFilter. message(Replica replica)java.lang.StringRangeStreamer.FailureDetectorSourceFilter. message(Replica replica)java.lang.StringRangeStreamer.SingleDatacenterFilter. message(Replica replica)java.lang.StringRangeStreamer.SourceFilter. message(Replica replica)Constructors in org.apache.cassandra.dht with parameters of type Replica Constructor Description FetchReplica(Replica local, Replica remote) -
Uses of Replica in org.apache.cassandra.gms
Fields in org.apache.cassandra.gms with type parameters of type Replica Modifier and Type Field Description static java.util.function.Predicate<Replica>FailureDetector. isReplicaAlive -
Uses of Replica in org.apache.cassandra.locator
Methods in org.apache.cassandra.locator that return Replica Modifier and Type Method Description ReplicaReplica. decorateSubrange(Range<Token> subrange)ReplicaReplicaPlan.AbstractForRead. firstUncontactedCandidate(java.util.function.Predicate<Replica> extraPredicate)default ReplicaReplicaPlan.ForRead. firstUncontactedCandidate(java.util.function.Predicate<Replica> extraPredicate)static ReplicaReplica. fullReplica(InetAddressAndPort endpoint, Range<Token> range)static ReplicaReplica. fullReplica(InetAddressAndPort endpoint, Token start, Token end)ReplicaAbstractReplicaCollection. get(int i)ReplicaAbstractReplicaCollection.ReplicaList. get(int index)ReplicaAbstractReplicaCollection.ReplicaMap. get(java.lang.Object key)ReplicaReplicaCollection. get(int i)ReplicaAbstractReplicationStrategy. getLocalReplicaFor(Token searchPosition)static ReplicaSystemReplicas. getSystemReplica(InetAddressAndPort endpoint)There are a few places where a system function borrows write path functionality, but doesn't otherwise fit into normal replication strategies (ie: hints and batchlog).ReplicaEndpointsForToken. lookup(InetAddressAndPort endpoint)ReplicaReplicaPlan.AbstractForRead. lookup(InetAddressAndPort endpoint)ReplicaReplicaPlan.ForWrite. lookup(InetAddressAndPort endpoint)ReplicaReplicaPlan. lookup(InetAddressAndPort endpoint)ReplicaAbstractReplicaCollection.ReplicaMap. remove(java.lang.Object key)ReplicaEndpoints. selfIfPresent()static ReplicaReplica. transientReplica(InetAddressAndPort endpoint, Range<Token> range)static ReplicaReplica. transientReplica(InetAddressAndPort endpoint, Token start, Token end)Methods in org.apache.cassandra.locator that return types with arguments of type Replica Modifier and Type Method Description java.util.Map<InetAddressAndPort,Replica>Endpoints. byEndpoint()java.util.Map<Range<Token>,Replica>RangesAtEndpoint. byRange()static <C extends ReplicaCollection<C>,B extends ReplicaCollection.Builder<C>>
java.util.stream.Collector<Replica,B,C>AbstractReplicaCollection. collector(java.util.Set<java.util.stream.Collector.Characteristics> characteristics, java.util.function.Supplier<B> supplier)static java.util.stream.Collector<Replica,RangesAtEndpoint.Builder,RangesAtEndpoint>RangesAtEndpoint. collector(InetAddressAndPort endpoint)java.util.Set<java.util.Map.Entry<K,Replica>>AbstractReplicaCollection.ReplicaMap. entrySet()java.lang.Iterable<Replica>AbstractReplicaCollection. filterLazily(java.util.function.Predicate<? super Replica> predicate)java.lang.Iterable<Replica>AbstractReplicaCollection. filterLazily(java.util.function.Predicate<? super Replica> predicate, int limit)java.lang.Iterable<Replica>ReplicaCollection. filterLazily(java.util.function.Predicate<? super Replica> predicate)java.lang.Iterable<Replica>ReplicaCollection. filterLazily(java.util.function.Predicate<? super Replica> predicate, int maxSize)java.lang.Iterable<java.util.Map.Entry<K,Replica>>ReplicaMultimap. flattenEntries()java.lang.Iterable<Replica>ReplicaMultimap. flattenValues()java.util.Iterator<Replica>AbstractReplicaCollection. iterator()java.util.Iterator<Replica>AbstractReplicaCollection.ReplicaList. iterator()java.util.Iterator<Replica>ReplicaCollection. iterator()static java.util.function.Predicate<Replica>InOurDc. replicas()java.util.Spliterator<Replica>AbstractReplicaCollection.ReplicaList. spliterator()java.util.stream.Stream<Replica>AbstractReplicaCollection.ReplicaList. stream()java.util.stream.Stream<Replica>AbstractReplicaCollection. stream()java.util.stream.Stream<Replica>ReplicaCollection. stream()Methods in org.apache.cassandra.locator with parameters of type Replica Modifier and Type Method Description voidAbstractReplicaCollection.ReplicaList. add(Replica replica)EndpointsForRange.BuilderEndpointsForRange.Builder. add(Replica replica, ReplicaCollection.Builder.Conflict ignoreConflict)EndpointsForToken.BuilderEndpointsForToken.Builder. add(Replica replica, ReplicaCollection.Builder.Conflict ignoreConflict)RangesAtEndpoint.BuilderRangesAtEndpoint.Builder. add(Replica replica)RangesAtEndpoint.BuilderRangesAtEndpoint.Builder. add(Replica replica, ReplicaCollection.Builder.Conflict ignoreConflict)default ReplicaCollection.Builder<C>ReplicaCollection.Builder. add(Replica replica)ReplicaCollection.Builder<C>ReplicaCollection.Builder. add(Replica replica, ReplicaCollection.Builder.Conflict ignoreConflict)voidPendingRangeMaps. addPendingRange(Range<Token> range, Replica replica)voidReplicaPlan.Shared. addToContacts(Replica replica)add the provided replica to this shared plan, by updating the internal referencevoidReplicaPlan.SharedForRangeRead. addToContacts(Replica replica)voidReplicaPlan.SharedForTokenRead. addToContacts(Replica replica)static <E extends Endpoints<E>>
EEndpoints. append(E replicas, Replica extraReplica)abstract intAbstractEndpointSnitch. compareEndpoints(InetAddressAndPort target, Replica r1, Replica r2)intAbstractNetworkTopologySnitch. compareEndpoints(InetAddressAndPort address, Replica r1, Replica r2)intDynamicEndpointSnitch. compareEndpoints(InetAddressAndPort target, Replica a1, Replica a2)intIEndpointSnitch. compareEndpoints(InetAddressAndPort target, Replica r1, Replica r2)compares two endpoints in relation to the target endpoint, returning as Comparator.compare wouldintSimpleSnitch. compareEndpoints(InetAddressAndPort target, Replica r1, Replica r2)intReplica. compareTo(Replica o)booleanEndpoints. contains(Replica replica)booleanRangesAtEndpoint. contains(Replica replica)booleanReplicaCollection. contains(Replica replica)static ReplicaPlan.ForWriteReplicaPlans. forForwardingCounterWrite(Keyspace keyspace, Token token, Replica replica)A forwarding counter write is always sent to a single owning coordinator for the range, by the original coordinator (if it is not itself an owner)static ReplicaPlan.ForRangeReadReplicaPlans. forSingleReplicaRead(Keyspace keyspace, AbstractBounds<PartitionPosition> range, Replica replica, int vnodeCount)Construct a plan for reading from a single node - this permits no speculation or read-repairstatic ReplicaPlan.ForTokenReadReplicaPlans. forSingleReplicaRead(Keyspace keyspace, Token token, Replica replica)Construct a plan for reading from a single node - this permits no speculation or read-repairstatic ReplicaPlan.ForWriteReplicaPlans. forSingleReplicaWrite(Keyspace keyspace, Token token, Replica replica)Construct a ReplicaPlan for writing to exactly one node, with CL.ONE.EndpointsForRangeEndpointsByReplica. get(Replica range)default java.lang.StringIEndpointSnitch. getDatacenter(Replica replica)voidReplicas.ReplicaCount. increment(Replica replica)booleanReplica. intersectsOnRange(Replica replica)booleanReplicaPlan.ForWrite. isAlive(Replica replica)Test liveness, consistent with the upfront analysis done for this operation (i.e.static booleanInOurDc. isInOurDc(Replica replica)protected EndpointsForRange.BuilderEndpointsByReplica.Builder. newBuilder(Replica replica)static EndpointsForRangeEndpointsForRange. of(Replica replica)static EndpointsForRangeEndpointsForRange. of(Replica... replicas)static EndpointsForTokenEndpointsForToken. of(Token token, Replica replica)static EndpointsForTokenEndpointsForToken. of(Token token, Replica... replicas)static RangesAtEndpointRangesAtEndpoint. of(Replica replica)static RangesAtEndpointRangesAtEndpoint. of(Replica... replicas)voidReplicaMultimap.Builder. put(K key, Replica replica)voidEndpointsByReplica.Builder. putAll(Replica range, EndpointsForRange replicas, ReplicaCollection.Builder.Conflict ignoreConflicts)static voidReplicas. temporaryAssertFull(Replica replica)A placeholder for areas of the code that cannot yet handle transient replicas, but should do so in futureMethod parameters in org.apache.cassandra.locator with type arguments of type Replica Modifier and Type Method Description default ReplicaCollection.Builder<C>ReplicaCollection.Builder. addAll(java.lang.Iterable<Replica> replicas)default ReplicaCollection.Builder<C>ReplicaCollection.Builder. addAll(java.lang.Iterable<Replica> replicas, ReplicaCollection.Builder.Conflict ignoreConflicts)static voidReplicas. addToCountPerDc(com.carrotsearch.hppc.ObjectIntHashMap<java.lang.String> perDc, java.lang.Iterable<Replica> replicas, int add)increment each of the map's DC entries for each matching replica providedbooleanAbstractReplicaCollection. anyMatch(java.util.function.Predicate<? super Replica> test)booleanAbstractReplicaCollection.ReplicaList. anyMatch(java.util.function.Predicate<? super Replica> predicate)<T> java.util.List<T>AbstractReplicaCollection. asList(java.util.function.Function<Replica,T> view)static voidReplicas. assertFull(java.lang.Iterable<Replica> replicas)For areas of the code that should never see a transient replicastatic EndpointsForRangeEndpointsForRange. copyOf(java.util.Collection<Replica> replicas)static EndpointsForTokenEndpointsForToken. copyOf(Token token, java.lang.Iterable<Replica> replicas)static EndpointsForTokenEndpointsForToken. copyOf(Token token, java.util.Collection<Replica> replicas)static RangesAtEndpointRangesAtEndpoint. copyOf(java.util.List<Replica> replicas)intAbstractReplicaCollection. count(java.util.function.Predicate<? super Replica> test)intAbstractReplicaCollection.ReplicaList. count(java.util.function.Predicate<? super Replica> test)intReplicaCollection. count(java.util.function.Predicate<? super Replica> predicate)static com.carrotsearch.hppc.ObjectObjectHashMap<java.lang.String,Replicas.ReplicaCount>Replicas. countPerDc(java.util.Collection<java.lang.String> dataCenters, java.lang.Iterable<Replica> replicas)count the number of full and transient replicas, separately, for each DCCAbstractReplicaCollection. filter(java.util.function.Predicate<? super Replica> predicate)CAbstractReplicaCollection. filter(java.util.function.Predicate<? super Replica> predicate, int limit)CReplicaCollection. filter(java.util.function.Predicate<? super Replica> predicate)CReplicaCollection. filter(java.util.function.Predicate<? super Replica> predicate, int maxSize)ReplicaLayout.ForRangeReadReplicaLayout.ForRangeRead. filter(java.util.function.Predicate<Replica> filter)ReplicaLayout.ForTokenReadReplicaLayout.ForTokenRead. filter(java.util.function.Predicate<Replica> filter)ReplicaLayout.ForTokenWriteReplicaLayout.ForTokenWrite. filter(java.util.function.Predicate<Replica> filter)java.lang.Iterable<Replica>AbstractReplicaCollection. filterLazily(java.util.function.Predicate<? super Replica> predicate)java.lang.Iterable<Replica>AbstractReplicaCollection. filterLazily(java.util.function.Predicate<? super Replica> predicate, int limit)java.lang.Iterable<Replica>ReplicaCollection. filterLazily(java.util.function.Predicate<? super Replica> predicate)java.lang.Iterable<Replica>ReplicaCollection. filterLazily(java.util.function.Predicate<? super Replica> predicate, int maxSize)ReplicaReplicaPlan.AbstractForRead. firstUncontactedCandidate(java.util.function.Predicate<Replica> extraPredicate)default ReplicaReplicaPlan.ForRead. firstUncontactedCandidate(java.util.function.Predicate<Replica> extraPredicate)voidAbstractReplicaCollection. forEach(java.util.function.Consumer<? super Replica> forEach)voidAbstractReplicaCollection.ReplicaList. forEach(java.util.function.Consumer<? super Replica> forEach)protected <T> voidAbstractReplicaCollection.ReplicaList. forEach(java.util.function.Function<? super Replica,T> function, java.util.function.Consumer<? super T> action)static ReplicaPlan.ForWriteReplicaPlans. forWrite(Keyspace keyspace, ConsistencyLevel consistencyLevel, EndpointsForToken natural, EndpointsForToken pending, java.util.function.Predicate<Replica> isAlive, ReplicaPlans.Selector selector)voidTokenMetadata. setPendingRangesUnsafe(java.lang.String keyspaceName, com.google.common.collect.Multimap<Range<Token>,Replica> rangeMap)AbstractReplicaCollection.ReplicaListAbstractReplicaCollection.ReplicaList. sorted(java.util.Comparator<? super Replica> comparator)CAbstractReplicaCollection. sorted(java.util.Comparator<? super Replica> comparator)CReplicaCollection. sorted(java.util.Comparator<? super Replica> comparator)static voidReplicas. temporaryAssertFull(java.lang.Iterable<Replica> replicas)A placeholder for areas of the code that cannot yet handle transient replicas, but should do so in future<K> java.util.Iterator<K>AbstractReplicaCollection.ReplicaList. transformIterator(java.util.function.Function<? super Replica,? extends K> function)Constructors in org.apache.cassandra.locator with parameters of type Replica Constructor Description ReplicaList(Replica[] contents, int begin, int size)Constructor parameters in org.apache.cassandra.locator with type arguments of type Replica Constructor Description EndpointsByReplica(java.util.Map<Replica,EndpointsForRange> map)ReplicaMap(AbstractReplicaCollection.ReplicaList list, java.util.function.Function<Replica,K> toKey)ReplicaMap(AbstractReplicaCollection.ReplicaList list, java.util.function.Function<Replica,K> toKey, com.carrotsearch.hppc.ObjectIntHashMap<K> map) -
Uses of Replica in org.apache.cassandra.net
Methods in org.apache.cassandra.net with parameters of type Replica Modifier and Type Method Description voidRequestCallbacks. addWithExpiration(AbstractWriteResponseHandler<?> cb, Message<?> message, Replica to)voidMessagingService. sendWriteWithCallback(Message message, Replica to, AbstractWriteResponseHandler<?> handler)Send a mutation message or a Paxos Commit to a given endpoint. -
Uses of Replica in org.apache.cassandra.service
Methods in org.apache.cassandra.service with parameters of type Replica Modifier and Type Method Description static booleanStorageProxy. shouldHint(Replica replica)static booleanStorageProxy. shouldHint(Replica replica, boolean tryEnablePersistentWindow)Determines whether a hint should be stored or not.static voidStorageProxy. submitHint(Mutation mutation, Replica target, AbstractWriteResponseHandler<IMutation> responseHandler) -
Uses of Replica in org.apache.cassandra.service.reads
Methods in org.apache.cassandra.service.reads with parameters of type Replica Modifier and Type Method Description static UnfilteredPartitionIteratorShortReadProtection. extend(Replica source, java.lang.Runnable preFetchCallback, UnfilteredPartitionIterator partitions, ReadCommand command, DataLimits.Counter mergedResultCounter, Dispatcher.RequestTime requestTime, boolean enforceStrictLiveness)Method parameters in org.apache.cassandra.service.reads with type arguments of type Replica Modifier and Type Method Description protected voidAbstractReadExecutor. makeDigestRequests(java.lang.Iterable<Replica> replicas)protected voidAbstractReadExecutor. makeTransientDataRequests(java.lang.Iterable<Replica> replicas)Constructors in org.apache.cassandra.service.reads with parameters of type Replica Constructor Description ShortReadPartitionsProtection(ReadCommand command, Replica source, java.lang.Runnable preFetchCallback, DataLimits.Counter singleResultCounter, DataLimits.Counter mergedResultCounter, Dispatcher.RequestTime requestTime) -
Uses of Replica in org.apache.cassandra.service.reads.repair
Method parameters in org.apache.cassandra.service.reads.repair with type arguments of type Replica Modifier and Type Method Description voidBlockingReadRepair. repairPartition(DecoratedKey partitionKey, java.util.Map<Replica,Mutation> mutations, ReplicaPlan.ForWrite writePlan)voidNoopReadRepair. repairPartition(DecoratedKey partitionKey, java.util.Map<Replica,Mutation> mutations, ReplicaPlan.ForWrite writePlan)voidReadOnlyReadRepair. repairPartition(DecoratedKey partitionKey, java.util.Map<Replica,Mutation> mutations, ReplicaPlan.ForWrite writePlan)voidReadRepair. repairPartition(DecoratedKey partitionKey, java.util.Map<Replica,Mutation> mutations, ReplicaPlan.ForWrite writePlan)Repairs a partition _after_ receiving data responses.Constructor parameters in org.apache.cassandra.service.reads.repair with type arguments of type Replica Constructor Description BlockingPartitionRepair(DecoratedKey key, java.util.Map<Replica,Mutation> repairs, ReplicaPlan.ForWrite writePlan)
-