Uses of Class
org.apache.cassandra.locator.Replica
Packages that use Replica
Package
Description
-
Uses of Replica in org.apache.cassandra.config
Methods in org.apache.cassandra.config that return types with arguments of type ReplicaModifier and TypeMethodDescriptionstatic Comparator<Replica>DatabaseDescriptor.getLocalComparator() -
Uses of Replica in org.apache.cassandra.db
Methods in org.apache.cassandra.db with parameters of type ReplicaModifier and TypeMethodDescriptionReadCommand.copyAsDigestQuery(Replica replica) Returns a copy of this command with isDigestQuery set to true.ReadCommand.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 ReplicaModifier and TypeMethodDescriptionReadCommand.copyAsDigestQuery(Iterable<Replica> replicas) Returns a copy of this command with isDigestQuery set to true.ReadCommand.copyAsTransientQuery(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 ReplicaModifier and TypeMethodDescriptionViewUtils.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 ReplicaModifier and TypeFieldDescriptionfinal ReplicaRangeStreamer.FetchReplica.localfinal ReplicaRangeStreamer.FetchReplica.remoteFields in org.apache.cassandra.dht with type parameters of type ReplicaModifier and TypeFieldDescriptionstatic com.google.common.base.Predicate<Replica>RangeStreamer.ALIVE_PREDICATEMethods in org.apache.cassandra.dht with parameters of type ReplicaModifier and TypeMethodDescriptionbooleanbooleanbooleanbooleanbooleanbooleanConstructors in org.apache.cassandra.dht with parameters of type Replica -
Uses of Replica in org.apache.cassandra.gms
Fields in org.apache.cassandra.gms with type parameters of type Replica -
Uses of Replica in org.apache.cassandra.locator
Methods in org.apache.cassandra.locator that return ReplicaModifier and TypeMethodDescriptionReplica.decorateSubrange(Range<Token> subrange) ReplicaPlan.AbstractForRead.firstUncontactedCandidate(Predicate<Replica> extraPredicate) default ReplicaReplicaPlan.ForRead.firstUncontactedCandidate(Predicate<Replica> extraPredicate) static ReplicaReplica.fullReplica(InetAddressAndPort endpoint, Range<Token> range) static ReplicaReplica.fullReplica(InetAddressAndPort endpoint, Token start, Token end) final ReplicaAbstractReplicaCollection.get(int i) AbstractReplicaCollection.ReplicaList.get(int index) ReplicaCollection.get(int i) AbstractReplicationStrategy.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).EndpointsForToken.lookup(InetAddressAndPort endpoint) ReplicaPlan.AbstractForRead.lookup(InetAddressAndPort endpoint) ReplicaPlan.ForWrite.lookup(InetAddressAndPort endpoint) ReplicaPlan.lookup(InetAddressAndPort endpoint) Endpoints.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 ReplicaModifier and TypeMethodDescriptionEndpoints.byEndpoint()RangesAtEndpoint.byRange()static <C extends ReplicaCollection<C>,B extends ReplicaCollection.Builder<C>>
Collector<Replica,B, C> AbstractReplicaCollection.collector(Set<Collector.Characteristics> characteristics, Supplier<B> supplier) RangesAtEndpoint.collector(InetAddressAndPort endpoint) AbstractReplicaCollection.ReplicaMap.entrySet()AbstractReplicaCollection.filterLazily(Predicate<? super Replica> predicate) AbstractReplicaCollection.filterLazily(Predicate<? super Replica> predicate, int limit) ReplicaCollection.filterLazily(Predicate<? super Replica> predicate) ReplicaCollection.filterLazily(Predicate<? super Replica> predicate, int maxSize) ReplicaMultimap.flattenEntries()ReplicaMultimap.flattenValues()AbstractReplicaCollection.iterator()AbstractReplicaCollection.ReplicaList.iterator()ReplicaCollection.iterator()InOurDc.replicas()AbstractReplicaCollection.ReplicaList.spliterator()AbstractReplicaCollection.ReplicaList.stream()AbstractReplicaCollection.stream()ReplicaCollection.stream()Methods in org.apache.cassandra.locator with parameters of type ReplicaModifier and TypeMethodDescriptionvoidEndpointsForRange.Builder.add(Replica replica, ReplicaCollection.Builder.Conflict ignoreConflict) EndpointsForToken.Builder.add(Replica replica, ReplicaCollection.Builder.Conflict ignoreConflict) RangesAtEndpoint.Builder.add(Replica replica, ReplicaCollection.Builder.Conflict ignoreConflict) default 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>>
Eabstract 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) intbooleanbooleanbooleanstatic 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.default StringIEndpointSnitch.getDatacenter(Replica replica) voidbooleanReplica.intersectsOnRange(Replica replica) booleanTest liveness, consistent with the upfront analysis done for this operation (i.e.static booleanprotected EndpointsForRange.BuilderEndpointsByReplica.Builder.newBuilder(Replica replica) static EndpointsForRangestatic EndpointsForRangestatic EndpointsForTokenstatic EndpointsForTokenstatic RangesAtEndpointstatic RangesAtEndpointvoidvoidEndpointsByReplica.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 ReplicaModifier and TypeMethodDescriptiondefault ReplicaCollection.Builder<C>default ReplicaCollection.Builder<C>ReplicaCollection.Builder.addAll(Iterable<Replica> replicas, ReplicaCollection.Builder.Conflict ignoreConflicts) static voidReplicas.addToCountPerDc(com.carrotsearch.hppc.ObjectIntHashMap<String> perDc, Iterable<Replica> replicas, int add) increment each of the map's DC entries for each matching replica providedfinal booleanfinal booleanfinal <T> List<T>static voidReplicas.assertFull(Iterable<Replica> replicas) For areas of the code that should never see a transient replicastatic EndpointsForRangeEndpointsForRange.copyOf(Collection<Replica> replicas) static EndpointsForTokenstatic EndpointsForTokenEndpointsForToken.copyOf(Token token, Collection<Replica> replicas) static RangesAtEndpointfinal intintintstatic com.carrotsearch.hppc.ObjectObjectHashMap<String,Replicas.ReplicaCount> Replicas.countPerDc(Collection<String> dataCenters, Iterable<Replica> replicas) count the number of full and transient replicas, separately, for each DCfinal Cfinal CAbstractReplicaCollection.filterLazily(Predicate<? super Replica> predicate) AbstractReplicaCollection.filterLazily(Predicate<? super Replica> predicate, int limit) ReplicaCollection.filterLazily(Predicate<? super Replica> predicate) ReplicaCollection.filterLazily(Predicate<? super Replica> predicate, int maxSize) ReplicaPlan.AbstractForRead.firstUncontactedCandidate(Predicate<Replica> extraPredicate) default ReplicaReplicaPlan.ForRead.firstUncontactedCandidate(Predicate<Replica> extraPredicate) final voidvoidprotected <T> voidAbstractReplicaCollection.ReplicaList.forEach(Function<? super Replica, T> function, Consumer<? super T> action) static ReplicaPlan.ForWriteReplicaPlans.forWrite(Keyspace keyspace, ConsistencyLevel consistencyLevel, EndpointsForToken natural, EndpointsForToken pending, Predicate<Replica> isAlive, ReplicaPlans.Selector selector) voidTokenMetadata.setPendingRangesUnsafe(String keyspaceName, com.google.common.collect.Multimap<Range<Token>, Replica> rangeMap) AbstractReplicaCollection.ReplicaList.sorted(Comparator<? super Replica> comparator) final CAbstractReplicaCollection.sorted(Comparator<? super Replica> comparator) ReplicaCollection.sorted(Comparator<? super Replica> comparator) static voidReplicas.temporaryAssertFull(Iterable<Replica> replicas) A placeholder for areas of the code that cannot yet handle transient replicas, but should do so in future<K> Iterator<K>AbstractReplicaCollection.ReplicaList.transformIterator(Function<? super Replica, ? extends K> function) Constructors in org.apache.cassandra.locator with parameters of type ReplicaConstructor parameters in org.apache.cassandra.locator with type arguments of type ReplicaModifierConstructorDescriptionReplicaMap(AbstractReplicaCollection.ReplicaList list, Function<Replica, K> toKey) ReplicaMap(AbstractReplicaCollection.ReplicaList list, 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 ReplicaModifier and TypeMethodDescriptionvoidRequestCallbacks.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 ReplicaModifier and TypeMethodDescriptionstatic 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 ReplicaModifier and TypeMethodDescriptionstatic UnfilteredPartitionIteratorShortReadProtection.extend(Replica source, 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 ReplicaModifier and TypeMethodDescriptionprotected voidAbstractReadExecutor.makeDigestRequests(Iterable<Replica> replicas) protected voidAbstractReadExecutor.makeTransientDataRequests(Iterable<Replica> replicas) Constructors in org.apache.cassandra.service.reads with parameters of type ReplicaModifierConstructorDescriptionShortReadPartitionsProtection(ReadCommand command, Replica source, 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 ReplicaModifier and TypeMethodDescriptionvoidBlockingReadRepair.repairPartition(DecoratedKey partitionKey, Map<Replica, Mutation> mutations, ReplicaPlan.ForWrite writePlan) voidNoopReadRepair.repairPartition(DecoratedKey partitionKey, Map<Replica, Mutation> mutations, ReplicaPlan.ForWrite writePlan) voidReadOnlyReadRepair.repairPartition(DecoratedKey partitionKey, Map<Replica, Mutation> mutations, ReplicaPlan.ForWrite writePlan) voidReadRepair.repairPartition(DecoratedKey partitionKey, 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 ReplicaModifierConstructorDescriptionBlockingPartitionRepair(DecoratedKey key, Map<Replica, Mutation> repairs, ReplicaPlan.ForWrite writePlan)