Uses of Class
org.apache.cassandra.locator.RangesAtEndpoint
Packages that use RangesAtEndpoint
Package
Description
File transfer
-
Uses of RangesAtEndpoint in org.apache.cassandra.db.compaction
Methods in org.apache.cassandra.db.compaction with parameters of type RangesAtEndpointModifier and TypeMethodDescriptionvoidCompactionManager.performAnticompaction(ColumnFamilyStore cfs, RangesAtEndpoint replicas, Refs<SSTableReader> validatedForRepair, LifecycleTransaction txn, TimeUUID sessionID, BooleanSupplier isCancelled) Make sure the {validatedForRepair} are marked for compaction before calling this.CompactionManager.submitPendingAntiCompaction(ColumnFamilyStore cfs, RangesAtEndpoint tokenRanges, Refs<SSTableReader> sstables, LifecycleTransaction txn, TimeUUID sessionId, BooleanSupplier isCancelled) Splits the given token ranges of the given sstables into a pending repair silo -
Uses of RangesAtEndpoint in org.apache.cassandra.db.repair
Methods in org.apache.cassandra.db.repair with parameters of type RangesAtEndpointModifier and TypeMethodDescriptionprotected org.apache.cassandra.db.repair.PendingAntiCompaction.AcquisitionCallbackPendingAntiCompaction.getAcquisitionCallback(TimeUUID prsId, RangesAtEndpoint tokenRanges) CassandraKeyspaceRepairManager.prepareIncrementalRepair(TimeUUID sessionID, Collection<ColumnFamilyStore> tables, RangesAtEndpoint tokenRanges, ExecutorService executor, BooleanSupplier isCancelled) Constructors in org.apache.cassandra.db.repair with parameters of type RangesAtEndpointModifierConstructorDescriptionPendingAntiCompaction(TimeUUID prsId, Collection<ColumnFamilyStore> tables, RangesAtEndpoint tokenRanges, ExecutorService executor, BooleanSupplier isCancelled) -
Uses of RangesAtEndpoint in org.apache.cassandra.db.streaming
Methods in org.apache.cassandra.db.streaming with parameters of type RangesAtEndpointModifier and TypeMethodDescriptionCassandraStreamManager.createOutgoingStreams(StreamSession session, RangesAtEndpoint replicas, TimeUUID pendingRepair, PreviewKind previewKind) -
Uses of RangesAtEndpoint in org.apache.cassandra.locator
Subclasses of RangesAtEndpoint in org.apache.cassandra.locatorMethods in org.apache.cassandra.locator that return RangesAtEndpointModifier and TypeMethodDescriptionRangesAtEndpoint.Builder.build()static RangesAtEndpointRangesAtEndpoint.concat(RangesAtEndpoint replicas, RangesAtEndpoint extraReplicas) static RangesAtEndpointstatic RangesAtEndpointRangesAtEndpoint.empty(InetAddressAndPort endpoint) RangesByEndpoint.get(InetAddressAndPort endpoint) AbstractReplicationStrategy.getAddressReplicas(InetAddressAndPort endpoint) AbstractReplicationStrategy.getAddressReplicas(TokenMetadata metadata, InetAddressAndPort endpoint) AbstractReplicationStrategy.getPendingAddressRanges(TokenMetadata metadata, Collection<Token> pendingTokens, InetAddressAndPort pendingAddress) AbstractReplicationStrategy.getPendingAddressRanges(TokenMetadata metadata, Token pendingToken, InetAddressAndPort pendingAddress) TokenMetadata.getPendingRanges(String keyspaceName, InetAddressAndPort endpoint) static RangesAtEndpointstatic RangesAtEndpointRangesAtEndpoint.onlyFull()RangesAtEndpoint.onlyTransient()RangesAtEndpoint.Builder.snapshot()RangesAtEndpoint.snapshot()protected RangesAtEndpointRangesAtEndpoint.snapshot(AbstractReplicaCollection.ReplicaList newList) Replica.subtractIgnoreTransientStatus(Range<Token> subtract) Don't use this method and ignore transient status unless you are explicitly handling it outside this method.Replica.subtractSameReplication(RangesAtEndpoint toSubtract) This is used exclusively in TokenMetadata to check if a portion of a range is already replicated by an endpoint so that we only mark as pending the portion that is either not replicated sufficiently (transient when we need full) or at all.static RangesAtEndpointRangesAtEndpoint.toDummyList(Collection<Range<Token>> ranges) Use of this method to synthesize Replicas is almost always wrong.RangesAtEndpoint.unwrap()Methods in org.apache.cassandra.locator that return types with arguments of type RangesAtEndpointModifier and TypeMethodDescriptionRangesAtEndpoint.collector(InetAddressAndPort endpoint) RangesAtEndpoint.newBuilder(int initialCapacity) Methods in org.apache.cassandra.locator with parameters of type RangesAtEndpointModifier and TypeMethodDescriptionstatic RangesAtEndpointRangesAtEndpoint.concat(RangesAtEndpoint replicas, RangesAtEndpoint extraReplicas) static booleanRangesAtEndpoint.isDummyList(RangesAtEndpoint ranges) Replica.subtractSameReplication(RangesAtEndpoint toSubtract) This is used exclusively in TokenMetadata to check if a portion of a range is already replicated by an endpoint so that we only mark as pending the portion that is either not replicated sufficiently (transient when we need full) or at all.Constructor parameters in org.apache.cassandra.locator with type arguments of type RangesAtEndpoint -
Uses of RangesAtEndpoint in org.apache.cassandra.repair
Methods in org.apache.cassandra.repair with parameters of type RangesAtEndpointModifier and TypeMethodDescriptionKeyspaceRepairManager.prepareIncrementalRepair(TimeUUID sessionID, Collection<ColumnFamilyStore> tables, RangesAtEndpoint tokenRanges, ExecutorService executor, BooleanSupplier isCancelled) Isolate the unrepaired ranges of the given tables, and make referenceable by session id. -
Uses of RangesAtEndpoint in org.apache.cassandra.service
Methods in org.apache.cassandra.service that return RangesAtEndpointModifier and TypeMethodDescriptionStorageService.getLocalReplicas(String keyspaceName) StorageService.getReplicas(String keyspaceName, InetAddressAndPort endpoint) StorageService.getReplicas(AbstractReplicationStrategy replicationStrategy, InetAddressAndPort endpoint) Methods in org.apache.cassandra.service that return types with arguments of type RangesAtEndpointModifier and TypeMethodDescriptionstatic Pair<RangesAtEndpoint,RangesAtEndpoint> RangeRelocator.calculateStreamAndFetchRanges(RangesAtEndpoint currentRanges, RangesAtEndpoint updatedRanges) Calculate pair of ranges to stream/fetch for given two range collections (current ranges for keyspace and ranges after move to new token) With transient replication the added wrinkle is that if a range transitions from full to transient then we need to stream the range despite the fact that we are retaining it as transient.static Pair<RangesAtEndpoint,RangesAtEndpoint> RangeRelocator.calculateStreamAndFetchRanges(RangesAtEndpoint currentRanges, RangesAtEndpoint updatedRanges) Calculate pair of ranges to stream/fetch for given two range collections (current ranges for keyspace and ranges after move to new token) With transient replication the added wrinkle is that if a range transitions from full to transient then we need to stream the range despite the fact that we are retaining it as transient.Methods in org.apache.cassandra.service with parameters of type RangesAtEndpointModifier and TypeMethodDescriptionstatic RangesByEndpointRangeRelocator.calculateRangesToStreamWithEndpoints(RangesAtEndpoint streamRanges, AbstractReplicationStrategy strat, TokenMetadata tmdBefore, TokenMetadata tmdAfter) calculating endpoints to stream current ranges to if needed in some situations node will handle current ranges as part of the new rangesstatic Pair<RangesAtEndpoint,RangesAtEndpoint> RangeRelocator.calculateStreamAndFetchRanges(RangesAtEndpoint currentRanges, RangesAtEndpoint updatedRanges) Calculate pair of ranges to stream/fetch for given two range collections (current ranges for keyspace and ranges after move to new token) With transient replication the added wrinkle is that if a range transitions from full to transient then we need to stream the range despite the fact that we are retaining it as transient. -
Uses of RangesAtEndpoint in org.apache.cassandra.streaming
Fields in org.apache.cassandra.streaming declared as RangesAtEndpointModifier and TypeFieldDescriptionfinal RangesAtEndpointStreamRequest.fullfinal RangesAtEndpointStreamRequest.transientReplicasMethods in org.apache.cassandra.streaming with parameters of type RangesAtEndpointModifier and TypeMethodDescriptionvoidStreamSession.addStreamRequest(String keyspace, RangesAtEndpoint fullRanges, RangesAtEndpoint transientRanges, Collection<String> columnFamilies) Request data fetch task to this session.TableStreamManager.createOutgoingStreams(StreamSession session, RangesAtEndpoint replicas, TimeUUID pendingRepair, PreviewKind previewKind) Returns a collection ofOutgoingStreams that contains the data selected by the given replicas, pendingRepair, and preview.StreamSession.getOutgoingStreamsForRanges(RangesAtEndpoint replicas, Collection<ColumnFamilyStore> stores, TimeUUID pendingRepair, PreviewKind previewKind) StreamPlan.requestRanges(InetAddressAndPort from, String keyspace, RangesAtEndpoint fullRanges, RangesAtEndpoint transientRanges) Request data inkeyspaceandrangesfrom specific node.StreamPlan.requestRanges(InetAddressAndPort from, String keyspace, RangesAtEndpoint fullRanges, RangesAtEndpoint transientRanges, String... columnFamilies) Request data incolumnFamiliesunderkeyspaceandrangesfrom specific node.StreamPlan.transferRanges(InetAddressAndPort to, String keyspace, RangesAtEndpoint replicas, String... columnFamilies) Add transfer task to send data of specificcolumnFamiliesunderkeyspaceandranges.Constructors in org.apache.cassandra.streaming with parameters of type RangesAtEndpointModifierConstructorDescriptionStreamRequest(String keyspace, RangesAtEndpoint full, RangesAtEndpoint transientReplicas, Collection<String> columnFamilies)