Uses of Class
org.apache.cassandra.dht.Token
Packages that use Token
Package
Description
-
Uses of Token in org.apache.cassandra.db
Fields in org.apache.cassandra.db with type parameters of type TokenModifier and TypeFieldDescriptionSystemKeyspace.AvailableRanges.fullSystemKeyspace.AvailableRanges.transMethods in org.apache.cassandra.db that return TokenMethods in org.apache.cassandra.db that return types with arguments of type TokenModifier and TypeMethodDescriptionstatic Collection<Token>SystemKeyspace.getSavedTokens()static Map<InetAddressAndPort,Set<Range<Token>>> SystemKeyspace.getTransferredRanges(String description, String keyspace, IPartitioner partitioner) SystemKeyspace.getViewBuildStatus(String ksname, String viewName) SystemKeyspace.getViewBuildStatus(String ksname, String viewName) static com.google.common.collect.SetMultimap<InetAddressAndPort,Token> SystemKeyspace.loadTokens()Return a map of stored tokens to IP addressesSystemKeyspace.rawRangesToRangeSet(Set<ByteBuffer> rawRanges, IPartitioner partitioner) Methods in org.apache.cassandra.db with parameters of type TokenModifier and TypeMethodDescriptionstatic voidSystemKeyspace.updateViewBuildStatus(String ksname, String viewName, Range<Token> range, Token lastToken, long keysBuilt) Method parameters in org.apache.cassandra.db with type arguments of type TokenModifier and TypeMethodDescriptionlongColumnFamilyStore.estimatedKeysForRange(Range<Token> range) voidColumnFamilyStore.forceCompactionForTokenRange(Collection<Range<Token>> tokenRanges) voidColumnFamilyStoreMBean.forceCompactionForTokenRange(Collection<Range<Token>> tokenRanges) Deprecated.See CASSANDRA-17527static DataRangeDataRange.forTokenRange(Range<Token> tokenRange) Creates aDataRangeto query all rows over the provided token range.ColumnFamilyStore.getPaxosRepairHistoryForRanges(Collection<Range<Token>> ranges) intColumnFamilyStore.invalidateCounterCache(Collection<Bounds<Token>> boundsToInvalidate) intColumnFamilyStore.invalidateRowCache(Collection<Bounds<Token>> boundsToInvalidate) ColumnFamilyStore.keySamples(Range<Token> range) voidColumnFamilyStore.onPaxosRepairComplete(Collection<Range<Token>> ranges, Ballot highBallot) static ByteBufferSystemKeyspace.rangeToBytes(Range<Token> range) static voidSystemKeyspace.updateAvailableRanges(String keyspace, Collection<Range<Token>> completedFullRanges, Collection<Range<Token>> completedTransientRanges) static voidSystemKeyspace.updateSizeEstimates(String keyspace, String table, Map<Range<Token>, Pair<Long, Long>> estimates) Writes the current partition count and size estimates into SIZE_ESTIMATES_CFstatic voidSystemKeyspace.updateTableEstimates(String keyspace, String table, String type, Map<Range<Token>, Pair<Long, Long>> estimates) Writes the current partition count and size estimates into table_estimatesstatic voidSystemKeyspace.updateTokens(Collection<Token> tokens) This method is used to update the System Keyspace with the new tokens for this nodestatic voidSystemKeyspace.updateTokens(InetAddressAndPort ep, Collection<Token> tokens) Record tokens being used by another nodestatic voidSystemKeyspace.updateTransferredRanges(StreamOperation streamOperation, InetAddressAndPort peer, String keyspace, Collection<Range<Token>> streamedRanges) static voidSystemKeyspace.updateViewBuildStatus(String ksname, String viewName, Range<Token> range, Token lastToken, long keysBuilt) Constructors in org.apache.cassandra.db with parameters of type TokenModifierConstructorDescriptionBufferDecoratedKey(Token token, ByteBuffer key) CachedHashDecoratedKey(Token token, ByteBuffer key) DecoratedKey(Token token) NativeDecoratedKey(Token token, NativeAllocator allocator, OpOrder.Group writeOp, byte[] keyBytes) NativeDecoratedKey(Token token, NativeAllocator allocator, OpOrder.Group writeOp, ByteBuffer key) PreHashedDecoratedKey(Token token, ByteBuffer key, long hash0, long hash1) -
Uses of Token in org.apache.cassandra.db.compaction
Methods in org.apache.cassandra.db.compaction that return TokenModifier and TypeMethodDescriptionShardManagerDiskAware.BoundaryTrackerDiskAware.shardEnd()ShardManagerNoDisks.BoundaryTracker.shardEnd()ShardTracker.shardEnd()ShardManagerDiskAware.BoundaryTrackerDiskAware.shardStart()ShardManagerNoDisks.BoundaryTracker.shardStart()ShardTracker.shardStart()Methods in org.apache.cassandra.db.compaction that return types with arguments of type TokenModifier and TypeMethodDescriptionShardManager.coveringRange(PartitionPosition first, PartitionPosition last) ShardManager.coveringRange(SSTableReader sstable) ShardManagerDiskAware.BoundaryTrackerDiskAware.shardSpan()ShardManagerNoDisks.BoundaryTracker.shardSpan()ShardTracker.shardSpan()Methods in org.apache.cassandra.db.compaction with parameters of type TokenModifier and TypeMethodDescriptionbooleanAdvance to the given token (e.g.booleanbooleanAdvance to the given token (e.g.Method parameters in org.apache.cassandra.db.compaction with type arguments of type TokenModifier and TypeMethodDescriptionvoidCompactionManager.forceCompactionForTokenRange(ColumnFamilyStore cfStore, Collection<Range<Token>> ranges) Forces a major compaction of specified token ranges of the specified column family.doubleShardManagerDiskAware.BoundaryTrackerDiskAware.fractionInShard(Range<Token> targetSpan) Returns the fraction of the given token range's coverage that falls within this shard.doubleShardManagerNoDisks.BoundaryTracker.fractionInShard(Range<Token> targetSpan) doubleShardTracker.fractionInShard(Range<Token> targetSpan) Returns the fraction of the given token range's coverage that falls within this shard.AbstractCompactionStrategy.getScanners(Collection<SSTableReader> sstables, Range<Token> range) abstract List<ISSTableScanner>AbstractStrategyHolder.getScanners(AbstractStrategyHolder.GroupedSSTableContainer sstables, Collection<Range<Token>> ranges) CompactionStrategyHolder.getScanners(AbstractStrategyHolder.GroupedSSTableContainer sstables, Collection<Range<Token>> ranges) PendingRepairHolder.getScanners(AbstractStrategyHolder.GroupedSSTableContainer sstables, Collection<Range<Token>> ranges) static booleanCompactionManager.needsCleanup(SSTableReader sstable, Collection<Range<Token>> ownedRanges) Determines if a cleanup would actually remove any data in this SSTable based on a set of owned ranges.doubleShardManager.rangeSpanned(Range<Token> tableRange) The token range fraction spanned by the given range, adjusted for the local range ownership.doubleShardManagerNoDisks.rangeSpanned(Range<Token> tableRange) doubleShardManagerTrivial.rangeSpanned(Range<Token> tableRange) Constructor parameters in org.apache.cassandra.db.compaction with type arguments of type TokenModifierConstructorDescriptionShardManagerDiskAware(ColumnFamilyStore.VersionedLocalRanges localRanges, List<Token> diskBoundaries) -
Uses of Token in org.apache.cassandra.db.memtable
Methods in org.apache.cassandra.db.memtable with parameters of type TokenModifier and TypeMethodDescriptionintShardBoundaries.getShardForToken(Token tk) Computes the shard to use for the provided token.Constructors in org.apache.cassandra.db.memtable with parameters of type TokenConstructor parameters in org.apache.cassandra.db.memtable with type arguments of type Token -
Uses of Token in org.apache.cassandra.db.repair
Methods in org.apache.cassandra.db.repair that return types with arguments of type TokenMethod parameters in org.apache.cassandra.db.repair with type arguments of type TokenModifier and TypeMethodDescriptionPendingAntiCompaction.getAcquisitionCallable(ColumnFamilyStore cfs, Set<Range<Token>> ranges, TimeUUID prsId, int acquireRetrySeconds, int acquireSleepMillis) static Refs<SSTableReader>CassandraValidationIterator.getSSTablesToValidate(ColumnFamilyStore cfs, SharedContext ctx, Collection<Range<Token>> ranges, TimeUUID parentId, boolean isIncremental) CassandraTableRepairManager.getValidationIterator(Collection<Range<Token>> ranges, TimeUUID parentId, TimeUUID sessionID, boolean isIncremental, long nowInSec, TopPartitionTracker.Collector topPartitionCollector) voidCassandraTableRepairManager.snapshot(String name, Collection<Range<Token>> ranges, boolean force) Constructor parameters in org.apache.cassandra.db.repair with type arguments of type TokenModifierConstructorDescriptionAcquisitionCallable(ColumnFamilyStore cfs, Collection<Range<Token>> ranges, TimeUUID sessionID, int acquireRetrySeconds, int acquireSleepMillis) CassandraValidationIterator(ColumnFamilyStore cfs, SharedContext ctx, Collection<Range<Token>> ranges, TimeUUID parentId, TimeUUID sessionID, boolean isIncremental, long nowInSec, TopPartitionTracker.Collector topPartitionCollector) -
Uses of Token in org.apache.cassandra.db.view
Methods in org.apache.cassandra.db.view with parameters of type TokenModifier and TypeMethodDescriptionViewUtils.getViewNaturalEndpoint(AbstractReplicationStrategy replicationStrategy, Token baseToken, Token viewToken) Calculate the natural endpoint for the view.Constructors in org.apache.cassandra.db.view with parameters of type TokenModifierConstructorDescriptionViewBuilderTask(ColumnFamilyStore baseCfs, View view, Range<Token> range, Token lastToken, long keysBuilt) Constructor parameters in org.apache.cassandra.db.view with type arguments of type TokenModifierConstructorDescriptionViewBuilderTask(ColumnFamilyStore baseCfs, View view, Range<Token> range, Token lastToken, long keysBuilt) -
Uses of Token in org.apache.cassandra.dht
Subclasses of Token in org.apache.cassandra.dhtModifier and TypeClassDescriptionstatic classclassstatic classstatic classstatic classFields in org.apache.cassandra.dht with type parameters of type TokenModifier and TypeFieldDescriptionprotected final Collection<Token>BootStrapper.tokensstatic final IPartitionerDependentSerializer<AbstractBounds<Token>>AbstractBounds.tokenSerializerMethods in org.apache.cassandra.dht that return TokenModifier and TypeMethodDescriptionToken.TokenSerializer.deserialize(DataInput in, IPartitioner p, int version) abstract TokenToken.TokenFactory.fromByteArray(ByteBuffer bytes) Token.TokenFactory.fromByteBuffer(ByteBuffer bytes, int position, int length) abstract TokenToken.TokenFactory.fromComparableBytes(ByteSource.Peekable comparableBytes, ByteComparable.Version version) Translates the given byte-comparable representation to a token instance.abstract TokenToken.TokenFactory.fromString(String string) default TokenIPartitioner.getMaximumToken()The biggest token for this partitioner, unlike getMinimumToken, this token is actually used and users wanting to include all tokens need to do getMaximumToken().maxKeyBound() Not implemented for the ordered partitionersMurmur3Partitioner.getMaximumToken()RandomPartitioner.getMaximumToken()IPartitioner.getMinimumToken()IPartitioner.getRandomToken()IPartitioner.getRandomToken(Random random) IPartitioner.getToken(ByteBuffer key) RingPosition.getToken()Token.getToken()Token.KeyBound.getToken()Splitter.WeightedRange.left()Calculate a Token representing the approximate "middle" of the given range.Token.minValue()ByteOrderedPartitioner.BytesToken.nextValidToken()RandomPartitioner.BigIntegerToken.nextValidToken()abstract TokenToken.nextValidToken()Returns the next possible token in the token space, one that compares greater than this and such that there is no other token that sits between this token and it in the token order.Splitter.WeightedRange.right()Calculate a Token which takeapproximate 0 <= ratioToLeft <= 1ownership of the given range.protected abstract TokenSplitter.tokenForValue(BigInteger value) Methods in org.apache.cassandra.dht that return types with arguments of type TokenModifier and TypeMethodDescriptionByteOrderedPartitioner.describeOwnership(List<Token> sortedTokens) IPartitioner.describeOwnership(List<Token> sortedTokens) Calculate the deltas between tokens in the ring in order to compare relative sizes.LocalPartitioner.describeOwnership(List<Token> sortedTokens) Murmur3Partitioner.describeOwnership(List<Token> sortedTokens) OrderPreservingPartitioner.describeOwnership(List<Token> sortedTokens) RandomPartitioner.describeOwnership(List<Token> sortedTokens) static Collection<Token>BootStrapper.getBootstrapTokens(TokenMetadata metadata, InetAddressAndPort address, long schemaTimeoutMillis, long ringTimeoutMillis) if initialtoken was specified, use that (split on comma).static Collection<Token>BootStrapper.getRandomTokens(TokenMetadata metadata, int numTokens) com.google.common.collect.Multimap<InetAddressAndPort,Range<Token>> RangeFetchMapCalculator.getRangeFetchMap()Splitter.WeightedRange.range()Splitter.split(Collection<Range<Token>> ranges, int parts) Splits the specified token ranges in at leastpartssubranges.Splitter.splitOwnedRanges(int parts, List<Splitter.WeightedRange> weightedRanges, boolean dontSplitRanges) Methods in org.apache.cassandra.dht with parameters of type TokenModifier and TypeMethodDescriptionToken.TokenFactory.asComparableBytes(Token token, ByteComparable.Version version) Produce a byte-comparable representation of the token.intintintintprotected BigIntegerSplitter.elapsedTokens(Token token, Range<Token> range) Computes the number of elapsed tokens from the range start until this tokenbooleanStreamStateStore.isDataAvailable(String keyspace, Token token) Check if given token's data is available in this node.static Bounds<PartitionPosition>Bounds.makeRowBounds(Token left, Token right) Compute a bounds of keys corresponding to a given bounds of token.static Range<PartitionPosition>Range.makeRowRange(Token left, Token right) Compute a range of keys corresponding to a given range of token.Calculate a Token representing the approximate "middle" of the given range.doubleSplitter.positionInRange(Token token, Range<Token> range) Computes the normalized position of this token relative to this rangevoidToken.TokenFactory.serialize(Token token, ByteBuffer out) voidToken.TokenFactory.serialize(Token token, DataOutputPlus out) voidToken.TokenSerializer.serialize(Token token, DataOutputPlus out, int version) longToken.TokenSerializer.serializedSize(Token object, int version) doubledoubledoubleabstract doubleReturns a measure for the token space covered between this token and next.Calculate a Token which takeapproximate 0 <= ratioToLeft <= 1ownership of the given range.booleanReturns true if the ranges given in the constructor contains the token, false otherwise.abstract ByteBufferToken.TokenFactory.toByteArray(Token token) abstract Stringprotected abstract BigIntegerSplitter.valueForToken(Token token) Method parameters in org.apache.cassandra.dht with type arguments of type TokenModifier and TypeMethodDescriptionByteOrderedPartitioner.describeOwnership(List<Token> sortedTokens) IPartitioner.describeOwnership(List<Token> sortedTokens) Calculate the deltas between tokens in the ring in order to compare relative sizes.LocalPartitioner.describeOwnership(List<Token> sortedTokens) Murmur3Partitioner.describeOwnership(List<Token> sortedTokens) OrderPreservingPartitioner.describeOwnership(List<Token> sortedTokens) RandomPartitioner.describeOwnership(List<Token> sortedTokens) protected BigIntegerSplitter.elapsedTokens(Token token, Range<Token> range) Computes the number of elapsed tokens from the range start until this tokenstatic booleanstatic Range<PartitionPosition>Range.makeRowRange(Range<Token> tokenBounds) doubleSplitter.positionInRange(Token token, Range<Token> range) Computes the normalized position of this token relative to this rangeSplitter.split(Collection<Range<Token>> ranges, int parts) Splits the specified token ranges in at leastpartssubranges.protected BigIntegerSplitter.tokensInRange(Range<Token> range) booleanOwnedRanges.validateRangeRequest(Collection<Range<Token>> requestedRanges, String requestId, String requestType, InetAddressAndPort from) Check that all ranges in a requested set are contained by those in the owned set.Constructor parameters in org.apache.cassandra.dht with type arguments of type TokenModifierConstructorDescriptionBootStrapper(InetAddressAndPort address, Collection<Token> tokens, TokenMetadata tmd) OrderedRangeContainmentChecker(Collection<Range<Token>> ranges) OwnedRanges(Collection<Range<Token>> ownedRanges) RangeStreamer(TokenMetadata metadata, Collection<Token> tokens, InetAddressAndPort address, StreamOperation streamOperation, boolean useStrictConsistency, IEndpointSnitch snitch, StreamStateStore stateStore, boolean connectSequentially, int connectionsPerHost) WeightedRange(double weight, Range<Token> range) -
Uses of Token in org.apache.cassandra.dht.tokenallocator
Methods in org.apache.cassandra.dht.tokenallocator that return types with arguments of type TokenModifier and TypeMethodDescriptionstatic Collection<Token>TokenAllocation.allocateTokens(TokenMetadata tokenMetadata, int replicas, InetAddressAndPort endpoint, int numTokens) static Collection<Token>TokenAllocation.allocateTokens(TokenMetadata tokenMetadata, AbstractReplicationStrategy rs, InetAddressAndPort endpoint, int numTokens) OfflineTokenAllocator.FakeNode.tokens()Method parameters in org.apache.cassandra.dht.tokenallocator with type arguments of type TokenModifier and TypeMethodDescriptionstatic TokenAllocator<InetAddressAndPort>TokenAllocatorFactory.createTokenAllocator(NavigableMap<Token, InetAddressAndPort> sortedTokens, org.apache.cassandra.dht.tokenallocator.ReplicationStrategy<InetAddressAndPort> strategy, IPartitioner partitioner) Constructor parameters in org.apache.cassandra.dht.tokenallocator with type arguments of type TokenModifierConstructorDescriptionFakeNode(InetAddressAndPort address, Integer rackId, Collection<Token> tokens) NoReplicationTokenAllocator(NavigableMap<Token, Unit> sortedTokens, org.apache.cassandra.dht.tokenallocator.ReplicationStrategy<Unit> strategy, IPartitioner partitioner) protectedTokenAllocatorBase(NavigableMap<Token, Unit> sortedTokens, org.apache.cassandra.dht.tokenallocator.ReplicationStrategy<Unit> strategy, IPartitioner partitioner) -
Uses of Token in org.apache.cassandra.gms
Methods in org.apache.cassandra.gms that return types with arguments of type TokenModifier and TypeMethodDescriptionstatic Collection<Token>TokenSerializer.deserialize(IPartitioner partitioner, DataInput in) Methods in org.apache.cassandra.gms with parameters of type TokenModifier and TypeMethodDescriptionMethod parameters in org.apache.cassandra.gms with type arguments of type TokenModifier and TypeMethodDescriptionVersionedValue.VersionedValueFactory.bootstrapping(Collection<Token> tokens) VersionedValue.VersionedValueFactory.leaving(Collection<Token> tokens) VersionedValue.VersionedValueFactory.left(Collection<Token> tokens, long expireTime) VersionedValue.VersionedValueFactory.left(Collection<Token> tokens, long expireTime, int generation) VersionedValue.VersionedValueFactory.normal(Collection<Token> tokens) static voidTokenSerializer.serialize(IPartitioner partitioner, Collection<Token> tokens, DataOutput out) VersionedValue.VersionedValueFactory.tokens(Collection<Token> tokens) -
Uses of Token in org.apache.cassandra.index.sai.disk
Methods in org.apache.cassandra.index.sai.disk with parameters of type TokenModifier and TypeMethodDescriptionlonglong -
Uses of Token in org.apache.cassandra.index.sai.disk.v1
Methods in org.apache.cassandra.index.sai.disk.v1 with parameters of type Token -
Uses of Token in org.apache.cassandra.index.sai.disk.v1.segment
Constructors in org.apache.cassandra.index.sai.disk.v1.segment with parameters of type Token -
Uses of Token in org.apache.cassandra.index.sai.utils
Methods in org.apache.cassandra.index.sai.utils that return TokenModifier and TypeMethodDescriptionPrimaryKey.token()Returns theTokencomponent of thePrimaryKeyMethods in org.apache.cassandra.index.sai.utils with parameters of type Token -
Uses of Token in org.apache.cassandra.io.sstable
Fields in org.apache.cassandra.io.sstable with type parameters of type TokenModifier and TypeFieldDescriptionfinal Function<String,? extends Collection<Range<Token>>> IVerifier.Options.tokenLookupMethods in org.apache.cassandra.io.sstable that return types with arguments of type TokenModifier and TypeMethodDescriptionabstract AbstractBounds<Token>SSTable.getBounds()SSTableZeroCopyWriter.getBounds()SSTableLoader.Client.getEndpointToRangesMap()Method parameters in org.apache.cassandra.io.sstable with type arguments of type TokenModifier and TypeMethodDescriptionprotected voidSSTableLoader.Client.addRangeForEndpoint(Range<Token> range, InetAddressAndPort endpoint) IVerifier.Options.Builder.tokenLookup(Function<String, ? extends Collection<Range<Token>>> tokenLookup) -
Uses of Token in org.apache.cassandra.io.sstable.format
Fields in org.apache.cassandra.io.sstable.format with type parameters of type TokenModifier and TypeFieldDescriptionfinal AbstractBounds<Token>SSTableReader.boundsprotected final Function<String,? extends Collection<Range<Token>>> SortedTableVerifier.tokenLookupGiven a keyspace, return the set of local and pending token ranges.Methods in org.apache.cassandra.io.sstable.format that return types with arguments of type TokenMethod parameters in org.apache.cassandra.io.sstable.format with type arguments of type TokenModifier and TypeMethodDescriptionabstract longSSTableReader.estimatedKeysForRanges(Collection<Range<Token>> ranges) Calculates an estimate of the number of keys for the given ranges in the sstable represented by this reader.abstract Iterable<DecoratedKey>SSTableReader.getKeySamples(Range<Token> range) Returns sample keys for the provided token range.SSTableReader.getPositionsForRanges(Collection<Range<Token>> ranges) Determine the minimal set of sections that can be extracted from this SSTable to cover the given ranges.SSTableReader.getScanner(Collection<Range<Token>> ranges) Direct I/O SSTableScanner over a defined collection of ranges of tokens.SSTableReader.getScanner(Range<Token> range) Direct I/O SSTableScanner over a defined range of tokens.booleanSSTableReader.intersects(Collection<Range<Token>> ranges) Constructor parameters in org.apache.cassandra.io.sstable.format with type arguments of type Token -
Uses of Token in org.apache.cassandra.io.sstable.format.big
Method parameters in org.apache.cassandra.io.sstable.format.big with type arguments of type TokenModifier and TypeMethodDescriptionlongBigTableReader.estimatedKeysForRanges(Collection<Range<Token>> ranges) BigTableReader.getKeySamples(Range<Token> range) -
Uses of Token in org.apache.cassandra.io.sstable.format.bti
Method parameters in org.apache.cassandra.io.sstable.format.bti with type arguments of type TokenModifier and TypeMethodDescriptionlongBtiTableReader.estimatedKeysForRanges(Collection<Range<Token>> ranges) BtiTableReader.getKeySamples(Range<Token> range) -
Uses of Token in org.apache.cassandra.io.sstable.indexsummary
Method parameters in org.apache.cassandra.io.sstable.indexsummary with type arguments of type TokenModifier and TypeMethodDescriptionIterable<byte[]>IndexSummary.getKeySamples(Range<Token> range) IndexSummary.getSampleIndexesForRanges(Collection<Range<Token>> ranges) -
Uses of Token in org.apache.cassandra.locator
Fields in org.apache.cassandra.locator with type parameters of type TokenMethods in org.apache.cassandra.locator that return TokenModifier and TypeMethodDescriptionstatic TokenTokenMetadata.firstToken(ArrayList<Token> ring, Token start) TokenMetadata.getPredecessor(Token token) TokenMetadata.getSuccessor(Token token) EndpointsForToken.token()ReplicaLayout.ForToken.token()ReplicaLayout.ForTokenRead.token()ReplicaLayout.ForTokenWrite.token()Methods in org.apache.cassandra.locator that return types with arguments of type TokenModifier and TypeMethodDescriptionRangesAtEndpoint.byRange()TokenMetadata.getBootstrapTokens()com.google.common.collect.Multimap<InetAddressAndPort,Token> TokenMetadata.getEndpointToTokenMapForReading()TokenMetadata.getMovingEndpoints()Endpoints which are migrating to the new tokensTokenMetadata.getNormalAndBootstrappingTokenToEndpointMap()TokenMetadata.getPrimaryRangesFor(Collection<Token> tokens) TokenMetadata.getTokens(InetAddressAndPort endpoint) PendingRangeMaps.iterator()EndpointsForRange.range()Replica.range()RangesAtEndpoint.ranges()TokenMetadata.ringIterator(ArrayList<Token> ring, Token start, boolean includeMin) iterator over the Tokens in the given ring, starting with the token for the node owning start (which does not have to be a Token in the ring)TokenMetadata.sortedTokens()Methods in org.apache.cassandra.locator with parameters of type TokenModifier and TypeMethodDescriptionvoidTokenMetadata.addMovingEndpoint(Token token, InetAddressAndPort endpoint) Add a new moving endpointstatic EndpointsForToken.Builderstatic EndpointsForToken.Builderabstract EndpointsForRangeAbstractReplicationStrategy.calculateNaturalReplicas(Token searchToken, TokenMetadata tokenMetadata) Calculate the natural endpoints for the given token.LocalStrategy.calculateNaturalReplicas(Token token, TokenMetadata metadata) NetworkTopologyStrategy.calculateNaturalReplicas(Token searchToken, TokenMetadata tokenMetadata) calculate endpoints in one pass through the tokens by tracking our progress in each DC.SimpleStrategy.calculateNaturalReplicas(Token token, TokenMetadata metadata) static EndpointsForTokenstatic EndpointsForTokenEndpointsForToken.copyOf(Token token, Collection<Replica> replicas) static EndpointsForTokenstatic TokenTokenMetadata.firstToken(ArrayList<Token> ring, Token start) static intTokenMetadata.firstTokenIndex(ArrayList<Token> ring, Token start, boolean insertMin) 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.ForTokenReadReplicaPlans.forRead(Keyspace keyspace, Token token, Index.QueryPlan indexQueryPlan, ConsistencyLevel consistencyLevel, SpeculativeRetryPolicy retry) Construct a plan for reading the provided token at the provided consistency level.static ReplicaPlan.ForWriteReplicaPlans.forReadRepair(Token token, ReplicaPlan<?, ?> readPlan) static 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.static ReplicaLayout.ForTokenReadReplicaLayout.forTokenReadLiveSorted(AbstractReplicationStrategy replicationStrategy, Token token) static ReplicaLayout.ForTokenWriteReplicaLayout.forTokenWriteLiveAndDown(Keyspace keyspace, Token token) Gets the 'natural' and 'pending' replicas that own a given token, with no filtering or processing.static ReplicaPlan.ForWriteReplicaPlans.forWrite(Keyspace keyspace, ConsistencyLevel consistencyLevel, Token token, ReplicaPlans.Selector selector) static ReplicaReplica.fullReplica(InetAddressAndPort endpoint, Token start, Token end) AbstractReplicationStrategy.getCachedReplicas(long ringVersion, Token t) TokenMetadata.getEndpoint(Token token) AbstractReplicationStrategy.getLocalReplicaFor(Token searchPosition) AbstractReplicationStrategy.getPendingAddressRanges(TokenMetadata metadata, Token pendingToken, InetAddressAndPort pendingAddress) TokenMetadata.getPredecessor(Token token) TokenMetadata.getSuccessor(Token token) TokenMetadata.getWriteEndpoints(Token token, String keyspaceName, EndpointsForToken natural) Deprecated.retained for benefit of old testsbooleanAbstractReplicationStrategy.isTokenInLocalNaturalOrPendingRange(Token token) Check if the token is in a naturally replicated range or pending rangebooleanPendingRangeMaps.isTokenInLocalPendingRange(Token token) booleanTokenMetadata.isTokenInLocalPendingRange(String keyspaceName, Token token) static EndpointsForTokenstatic EndpointsForTokenEndpointsForToken.natural(AbstractReplicationStrategy replicationStrategy, Token token) static EndpointsForTokenEndpointsForToken.natural(TableMetadata table, Token token) static EndpointsForTokenstatic EndpointsForTokenstatic EndpointsForTokenstatic EndpointsForTokenstatic EndpointsForTokenEndpointsForToken.pending(TableMetadata table, Token token) PendingRangeMaps.pendingEndpointsFor(Token token) TokenMetadata.pendingEndpointsForToken(Token token, String keyspaceName) TokenMetadata.ringIterator(ArrayList<Token> ring, Token start, boolean includeMin) iterator over the Tokens in the given ring, starting with the token for the node owning start (which does not have to be a Token in the ring)static ReplicaReplica.transientReplica(InetAddressAndPort endpoint, Token start, Token end) voidTokenMetadata.updateNormalToken(Token token, InetAddressAndPort endpoint) Update token map with a single token/endpoint pair in normal state.Method parameters in org.apache.cassandra.locator with type arguments of type TokenModifier and TypeMethodDescriptionvoidTokenMetadata.addBootstrapTokens(Collection<Token> tokens, InetAddressAndPort endpoint) voidPendingRangeMaps.addPendingRange(Range<Token> range, Replica replica) voidTokenMetadata.addReplaceTokens(Collection<Token> replacingTokens, InetAddressAndPort newNode, InetAddressAndPort oldNode) static EndpointsForRange.Builderstatic EndpointsForRange.BuilderbooleanbooleanReplica.decorateSubrange(Range<Token> subrange) static EndpointsForRangestatic TokenTokenMetadata.firstToken(ArrayList<Token> ring, Token start) static intTokenMetadata.firstTokenIndex(ArrayList<Token> ring, Token start, boolean insertMin) static ReplicaReplica.fullReplica(InetAddressAndPort endpoint, Range<Token> range) AbstractReplicationStrategy.getPendingAddressRanges(TokenMetadata metadata, Collection<Token> pendingTokens, InetAddressAndPort pendingAddress) TokenMetadata.getPrimaryRangesFor(Collection<Token> tokens) protected EndpointsForRange.BuilderEndpointsByRange.Builder.newBuilder(Range<Token> range) voidEndpointsByRange.Builder.putAll(Range<Token> range, EndpointsForRange replicas, ReplicaCollection.Builder.Conflict ignoreConflicts) voidTokenMetadata.removeBootstrapTokens(Collection<Token> tokens) TokenMetadata.ringIterator(ArrayList<Token> ring, Token start, boolean includeMin) iterator over the Tokens in the given ring, starting with the token for the node owning start (which does not have to be a Token in the ring)voidTokenMetadata.setPendingRangesUnsafe(String keyspaceName, com.google.common.collect.Multimap<Range<Token>, Replica> rangeMap) Replica.subtractIgnoreTransientStatus(Range<Token> subtract) Don't use this method and ignore transient status unless you are explicitly handling it outside this method.static RangesAtEndpointRangesAtEndpoint.toDummyList(Collection<Range<Token>> ranges) Use of this method to synthesize Replicas is almost always wrong.static ReplicaReplica.transientReplica(InetAddressAndPort endpoint, Range<Token> range) voidTokenMetadata.updateNormalTokens(com.google.common.collect.Multimap<InetAddressAndPort, Token> endpointTokens) Update token map with a set of token/endpoint pairs in normal state.voidTokenMetadata.updateNormalTokens(Collection<Token> tokens, InetAddressAndPort endpoint) Constructors in org.apache.cassandra.locator with parameters of type TokenModifierConstructorDescriptionReplica(InetAddressAndPort endpoint, Token start, Token end, boolean full) Constructor parameters in org.apache.cassandra.locator with type arguments of type TokenModifierConstructorDescriptionReplica(InetAddressAndPort endpoint, Range<Token> range, boolean full) -
Uses of Token in org.apache.cassandra.metrics
Method parameters in org.apache.cassandra.metrics with type arguments of type TokenModifier and TypeMethodDescriptionTopPartitionTracker.TopHolder.merge(TopPartitionTracker.TopHolder holder, Collection<Range<Token>> ownedRanges) we merge any pre-existing top partitions on to the ones we just collected if they are outside of the range collected.Constructor parameters in org.apache.cassandra.metrics with type arguments of type Token -
Uses of Token in org.apache.cassandra.repair
Fields in org.apache.cassandra.repair with type parameters of type TokenModifier and TypeFieldDescriptionfinal Collection<Range<Token>>SyncStat.differencesfinal Collection<Range<Token>>CoordinatedRepairResult.failedRangesfinal Collection<Range<Token>>CommonRange.rangesfinal Collection<Range<Token>>RepairJobDesc.rangesrepairing rangefinal Collection<Range<Token>>RepairSessionResult.rangesSyncTask.rangesToSyncfinal Collection<Range<Token>>CoordinatedRepairResult.skippedRangesfinal Collection<Range<Token>>CoordinatedRepairResult.successfulRangesMethods in org.apache.cassandra.repair that return types with arguments of type TokenModifier and TypeMethodDescriptionValidationPartitionIterator.getRangePartitionCounts()RepairSession.ranges()Methods in org.apache.cassandra.repair with parameters of type TokenMethod parameters in org.apache.cassandra.repair with type arguments of type TokenModifier and TypeMethodDescriptionstatic CoordinatedRepairResultCoordinatedRepairResult.create(List<Collection<Range<Token>>> ranges, List<RepairSessionResult> results) TableRepairManager.getValidationIterator(Collection<Range<Token>> ranges, TimeUUID parentId, TimeUUID sessionID, boolean isIncremental, long nowInSec, TopPartitionTracker.Collector topPartitionCollector) Return a validation iterator for the given parameters.voidTableRepairManager.snapshot(String name, Collection<Range<Token>> ranges, boolean force) For snapshot repairs.Constructor parameters in org.apache.cassandra.repair with type arguments of type TokenModifierConstructorDescriptionAsymmetricRemoteSyncTask(SharedContext ctx, RepairJobDesc desc, InetAddressAndPort to, InetAddressAndPort from, List<Range<Token>> differences, PreviewKind previewKind) CommonRange(Set<InetAddressAndPort> endpoints, Set<InetAddressAndPort> transEndpoints, Collection<Range<Token>> ranges) CommonRange(Set<InetAddressAndPort> endpoints, Set<InetAddressAndPort> transEndpoints, Collection<Range<Token>> ranges, boolean hasSkippedReplicas) CoordinatedRepairResult(Collection<Range<Token>> successfulRanges, Collection<Range<Token>> failedRanges, Collection<Range<Token>> skippedRanges, List<RepairSessionResult> results) LocalSyncTask(SharedContext ctx, RepairJobDesc desc, InetAddressAndPort local, InetAddressAndPort remote, List<Range<Token>> diff, TimeUUID pendingRepair, boolean requestRanges, boolean transferRanges, PreviewKind previewKind) RepairJobDesc(TimeUUID parentSessionId, TimeUUID sessionId, String keyspace, String columnFamily, Collection<Range<Token>> ranges) RepairOutOfTokenRangeException(Collection<Range<Token>> ownedRanges) RepairSessionResult(TimeUUID sessionId, String keyspace, Collection<Range<Token>> ranges, Collection<RepairResult> repairJobResults, boolean skippedReplicas) StreamingRepairTask(SharedContext ctx, SyncState state, RepairJobDesc desc, InetAddressAndPort initiator, InetAddressAndPort src, InetAddressAndPort dst, Collection<Range<Token>> ranges, TimeUUID pendingRepair, PreviewKind previewKind, boolean asymmetric) SymmetricRemoteSyncTask(SharedContext ctx, RepairJobDesc desc, InetAddressAndPort r1, InetAddressAndPort r2, List<Range<Token>> differences, PreviewKind previewKind) SyncStat(SyncNodePair nodes, Collection<Range<Token>> differences) SyncStat(SyncNodePair nodes, Collection<Range<Token>> differences, List<SessionSummary> summaries) protectedSyncTask(SharedContext ctx, RepairJobDesc desc, InetAddressAndPort primaryEndpoint, InetAddressAndPort peer, List<Range<Token>> rangesToSync, PreviewKind previewKind) -
Uses of Token in org.apache.cassandra.repair.asymmetric
Methods in org.apache.cassandra.repair.asymmetric that return types with arguments of type TokenModifier and TypeMethodDescriptionRangeDenormalizer.denormalize(Range<Token> range, RangeMap<StreamFromOptions> incoming) "Denormalizes" (kind of the opposite of what Range.normalize does) the ranges in the keys of {{incoming}} It makes sure that if there is an intersection between {{range}} and some of the ranges in {{incoming.keySet()}} we know that all intersections are keys in the updated {{incoming}}RangeMap.entrySet()HostDifferences.get(InetAddressAndPort differingHost) com.google.common.collect.ImmutableMap<Range<Token>,StreamFromOptions> IncomingRepairStreamTracker.getIncoming()RangeMap.keySet()RangeMap.removeIntersecting(Range<Token> range) RangeDenormalizer.subtractAll(Collection<Map.Entry<Range<Token>, StreamFromOptions>> ranges, Range<Token> toSubtract) copied from Range - need to iterate over the map entriesMethod parameters in org.apache.cassandra.repair.asymmetric with type arguments of type TokenModifier and TypeMethodDescriptionvoidHostDifferences.add(InetAddressAndPort endpoint, Collection<Range<Token>> difference) Adds a set of differences between the node this instance is tracking and endpointvoidIncomingRepairStreamTracker.addIncomingRangeFrom(Range<Token> range, InetAddressAndPort streamFromNode) Adds a range to be streamed from streamFromNode First the currently tracked ranges are denormalized to make sure that no ranges overlap, then the streamFromNode is added to the StreamFromOptions for the rangevoidHostDifferences.addSingleRange(InetAddressAndPort remoteNode, Range<Token> rangeToFetch) RangeDenormalizer.denormalize(Range<Token> range, RangeMap<StreamFromOptions> incoming) "Denormalizes" (kind of the opposite of what Range.normalize does) the ranges in the keys of {{incoming}} It makes sure that if there is an intersection between {{range}} and some of the ranges in {{incoming.keySet()}} we know that all intersections are keys in the updated {{incoming}}booleanDifferenceHolder.hasDifferenceBetween(InetAddressAndPort node1, InetAddressAndPort node2, Range<Token> range) booleanHostDifferences.hasDifferencesFor(InetAddressAndPort node2, Range<Token> range) Does this instance have differences for range with node2?voidRangeMap.removeIntersecting(Range<Token> range) RangeDenormalizer.subtractAll(Collection<Map.Entry<Range<Token>, StreamFromOptions>> ranges, Range<Token> toSubtract) copied from Range - need to iterate over the map entriesRangeDenormalizer.subtractAll(Collection<Map.Entry<Range<Token>, StreamFromOptions>> ranges, Range<Token> toSubtract) copied from Range - need to iterate over the map entriesConstructor parameters in org.apache.cassandra.repair.asymmetric with type arguments of type TokenModifierConstructorDescriptionStreamFromOptions(DifferenceHolder differences, Range<Token> range) -
Uses of Token in org.apache.cassandra.repair.autorepair
Fields in org.apache.cassandra.repair.autorepair with type parameters of type TokenModifier and TypeFieldDescriptionKeyspaceRepairPlan.ksTablesEstimatedBytesAutoRepairUtils.SizeEstimate.tokenRangeMethods in org.apache.cassandra.repair.autorepair that return types with arguments of type TokenModifier and TypeMethodDescriptionAutoRepairUtils.calcTotalBytesToBeRepaired(AutoRepairConfig.RepairType repairType, String keyspaceName, List<String> tableNames, List<Range<Token>> tokenRanges) Calculates the total bytes to be repaired for a given keyspace and list of tables.RepairAssignment.getTokenRange()AutoRepairUtils.getTokenRanges(boolean primaryRangeOnly, String keyspaceName) Calculates the token ranges owned by this node for a given keyspace.static Collection<Range<Token>>Method parameters in org.apache.cassandra.repair.autorepair with type arguments of type TokenModifier and TypeMethodDescriptionRepairTokenRangeSplitter.getRepairAssignmentsForTable(KeyspaceRepairPlan repairPlan, String tableName, Range<Token> tokenRange) abstract RepairCoordinatorAutoRepairState.getRepairRunnable(String keyspace, List<String> tables, Set<Range<Token>> ranges, boolean primaryRangeOnly) KeyspaceRepairPlan.getSizeEstimate(String keyspaceTableName, Range<Token> tokenRange) static Collection<Range<Token>>Constructor parameters in org.apache.cassandra.repair.autorepair with type arguments of type TokenModifierConstructorDescriptionKeyspaceRepairPlan(String keyspaceName, List<String> tableNames, Map<String, Map<Range<Token>, AutoRepairUtils.SizeEstimate>> ksTablesEstimatedBytes) RepairAssignment(Range<Token> tokenRange, String keyspaceName, List<String> tableNames, long estimatedBytes) SizedRepairAssignment(Range<Token> tokenRange, String keyspaceName, List<String> tableNames, String description, long estimatedBytes) SizeEstimate(AutoRepairConfig.RepairType repairType, String keyspace, String table, Range<Token> tokenRange, long partitions, long sizeInRange, long totalSize) -
Uses of Token in org.apache.cassandra.repair.consistent
Fields in org.apache.cassandra.repair.consistent with type parameters of type TokenMethods in org.apache.cassandra.repair.consistent that return types with arguments of type TokenMethod parameters in org.apache.cassandra.repair.consistent with type arguments of type TokenModifier and TypeMethodDescriptionvoidRepairedState.add(Collection<Range<Token>> ranges, long repairedAt) LocalSessions.cleanup(TableId tid, Collection<Range<Token>> ranges, boolean force) LocalSessions.getPendingStats(TableId tid, Collection<Range<Token>> ranges) LocalSessions.getRepairedStats(TableId tid, Collection<Range<Token>> ranges) RepairedState.getRepairedStats(Collection<Range<Token>> ranges) booleanConsistentSession.intersects(Iterable<Range<Token>> otherRanges) longRepairedState.minRepairedAt(Collection<Range<Token>> ranges) LocalSessions.sessionInfo(boolean all, Set<Range<Token>> ranges) -
Uses of Token in org.apache.cassandra.repair.messages
Fields in org.apache.cassandra.repair.messages with type parameters of type TokenModifier and TypeFieldDescriptionfinal Collection<Range<Token>>PrepareMessage.rangesfinal Collection<Range<Token>>SyncRequest.rangesMethods in org.apache.cassandra.repair.messages that return types with arguments of type TokenModifier and TypeMethodDescriptionRepairOption.getRanges()RepairOption.parseRanges(String rangesStr, IPartitioner partitioner) Constructor parameters in org.apache.cassandra.repair.messages with type arguments of type TokenModifierConstructorDescriptionPrepareMessage(TimeUUID parentRepairSession, List<TableId> tableIds, Collection<Range<Token>> ranges, boolean isIncremental, long repairedAt, boolean isGlobal, PreviewKind previewKind) RepairOption(RepairParallelism parallelism, boolean primaryRange, boolean incremental, boolean trace, int jobThreads, Collection<Range<Token>> ranges, boolean isSubrangeRepair, boolean pullRepair, boolean forceRepair, PreviewKind previewKind, boolean optimiseStreams, boolean ignoreUnreplicatedKeyspaces, boolean repairPaxos, boolean paxosOnly) SyncRequest(RepairJobDesc desc, InetAddressAndPort initiator, InetAddressAndPort src, InetAddressAndPort dst, Collection<Range<Token>> ranges, PreviewKind previewKind, boolean asymmetric) -
Uses of Token in org.apache.cassandra.repair.state
Fields in org.apache.cassandra.repair.state with type parameters of type Token -
Uses of Token in org.apache.cassandra.schema
Method parameters in org.apache.cassandra.schema with type arguments of type TokenModifier and TypeMethodDescriptionstatic voidSystemDistributedKeyspace.successfulParentRepair(TimeUUID parent_id, Collection<Range<Token>> successfulRanges) -
Uses of Token in org.apache.cassandra.service
Fields in org.apache.cassandra.service with type parameters of type TokenMethods in org.apache.cassandra.service that return types with arguments of type TokenModifier and TypeMethodDescriptionStorageService.getAllRanges(List<Token> sortedTokens) Get all ranges that span the ring given a set of tokens.StorageService.getLocalAndPendingRanges(String ks) StorageService.getLocalPrimaryRange()StorageService.getLocalPrimaryRangeForEndpoint(InetAddressAndPort referenceEndpoint) StorageService.getLocalRanges(String ks) StorageService.getLocalTokens()StorageService.getPrimaryRangeForEndpointWithinDC(String keyspace, InetAddressAndPort referenceEndpoint) Get the "primary ranges" within local DC for the specified keyspace and endpoint.StorageService.getPrimaryRanges(String keyspace) StorageService.getPrimaryRangesForEndpoint(String keyspace, InetAddressAndPort ep) Get the "primary ranges" for the specified keyspace and endpoint.StorageService.getPrimaryRangesWithinDC(String keyspace) ActiveRepairService.ParentRepairSession.getRanges()StorageService.getTokensFor(InetAddressAndPort endpoint) Methods in org.apache.cassandra.service with parameters of type TokenModifier and TypeMethodDescriptionbooleanStorageService.isEndpointValidForWrite(String keyspace, Token token) Method parameters in org.apache.cassandra.service with type arguments of type TokenModifier and TypeMethodDescriptionbooleanStorageService.bootstrap(Collection<Token> tokens, long bootstrapTimeoutMillis) Bootstrap node by fetching data from other nodes.static TokenRangeTokenRange.create(Token.TokenFactory tokenFactory, Range<Token> range, List<InetAddressAndPort> endpoints, boolean withPorts) voidStorageService.finishJoiningRing(boolean didBootstrap, Collection<Token> tokens) StorageService.getAllRanges(List<Token> sortedTokens) Get all ranges that span the ring given a set of tokens.ActiveRepairService.getNeighbors(String keyspaceName, Iterable<Range<Token>> keyspaceLocalRanges, Range<Token> toRepair, Collection<String> dataCenters, Collection<String> hosts) Return all of the neighbors with whom we share the provided range.ActiveRepairService.getNeighbors(String keyspaceName, Iterable<Range<Token>> keyspaceLocalRanges, Range<Token> toRepair, Collection<String> dataCenters, Collection<String> hosts) Return all of the neighbors with whom we share the provided range.voidActiveRepairService.registerParentRepairSession(TimeUUID parentRepairSession, InetAddressAndPort coordinator, List<ColumnFamilyStore> columnFamilyStores, Collection<Range<Token>> ranges, boolean isIncremental, long repairedAt, boolean isGlobal, PreviewKind previewKind) Future<?>ActiveRepairService.repairPaxosForTopologyChange(String ksName, Collection<Range<Token>> ranges, String reason) voidStorageService.setGossipTokens(Collection<Token> tokens) voidStorageService.setTokens(Collection<Token> tokens) This method updates the local token on diskStorageService.startBootstrap(Collection<Token> tokens) StorageService.startBootstrap(Collection<Token> tokens, boolean replacing) Constructor parameters in org.apache.cassandra.service with type arguments of type TokenModifierConstructorDescriptionParentRepairSession(InetAddressAndPort coordinator, List<ColumnFamilyStore> columnFamilyStores, Collection<Range<Token>> ranges, boolean isIncremental, long repairedAt, boolean isGlobal, PreviewKind previewKind) -
Uses of Token in org.apache.cassandra.service.paxos
Methods in org.apache.cassandra.service.paxos with parameters of type TokenModifier and TypeMethodDescriptionPaxosRepairHistory.ballotForToken(Token token) PaxosRepairHistory.Searcher.ballotForToken(Token token) TablePaxosRepairHistory.getBallotForToken(Token token) Method parameters in org.apache.cassandra.service.paxos with type arguments of type TokenModifier and TypeMethodDescriptionstatic PaxosRepairHistoryPaxosRepairHistory.add(PaxosRepairHistory existing, Collection<Range<Token>> ranges, Ballot ballot) voidTablePaxosRepairHistory.add(Collection<Range<Token>> ranges, Ballot ballot, boolean flush) TablePaxosRepairHistory.getHistoryForRanges(Collection<Range<Token>> ranges) static booleanPaxosRepair.hasSufficientLiveNodesForTopologyChange(Keyspace keyspace, Range<Token> range, Collection<InetAddressAndPort> liveEndpoints) checks if we have enough live nodes to perform a paxos repair for topology repair.static booleanPaxosRepair.validatePeerCompatibility(SharedContext ctx, TableMetadata table, Collection<Range<Token>> ranges) -
Uses of Token in org.apache.cassandra.service.paxos.cleanup
Fields in org.apache.cassandra.service.paxos.cleanup with type parameters of type TokenMethod parameters in org.apache.cassandra.service.paxos.cleanup with type arguments of type TokenModifier and TypeMethodDescriptionstatic PaxosCleanupLocalCoordinatorPaxosCleanupLocalCoordinator.createForAutoRepair(SharedContext ctx, TableId tableId, Collection<Range<Token>> ranges) Constructor parameters in org.apache.cassandra.service.paxos.cleanup with type arguments of type TokenModifierConstructorDescriptionPaxosCleanupRequest(UUID session, TableId tableId, Collection<Range<Token>> ranges) Request(TableId tableId, EndpointState epState, Collection<Range<Token>> ranges) -
Uses of Token in org.apache.cassandra.service.paxos.uncommitted
Method parameters in org.apache.cassandra.service.paxos.uncommitted with type arguments of type TokenModifier and TypeMethodDescriptionPaxosUncommittedIndex.repairIterator(TableId tableId, Collection<Range<Token>> ranges) PaxosUncommittedTracker.UpdateSupplier.repairIterator(TableId tableId, Collection<Range<Token>> ranges) PaxosUncommittedTracker.uncommittedKeyIterator(TableId tableId, Collection<Range<Token>> ranges) -
Uses of Token in org.apache.cassandra.streaming
Fields in org.apache.cassandra.streaming with type parameters of type TokenConstructor parameters in org.apache.cassandra.streaming with type arguments of type TokenModifierConstructorDescriptionStreamReceivedOutOfTokenRangeException(Collection<Range<Token>> ownedRanges, DecoratedKey key, String filename) -
Uses of Token in org.apache.cassandra.utils
Fields in org.apache.cassandra.utils declared as TokenMethods in org.apache.cassandra.utils that return types with arguments of type TokenModifier and TypeMethodDescriptionRangesSerializer.deserialize(DataInputPlus in, int version) MerkleTrees.difference(MerkleTrees ltrees, MerkleTrees rtrees) Get the differences between the two sets of MerkleTrees.MerkleTrees.iterator()Get an iterator of all ranges and their MerkleTrees.MerkleTrees.ranges()Get the ranges that these merkle trees covers.Methods in org.apache.cassandra.utils with parameters of type TokenModifier and TypeMethodDescriptionFor testing purposes.Get the MerkleTree.Range responsible for the given token.voidMerkleTrees.invalidate(Token t) Invalidate the MerkleTree responsible for the given token.booleanSplits the range containing the given token, if no tree limits would be violated.booleanSplit the MerkleTree responsible for the given token.Method parameters in org.apache.cassandra.utils with type arguments of type TokenModifier and TypeMethodDescriptionMerkleTrees.addMerkleTree(int maxsize, byte hashdepth, Range<Token> range) MerkleTrees.addMerkleTree(int maxsize, Range<Token> range) Add a MerkleTree with the defined size and range.voidMerkleTrees.addMerkleTrees(int maxsize, Collection<Range<Token>> ranges) Add merkle tree's with the defined maxsize and ranges.MerkleTrees.getMerkleTree(Range<Token> range) Get the MerkleTree responsible for the given token range.byte[]voidInit a selected MerkleTree with an even tree distribution.voidstatic voidDiagnosticSnapshotService.repairedDataMismatch(TableMetadata metadata, Iterable<InetAddressAndPort> replicas, List<Range<Token>> ranges) voidRangesSerializer.serialize(Collection<Range<Token>> ranges, DataOutputPlus out, int version) longRangesSerializer.serializedSize(Collection<Range<Token>> ranges, int version) static voidDiagnosticSnapshotService.snapshot(SnapshotCommand command, List<Range<Token>> ranges, InetAddressAndPort initiator) static voidFBUtilities.sortSampledKeys(List<DecoratedKey> keys, Range<Token> range) Constructors in org.apache.cassandra.utils with parameters of type TokenConstructor parameters in org.apache.cassandra.utils with type arguments of type TokenModifierConstructorDescriptionMerkleTree(IPartitioner partitioner, Range<Token> range, int hashdepth, long maxsize)