Uses of Class
org.apache.cassandra.dht.Token
-
-
Uses of Token in org.apache.cassandra.db
Fields in org.apache.cassandra.db with type parameters of type Token Modifier and Type Field Description java.util.Set<Range<Token>>SystemKeyspace.AvailableRanges. fulljava.util.Set<Range<Token>>SystemKeyspace.AvailableRanges. transMethods in org.apache.cassandra.db that return Token Modifier and Type Method Description TokenDecoratedKey. getToken()Methods in org.apache.cassandra.db that return types with arguments of type Token Modifier and Type Method Description static java.util.Collection<Token>SystemKeyspace. getSavedTokens()static java.util.Map<InetAddressAndPort,java.util.Set<Range<Token>>>SystemKeyspace. getTransferredRanges(java.lang.String description, java.lang.String keyspace, IPartitioner partitioner)static java.util.Map<Range<Token>,Pair<Token,java.lang.Long>>SystemKeyspace. getViewBuildStatus(java.lang.String ksname, java.lang.String viewName)static java.util.Map<Range<Token>,Pair<Token,java.lang.Long>>SystemKeyspace. getViewBuildStatus(java.lang.String ksname, java.lang.String viewName)static com.google.common.collect.SetMultimap<InetAddressAndPort,Token>SystemKeyspace. loadTokens()Return a map of stored tokens to IP addressesstatic java.util.Set<Range<Token>>SystemKeyspace. rawRangesToRangeSet(java.util.Set<java.nio.ByteBuffer> rawRanges, IPartitioner partitioner)Methods in org.apache.cassandra.db with parameters of type Token Modifier and Type Method Description static voidSystemKeyspace. updateViewBuildStatus(java.lang.String ksname, java.lang.String viewName, Range<Token> range, Token lastToken, long keysBuilt)Method parameters in org.apache.cassandra.db with type arguments of type Token Modifier and Type Method Description longColumnFamilyStore. estimatedKeysForRange(Range<Token> range)voidColumnFamilyStore. forceCompactionForTokenRange(java.util.Collection<Range<Token>> tokenRanges)voidColumnFamilyStoreMBean. forceCompactionForTokenRange(java.util.Collection<Range<Token>> tokenRanges)Deprecated.static DataRangeDataRange. forTokenRange(Range<Token> tokenRange)Creates aDataRangeto query all rows over the provided token range.PaxosRepairHistoryColumnFamilyStore. getPaxosRepairHistoryForRanges(java.util.Collection<Range<Token>> ranges)intColumnFamilyStore. invalidateCounterCache(java.util.Collection<Bounds<Token>> boundsToInvalidate)intColumnFamilyStore. invalidateRowCache(java.util.Collection<Bounds<Token>> boundsToInvalidate)java.lang.Iterable<DecoratedKey>ColumnFamilyStore. keySamples(Range<Token> range)voidColumnFamilyStore. onPaxosRepairComplete(java.util.Collection<Range<Token>> ranges, Ballot highBallot)static voidSystemKeyspace. updateAvailableRanges(java.lang.String keyspace, java.util.Collection<Range<Token>> completedFullRanges, java.util.Collection<Range<Token>> completedTransientRanges)static voidSystemKeyspace. updateSizeEstimates(java.lang.String keyspace, java.lang.String table, java.util.Map<Range<Token>,Pair<java.lang.Long,java.lang.Long>> estimates)Writes the current partition count and size estimates into SIZE_ESTIMATES_CFstatic voidSystemKeyspace. updateTableEstimates(java.lang.String keyspace, java.lang.String table, java.lang.String type, java.util.Map<Range<Token>,Pair<java.lang.Long,java.lang.Long>> estimates)Writes the current partition count and size estimates into table_estimatesstatic voidSystemKeyspace. updateTokens(java.util.Collection<Token> tokens)This method is used to update the System Keyspace with the new tokens for this nodestatic voidSystemKeyspace. updateTokens(InetAddressAndPort ep, java.util.Collection<Token> tokens)Record tokens being used by another nodestatic voidSystemKeyspace. updateTransferredRanges(StreamOperation streamOperation, InetAddressAndPort peer, java.lang.String keyspace, java.util.Collection<Range<Token>> streamedRanges)static voidSystemKeyspace. updateViewBuildStatus(java.lang.String ksname, java.lang.String viewName, Range<Token> range, Token lastToken, long keysBuilt)Constructors in org.apache.cassandra.db with parameters of type Token Constructor Description BufferDecoratedKey(Token token, java.nio.ByteBuffer key)CachedHashDecoratedKey(Token token, java.nio.ByteBuffer key)DecoratedKey(Token token)NativeDecoratedKey(Token token, NativeAllocator allocator, OpOrder.Group writeOp, java.nio.ByteBuffer key)PreHashedDecoratedKey(Token token, java.nio.ByteBuffer key, long hash0, long hash1) -
Uses of Token in org.apache.cassandra.db.compaction
Fields in org.apache.cassandra.db.compaction with type parameters of type Token Modifier and Type Field Description java.util.function.Function<java.lang.String,? extends java.util.Collection<Range<Token>>>Verifier.Options. tokenLookupMethod parameters in org.apache.cassandra.db.compaction with type arguments of type Token Modifier and Type Method Description voidCompactionManager. forceCompactionForTokenRange(ColumnFamilyStore cfStore, java.util.Collection<Range<Token>> ranges)Forces a major compaction of specified token ranges of the specified column family.AbstractCompactionStrategy.ScannerListAbstractCompactionStrategy. getScanners(java.util.Collection<SSTableReader> sstables, Range<Token> range)abstract java.util.List<ISSTableScanner>AbstractStrategyHolder. getScanners(AbstractStrategyHolder.GroupedSSTableContainer sstables, java.util.Collection<Range<Token>> ranges)java.util.List<ISSTableScanner>CompactionStrategyHolder. getScanners(AbstractStrategyHolder.GroupedSSTableContainer sstables, java.util.Collection<Range<Token>> ranges)java.util.List<ISSTableScanner>PendingRepairHolder. getScanners(AbstractStrategyHolder.GroupedSSTableContainer sstables, java.util.Collection<Range<Token>> ranges)static booleanCompactionManager. needsCleanup(SSTableReader sstable, java.util.Collection<Range<Token>> ownedRanges)Determines if a cleanup would actually remove any data in this SSTable based on a set of owned ranges.Verifier.Options.BuilderVerifier.Options.Builder. tokenLookup(java.util.function.Function<java.lang.String,? extends java.util.Collection<Range<Token>>> tokenLookup)Constructor parameters in org.apache.cassandra.db.compaction with type arguments of type Token Constructor Description RangeOwnHelper(java.util.List<Range<Token>> normalizedRanges) -
Uses of Token in org.apache.cassandra.db.memtable
Methods in org.apache.cassandra.db.memtable with parameters of type Token Modifier and Type Method Description intShardBoundaries. getShardForToken(Token tk)Computes the shard to use for the provided token.Constructors in org.apache.cassandra.db.memtable with parameters of type Token Constructor Description ShardBoundaries(Token[] boundaries, long ringVersion)Constructor parameters in org.apache.cassandra.db.memtable with type arguments of type Token Constructor Description ShardBoundaries(java.util.List<Token> boundaries, long ringVersion) -
Uses of Token in org.apache.cassandra.db.repair
Methods in org.apache.cassandra.db.repair that return types with arguments of type Token Modifier and Type Method Description java.util.Map<Range<Token>,java.lang.Long>CassandraValidationIterator. getRangePartitionCounts()Method parameters in org.apache.cassandra.db.repair with type arguments of type Token Modifier and Type Method Description protected PendingAntiCompaction.AcquisitionCallablePendingAntiCompaction. getAcquisitionCallable(ColumnFamilyStore cfs, java.util.Set<Range<Token>> ranges, TimeUUID prsId, int acquireRetrySeconds, int acquireSleepMillis)static Refs<SSTableReader>CassandraValidationIterator. getSSTablesToValidate(ColumnFamilyStore cfs, java.util.Collection<Range<Token>> ranges, TimeUUID parentId, boolean isIncremental)ValidationPartitionIteratorCassandraTableRepairManager. getValidationIterator(java.util.Collection<Range<Token>> ranges, TimeUUID parentId, TimeUUID sessionID, boolean isIncremental, int nowInSec, TopPartitionTracker.Collector topPartitionCollector)voidCassandraTableRepairManager. snapshot(java.lang.String name, java.util.Collection<Range<Token>> ranges, boolean force)Constructor parameters in org.apache.cassandra.db.repair with type arguments of type Token Constructor Description AcquisitionCallable(ColumnFamilyStore cfs, java.util.Collection<Range<Token>> ranges, TimeUUID sessionID, int acquireRetrySeconds, int acquireSleepMillis)CassandraValidationIterator(ColumnFamilyStore cfs, java.util.Collection<Range<Token>> ranges, TimeUUID parentId, TimeUUID sessionID, boolean isIncremental, int nowInSec, TopPartitionTracker.Collector topPartitionCollector) -
Uses of Token in org.apache.cassandra.db.view
Methods in org.apache.cassandra.db.view with parameters of type Token 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.Constructors in org.apache.cassandra.db.view with parameters of type Token Constructor Description ViewBuilderTask(ColumnFamilyStore baseCfs, View view, Range<Token> range, Token lastToken, long keysBuilt)Constructor parameters in org.apache.cassandra.db.view with type arguments of type Token Constructor Description ViewBuilderTask(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.dht Modifier and Type Class Description static classByteOrderedPartitioner.BytesTokenclassLocalPartitioner.LocalTokenstatic classMurmur3Partitioner.LongTokenstatic classOrderPreservingPartitioner.StringTokenstatic classRandomPartitioner.BigIntegerTokenFields in org.apache.cassandra.dht with type parameters of type Token Modifier and Type Field Description protected java.util.Collection<Token>BootStrapper. tokensstatic IPartitionerDependentSerializer<AbstractBounds<Token>>AbstractBounds. tokenSerializerMethods in org.apache.cassandra.dht that return Token Modifier and Type Method Description TokenToken.TokenSerializer. deserialize(java.io.DataInput in, IPartitioner p, int version)abstract TokenToken.TokenFactory. fromByteArray(java.nio.ByteBuffer bytes)TokenToken.TokenFactory. fromByteBuffer(java.nio.ByteBuffer bytes, int position, int length)abstract TokenToken.TokenFactory. fromString(java.lang.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 partitionersTokenMurmur3Partitioner. getMaximumToken()TokenRandomPartitioner. getMaximumToken()TokenIPartitioner. getMinimumToken()TokenIPartitioner. getRandomToken()TokenIPartitioner. getRandomToken(java.util.Random random)TokenIPartitioner. getToken(java.nio.ByteBuffer key)TokenRingPosition. getToken()TokenToken. getToken()TokenToken.KeyBound. getToken()TokenByteOrderedPartitioner.BytesToken. increaseSlightly()TokenRandomPartitioner.BigIntegerToken. increaseSlightly()abstract TokenToken. increaseSlightly()Returns a token that is slightly greater than this.TokenSplitter.WeightedRange. left()TokenIPartitioner. midpoint(Token left, Token right)Calculate a Token representing the approximate "middle" of the given range.TokenLocalPartitioner. midpoint(Token left, Token right)TokenMurmur3Partitioner. midpoint(Token lToken, Token rToken)TokenRandomPartitioner. midpoint(Token ltoken, Token rtoken)TokenToken. minValue()TokenSplitter.WeightedRange. right()TokenByteOrderedPartitioner. split(Token left, Token right, double ratioToLeft)TokenIPartitioner. split(Token left, Token right, double ratioToLeft)Calculate a Token which takeapproximate 0 <= ratioToLeft <= 1ownership of the given range.TokenLocalPartitioner. split(Token left, Token right, double ratioToLeft)TokenMurmur3Partitioner. split(Token lToken, Token rToken, double ratioToLeft)TokenOrderPreservingPartitioner. split(Token left, Token right, double ratioToLeft)TokenRandomPartitioner. split(Token ltoken, Token rtoken, double ratioToLeft)protected abstract TokenSplitter. tokenForValue(java.math.BigInteger value)Methods in org.apache.cassandra.dht that return types with arguments of type Token Modifier and Type Method Description java.util.Map<Token,java.lang.Float>ByteOrderedPartitioner. describeOwnership(java.util.List<Token> sortedTokens)java.util.Map<Token,java.lang.Float>IPartitioner. describeOwnership(java.util.List<Token> sortedTokens)Calculate the deltas between tokens in the ring in order to compare relative sizes.java.util.Map<Token,java.lang.Float>LocalPartitioner. describeOwnership(java.util.List<Token> sortedTokens)java.util.Map<Token,java.lang.Float>Murmur3Partitioner. describeOwnership(java.util.List<Token> sortedTokens)java.util.Map<Token,java.lang.Float>OrderPreservingPartitioner. describeOwnership(java.util.List<Token> sortedTokens)java.util.Map<Token,java.lang.Float>RandomPartitioner. describeOwnership(java.util.List<Token> sortedTokens)static java.util.Collection<Token>BootStrapper. getBootstrapTokens(TokenMetadata metadata, InetAddressAndPort address, long schemaTimeoutMillis, long ringTimeoutMillis)if initialtoken was specified, use that (split on comma).static java.util.Collection<Token>BootStrapper. getRandomTokens(TokenMetadata metadata, int numTokens)com.google.common.collect.Multimap<InetAddressAndPort,Range<Token>>RangeFetchMapCalculator. getRangeFetchMap()Range<Token>Splitter.WeightedRange. range()java.util.Set<Range<Token>>Splitter. split(java.util.Collection<Range<Token>> ranges, int parts)Splits the specified token ranges in at leastpartssubranges.java.util.List<Token>Splitter. splitOwnedRanges(int parts, java.util.List<Splitter.WeightedRange> weightedRanges, boolean dontSplitRanges)Methods in org.apache.cassandra.dht with parameters of type Token Modifier and Type Method Description intToken.TokenFactory. byteSize(Token token)intByteOrderedPartitioner.BytesToken. compareTo(Token other)intLocalPartitioner.LocalToken. compareTo(Token o)intMurmur3Partitioner.LongToken. compareTo(Token o)protected java.math.BigIntegerSplitter. elapsedTokens(Token token, Range<Token> range)Computes the number of elapsed tokens from the range start until this tokenbooleanStreamStateStore. isDataAvailable(java.lang.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.ByteOrderedPartitioner.BytesTokenByteOrderedPartitioner. midpoint(Token lt, Token rt)TokenIPartitioner. midpoint(Token left, Token right)Calculate a Token representing the approximate "middle" of the given range.TokenLocalPartitioner. midpoint(Token left, Token right)TokenMurmur3Partitioner. midpoint(Token lToken, Token rToken)OrderPreservingPartitioner.StringTokenOrderPreservingPartitioner. midpoint(Token ltoken, Token rtoken)TokenRandomPartitioner. midpoint(Token ltoken, Token rtoken)doubleSplitter. positionInRange(Token token, Range<Token> range)Computes the normalized position of this token relative to this rangevoidToken.TokenFactory. serialize(Token token, java.nio.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)doubleByteOrderedPartitioner.BytesToken. size(Token next)doubleMurmur3Partitioner.LongToken. size(Token next)doubleRandomPartitioner.BigIntegerToken. size(Token next)abstract doubleToken. size(Token next)Returns a measure for the token space covered between this token and next.TokenByteOrderedPartitioner. split(Token left, Token right, double ratioToLeft)TokenIPartitioner. split(Token left, Token right, double ratioToLeft)Calculate a Token which takeapproximate 0 <= ratioToLeft <= 1ownership of the given range.TokenLocalPartitioner. split(Token left, Token right, double ratioToLeft)TokenMurmur3Partitioner. split(Token lToken, Token rToken, double ratioToLeft)TokenOrderPreservingPartitioner. split(Token left, Token right, double ratioToLeft)TokenRandomPartitioner. split(Token ltoken, Token rtoken, double ratioToLeft)booleanRange.OrderedRangeContainmentChecker. test(Token t)Returns true if the ranges given in the constructor contains the token, false otherwise.abstract java.nio.ByteBufferToken.TokenFactory. toByteArray(Token token)abstract java.lang.StringToken.TokenFactory. toString(Token token)protected abstract java.math.BigIntegerSplitter. valueForToken(Token token)Method parameters in org.apache.cassandra.dht with type arguments of type Token Modifier and Type Method Description java.util.Map<Token,java.lang.Float>ByteOrderedPartitioner. describeOwnership(java.util.List<Token> sortedTokens)java.util.Map<Token,java.lang.Float>IPartitioner. describeOwnership(java.util.List<Token> sortedTokens)Calculate the deltas between tokens in the ring in order to compare relative sizes.java.util.Map<Token,java.lang.Float>LocalPartitioner. describeOwnership(java.util.List<Token> sortedTokens)java.util.Map<Token,java.lang.Float>Murmur3Partitioner. describeOwnership(java.util.List<Token> sortedTokens)java.util.Map<Token,java.lang.Float>OrderPreservingPartitioner. describeOwnership(java.util.List<Token> sortedTokens)java.util.Map<Token,java.lang.Float>RandomPartitioner. describeOwnership(java.util.List<Token> sortedTokens)protected java.math.BigIntegerSplitter. elapsedTokens(Token token, Range<Token> range)Computes the number of elapsed tokens from the range start until this tokenstatic booleanRange. intersects(java.lang.Iterable<Range<Token>> l, java.lang.Iterable<Range<Token>> r)static Range<PartitionPosition>Range. makeRowRange(Range<Token> tokenBounds)doubleSplitter. positionInRange(Token token, Range<Token> range)Computes the normalized position of this token relative to this rangejava.util.Set<Range<Token>>Splitter. split(java.util.Collection<Range<Token>> ranges, int parts)Splits the specified token ranges in at leastpartssubranges.protected java.math.BigIntegerSplitter. tokensInRange(Range<Token> range)booleanOwnedRanges. validateRangeRequest(java.util.Collection<Range<Token>> requestedRanges, java.lang.String requestId, java.lang.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 Token Constructor Description BootStrapper(InetAddressAndPort address, java.util.Collection<Token> tokens, TokenMetadata tmd)OrderedRangeContainmentChecker(java.util.Collection<Range<Token>> ranges)OwnedRanges(java.util.Collection<Range<Token>> ownedRanges)RangeStreamer(TokenMetadata metadata, java.util.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 Token Modifier and Type Method Description java.util.Collection<Token>NoReplicationTokenAllocator. addUnit(Unit newUnit, int numTokens)java.util.Collection<Token>TokenAllocator. addUnit(Unit newUnit, int numTokens)static java.util.Collection<Token>TokenAllocation. allocateTokens(TokenMetadata tokenMetadata, int replicas, InetAddressAndPort endpoint, int numTokens)static java.util.Collection<Token>TokenAllocation. allocateTokens(TokenMetadata tokenMetadata, AbstractReplicationStrategy rs, InetAddressAndPort endpoint, int numTokens)java.util.Collection<Token>OfflineTokenAllocator.FakeNode. tokens()Method parameters in org.apache.cassandra.dht.tokenallocator with type arguments of type Token Modifier and Type Method Description static TokenAllocator<InetAddressAndPort>TokenAllocatorFactory. createTokenAllocator(java.util.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 Token Constructor Description FakeNode(InetAddressAndPort address, java.lang.Integer rackId, java.util.Collection<Token> tokens)NoReplicationTokenAllocator(java.util.NavigableMap<Token,Unit> sortedTokens, org.apache.cassandra.dht.tokenallocator.ReplicationStrategy<Unit> strategy, IPartitioner partitioner)TokenAllocatorBase(java.util.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 Token Modifier and Type Method Description static java.util.Collection<Token>TokenSerializer. deserialize(IPartitioner partitioner, java.io.DataInput in)Methods in org.apache.cassandra.gms with parameters of type Token Modifier and Type Method Description VersionedValueVersionedValue.VersionedValueFactory. moving(Token token)Method parameters in org.apache.cassandra.gms with type arguments of type Token Modifier and Type Method Description VersionedValueVersionedValue.VersionedValueFactory. bootstrapping(java.util.Collection<Token> tokens)VersionedValueVersionedValue.VersionedValueFactory. leaving(java.util.Collection<Token> tokens)VersionedValueVersionedValue.VersionedValueFactory. left(java.util.Collection<Token> tokens, long expireTime)VersionedValueVersionedValue.VersionedValueFactory. left(java.util.Collection<Token> tokens, long expireTime, int generation)VersionedValueVersionedValue.VersionedValueFactory. normal(java.util.Collection<Token> tokens)static voidTokenSerializer. serialize(IPartitioner partitioner, java.util.Collection<Token> tokens, java.io.DataOutput out)VersionedValueVersionedValue.VersionedValueFactory. tokens(java.util.Collection<Token> tokens) -
Uses of Token in org.apache.cassandra.io.sstable
Methods in org.apache.cassandra.io.sstable that return types with arguments of type Token Modifier and Type Method Description AbstractBounds<Token>SSTable. getBounds()java.util.Map<InetAddressAndPort,java.util.Collection<Range<Token>>>SSTableLoader.Client. getEndpointToRangesMap()Method parameters in org.apache.cassandra.io.sstable with type arguments of type Token Modifier and Type Method Description protected voidSSTableLoader.Client. addRangeForEndpoint(Range<Token> range, InetAddressAndPort endpoint)protected java.util.Collection<SSTableReader>SSTableLoader. openSSTables(java.util.Map<InetAddressAndPort,java.util.Collection<Range<Token>>> ranges) -
Uses of Token in org.apache.cassandra.io.sstable.format
Method parameters in org.apache.cassandra.io.sstable.format with type arguments of type Token Modifier and Type Method Description longSSTableReader. estimatedKeysForRanges(java.util.Collection<Range<Token>> ranges)java.lang.Iterable<DecoratedKey>SSTableReader. getKeySamples(Range<Token> range)java.util.List<SSTableReader.PartitionPositionBounds>SSTableReader. getPositionsForRanges(java.util.Collection<Range<Token>> ranges)Determine the minimal set of sections that can be extracted from this SSTable to cover the given ranges.abstract ISSTableScannerSSTableReader. getScanner(java.util.Collection<Range<Token>> ranges)Direct I/O SSTableScanner over a defined collection of ranges of tokens.ISSTableScannerSSTableReader. getScanner(Range<Token> range)Direct I/O SSTableScanner over a defined range of tokens.booleanSSTableReader. intersects(java.util.Collection<Range<Token>> ranges) -
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 Token Modifier and Type Method Description ISSTableScannerBigTableReader. getScanner(java.util.Collection<Range<Token>> ranges)Direct I/O SSTableScanner over a defined collection of ranges of tokens.static ISSTableScannerBigTableScanner. getScanner(SSTableReader sstable, java.util.Collection<Range<Token>> tokenRanges) -
Uses of Token in org.apache.cassandra.locator
Fields in org.apache.cassandra.locator with type parameters of type Token Modifier and Type Field Description static Range<Token>SystemReplicas. FULL_RANGEMethods in org.apache.cassandra.locator that return Token Modifier and Type Method Description static TokenTokenMetadata. firstToken(java.util.ArrayList<Token> ring, Token start)TokenTokenMetadata. getPredecessor(Token token)TokenTokenMetadata. getSuccessor(Token token)TokenTokenMetadata. getToken(InetAddressAndPort endpoint)Deprecated.TokenEndpointsForToken. token()TokenReplicaLayout.ForToken. token()TokenReplicaLayout.ForTokenRead. token()TokenReplicaLayout.ForTokenWrite. token()Methods in org.apache.cassandra.locator that return types with arguments of type Token Modifier and Type Method Description java.util.Map<Range<Token>,Replica>RangesAtEndpoint. byRange()BiMultiValMap<Token,InetAddressAndPort>TokenMetadata. getBootstrapTokens()com.google.common.collect.Multimap<InetAddressAndPort,Token>TokenMetadata. getEndpointToTokenMapForReading()java.util.Set<Pair<Token,InetAddressAndPort>>TokenMetadata. getMovingEndpoints()Endpoints which are migrating to the new tokensjava.util.Map<Token,InetAddressAndPort>TokenMetadata. getNormalAndBootstrappingTokenToEndpointMap()Range<Token>TokenMetadata. getPrimaryRangeFor(Token right)Deprecated.java.util.Collection<Range<Token>>TokenMetadata. getPrimaryRangesFor(java.util.Collection<Token> tokens)java.util.Collection<Token>TokenMetadata. getTokens(InetAddressAndPort endpoint)java.util.Iterator<java.util.Map.Entry<Range<Token>,EndpointsForRange.Builder>>PendingRangeMaps. iterator()Range<Token>EndpointsForRange. range()Range<Token>Replica. range()java.util.Set<Range<Token>>RangesAtEndpoint. ranges()static java.util.Iterator<Token>TokenMetadata. ringIterator(java.util.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)java.util.ArrayList<Token>TokenMetadata. sortedTokens()Methods in org.apache.cassandra.locator with parameters of type Token Modifier and Type Method Description voidTokenMetadata. addBootstrapToken(Token token, InetAddressAndPort endpoint)Deprecated.voidTokenMetadata. addMovingEndpoint(Token token, InetAddressAndPort endpoint)Add a new moving endpointstatic EndpointsForToken.BuilderEndpointsForToken. builder(Token token)static EndpointsForToken.BuilderEndpointsForToken. builder(Token token, int capacity)abstract EndpointsForRangeAbstractReplicationStrategy. calculateNaturalReplicas(Token searchToken, TokenMetadata tokenMetadata)Calculate the natural endpoints for the given token.EndpointsForRangeLocalStrategy. calculateNaturalReplicas(Token token, TokenMetadata metadata)EndpointsForRangeNetworkTopologyStrategy. calculateNaturalReplicas(Token searchToken, TokenMetadata tokenMetadata)calculate endpoints in one pass through the tokens by tracking our progress in each DC.EndpointsForRangeSimpleStrategy. calculateNaturalReplicas(Token token, TokenMetadata metadata)static EndpointsForTokenEndpointsForToken. copyOf(Token token, java.lang.Iterable<Replica> replicas)static EndpointsForTokenEndpointsForToken. copyOf(Token token, java.util.Collection<Replica> replicas)static EndpointsForTokenEndpointsForToken. empty(Token token)static TokenTokenMetadata. firstToken(java.util.ArrayList<Token> ring, Token start)static intTokenMetadata. firstTokenIndex(java.util.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, 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.EndpointsForTokenEndpointsForRange. forToken(Token token)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)EndpointsForRangeAbstractReplicationStrategy. getCachedReplicas(long ringVersion, Token t)InetAddressAndPortTokenMetadata. getEndpoint(Token token)ReplicaAbstractReplicationStrategy. getLocalReplicaFor(Token searchPosition)RangesAtEndpointAbstractReplicationStrategy. getPendingAddressRanges(TokenMetadata metadata, Token pendingToken, InetAddressAndPort pendingAddress)TokenTokenMetadata. getPredecessor(Token token)Range<Token>TokenMetadata. getPrimaryRangeFor(Token right)Deprecated.TokenTokenMetadata. getSuccessor(Token token)EndpointsForTokenTokenMetadata. getWriteEndpoints(Token token, java.lang.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(java.lang.String keyspaceName, Token token)static EndpointsForTokenEndpointsForToken. natural(Keyspace keyspace, Token token)static EndpointsForTokenEndpointsForToken. natural(AbstractReplicationStrategy replicationStrategy, Token token)static EndpointsForTokenEndpointsForToken. natural(TableMetadata table, Token token)static EndpointsForTokenEndpointsForToken. of(Token token, Replica replica)static EndpointsForTokenEndpointsForToken. of(Token token, Replica... replicas)static EndpointsForTokenEndpointsForToken. pending(java.lang.String keyspace, Token token)static EndpointsForTokenEndpointsForToken. pending(Keyspace keyspace, Token token)static EndpointsForTokenEndpointsForToken. pending(TableMetadata table, Token token)EndpointsForTokenPendingRangeMaps. pendingEndpointsFor(Token token)EndpointsForTokenTokenMetadata. pendingEndpointsForToken(Token token, java.lang.String keyspaceName)static java.util.Iterator<Token>TokenMetadata. ringIterator(java.util.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 Token Modifier and Type Method Description voidTokenMetadata. addBootstrapTokens(java.util.Collection<Token> tokens, InetAddressAndPort endpoint)voidPendingRangeMaps. addPendingRange(Range<Token> range, Replica replica)voidTokenMetadata. addReplaceTokens(java.util.Collection<Token> replacingTokens, InetAddressAndPort newNode, InetAddressAndPort oldNode)static EndpointsForRange.BuilderEndpointsForRange. builder(Range<Token> range)static EndpointsForRange.BuilderEndpointsForRange. builder(Range<Token> range, int capacity)booleanRangesAtEndpoint. contains(Range<Token> range, boolean isFull)booleanReplica. contains(Range<Token> that)ReplicaReplica. decorateSubrange(Range<Token> subrange)static EndpointsForRangeEndpointsForRange. empty(Range<Token> range)static TokenTokenMetadata. firstToken(java.util.ArrayList<Token> ring, Token start)static intTokenMetadata. firstTokenIndex(java.util.ArrayList<Token> ring, Token start, boolean insertMin)static ReplicaReplica. fullReplica(InetAddressAndPort endpoint, Range<Token> range)EndpointsForRangeEndpointsByRange. get(Range<Token> range)RangesAtEndpointAbstractReplicationStrategy. getPendingAddressRanges(TokenMetadata metadata, java.util.Collection<Token> pendingTokens, InetAddressAndPort pendingAddress)java.util.Collection<Range<Token>>TokenMetadata. getPrimaryRangesFor(java.util.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(java.util.Collection<Token> tokens)static java.util.Iterator<Token>TokenMetadata. ringIterator(java.util.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(java.lang.String keyspaceName, com.google.common.collect.Multimap<Range<Token>,Replica> rangeMap)RangesAtEndpointReplica. 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(java.util.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(java.util.Collection<Token> tokens, InetAddressAndPort endpoint)Constructors in org.apache.cassandra.locator with parameters of type Token Constructor Description Builder(Token token)Builder(Token token, int capacity)Replica(InetAddressAndPort endpoint, Token start, Token end, boolean full)Constructor parameters in org.apache.cassandra.locator with type arguments of type Token Constructor Description Builder(Range<Token> range)Builder(Range<Token> range, int capacity)EndpointsByRange(java.util.Map<Range<Token>,EndpointsForRange> map)Replica(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 Token Modifier and Type Method Description TopPartitionTracker.TopHolderTopPartitionTracker.TopHolder. merge(TopPartitionTracker.TopHolder holder, java.util.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 Constructor Description Collector(java.util.Collection<Range<Token>> ranges) -
Uses of Token in org.apache.cassandra.repair
Fields in org.apache.cassandra.repair with type parameters of type Token Modifier and Type Field Description java.util.Collection<Range<Token>>CoordinatedRepairResult. failedRangesjava.util.Collection<Range<Token>>CommonRange. rangesjava.util.Collection<Range<Token>>RepairJobDesc. rangesrepairing rangejava.util.Collection<Range<Token>>RepairSessionResult. rangesjava.util.List<Range<Token>>SyncTask. rangesToSyncjava.util.Collection<Range<Token>>CoordinatedRepairResult. skippedRangesjava.util.Collection<Range<Token>>CoordinatedRepairResult. successfulRangesMethods in org.apache.cassandra.repair that return types with arguments of type Token Modifier and Type Method Description abstract java.util.Map<Range<Token>,java.lang.Long>ValidationPartitionIterator. getRangePartitionCounts()java.util.Collection<Range<Token>>RepairSession. ranges()Methods in org.apache.cassandra.repair with parameters of type Token Modifier and Type Method Description booleanValidator. findCorrectRange(Token t)Method parameters in org.apache.cassandra.repair with type arguments of type Token Modifier and Type Method Description static CoordinatedRepairResultCoordinatedRepairResult. create(java.util.List<java.util.Collection<Range<Token>>> ranges, java.util.List<RepairSessionResult> results)ValidationPartitionIteratorTableRepairManager. getValidationIterator(java.util.Collection<Range<Token>> ranges, TimeUUID parentId, TimeUUID sessionID, boolean isIncremental, int nowInSec, TopPartitionTracker.Collector topPartitionCollector)Return a validation iterator for the given parameters.voidTableRepairManager. snapshot(java.lang.String name, java.util.Collection<Range<Token>> ranges, boolean force)For snapshot repairs.Constructor parameters in org.apache.cassandra.repair with type arguments of type Token Constructor Description AsymmetricRemoteSyncTask(RepairJobDesc desc, InetAddressAndPort to, InetAddressAndPort from, java.util.List<Range<Token>> differences, PreviewKind previewKind)CommonRange(java.util.Set<InetAddressAndPort> endpoints, java.util.Set<InetAddressAndPort> transEndpoints, java.util.Collection<Range<Token>> ranges)CommonRange(java.util.Set<InetAddressAndPort> endpoints, java.util.Set<InetAddressAndPort> transEndpoints, java.util.Collection<Range<Token>> ranges, boolean hasSkippedReplicas)CoordinatedRepairResult(java.util.Collection<Range<Token>> successfulRanges, java.util.Collection<Range<Token>> failedRanges, java.util.Collection<Range<Token>> skippedRanges, java.util.List<RepairSessionResult> results)LocalSyncTask(RepairJobDesc desc, InetAddressAndPort local, InetAddressAndPort remote, java.util.List<Range<Token>> diff, TimeUUID pendingRepair, boolean requestRanges, boolean transferRanges, PreviewKind previewKind)RepairJobDesc(TimeUUID parentSessionId, TimeUUID sessionId, java.lang.String keyspace, java.lang.String columnFamily, java.util.Collection<Range<Token>> ranges)RepairOutOfTokenRangeException(java.util.Collection<Range<Token>> ownedRanges)RepairSessionResult(TimeUUID sessionId, java.lang.String keyspace, java.util.Collection<Range<Token>> ranges, java.util.Collection<RepairResult> repairJobResults, boolean skippedReplicas)StreamingRepairTask(RepairJobDesc desc, InetAddressAndPort initiator, InetAddressAndPort src, InetAddressAndPort dst, java.util.Collection<Range<Token>> ranges, TimeUUID pendingRepair, PreviewKind previewKind, boolean asymmetric)SymmetricRemoteSyncTask(RepairJobDesc desc, InetAddressAndPort r1, InetAddressAndPort r2, java.util.List<Range<Token>> differences, PreviewKind previewKind)SyncTask(RepairJobDesc desc, InetAddressAndPort primaryEndpoint, InetAddressAndPort peer, java.util.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 Token Modifier and Type Method Description static java.util.Set<Range<Token>>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}}java.util.Set<java.util.Map.Entry<Range<Token>,T>>RangeMap. entrySet()java.util.NavigableSet<Range<Token>>HostDifferences. get(InetAddressAndPort differingHost)com.google.common.collect.ImmutableMap<Range<Token>,StreamFromOptions>IncomingRepairStreamTracker. getIncoming()java.util.Set<Range<Token>>RangeMap. keySet()java.util.Set<java.util.Map.Entry<Range<Token>,T>>RangeMap. removeIntersecting(Range<Token> range)static java.util.Set<Range<Token>>RangeDenormalizer. subtractAll(java.util.Collection<java.util.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 Token Modifier and Type Method Description voidHostDifferences. add(InetAddressAndPort endpoint, java.util.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)StreamFromOptionsStreamFromOptions. copy(Range<Token> withRange)static java.util.Set<Range<Token>>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?TRangeMap. put(Range<Token> key, T value)voidRangeMap. putAll(java.util.Map<? extends Range<Token>,? extends T> m)java.util.Set<java.util.Map.Entry<Range<Token>,T>>RangeMap. removeIntersecting(Range<Token> range)static java.util.Set<Range<Token>>RangeDenormalizer. subtractAll(java.util.Collection<java.util.Map.Entry<Range<Token>,StreamFromOptions>> ranges, Range<Token> toSubtract)copied from Range - need to iterate over the map entriesstatic java.util.Set<Range<Token>>RangeDenormalizer. subtractAll(java.util.Collection<java.util.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 Token Constructor Description StreamFromOptions(DifferenceHolder differences, Range<Token> range) -
Uses of Token in org.apache.cassandra.repair.consistent
Fields in org.apache.cassandra.repair.consistent with type parameters of type Token Modifier and Type Field Description Range<Token>RepairedState.Section. rangecom.google.common.collect.ImmutableSet<Range<Token>>ConsistentSession. rangesMethods in org.apache.cassandra.repair.consistent that return types with arguments of type Token Modifier and Type Method Description protected java.util.List<Range<Token>>LocalSessions. getLocalRanges(java.lang.String keyspace)Method parameters in org.apache.cassandra.repair.consistent with type arguments of type Token Modifier and Type Method Description voidRepairedState. add(java.util.Collection<Range<Token>> ranges, long repairedAt)CleanupSummaryLocalSessions. cleanup(TableId tid, java.util.Collection<Range<Token>> ranges, boolean force)PendingStatsLocalSessions. getPendingStats(TableId tid, java.util.Collection<Range<Token>> ranges)RepairedState.StatsLocalSessions. getRepairedStats(TableId tid, java.util.Collection<Range<Token>> ranges)RepairedState.StatsRepairedState. getRepairedStats(java.util.Collection<Range<Token>> ranges)booleanConsistentSession. intersects(java.lang.Iterable<Range<Token>> otherRanges)longRepairedState. minRepairedAt(java.util.Collection<Range<Token>> ranges)java.util.List<java.util.Map<java.lang.String,java.lang.String>>LocalSessions. sessionInfo(boolean all, java.util.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 Token Modifier and Type Field Description java.util.Collection<Range<Token>>PrepareMessage. rangesjava.util.Collection<Range<Token>>SyncRequest. rangesMethods in org.apache.cassandra.repair.messages that return types with arguments of type Token Modifier and Type Method Description java.util.Collection<Range<Token>>RepairOption. getRanges()static java.util.Set<Range<Token>>RepairOption. parseRanges(java.lang.String rangesStr, IPartitioner partitioner)Constructor parameters in org.apache.cassandra.repair.messages with type arguments of type Token Constructor Description PrepareMessage(TimeUUID parentRepairSession, java.util.List<TableId> tableIds, java.util.Collection<Range<Token>> ranges, boolean isIncremental, long repairedAt, boolean isGlobal, PreviewKind previewKind)RepairOption(RepairParallelism parallelism, boolean primaryRange, boolean incremental, boolean trace, int jobThreads, java.util.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, java.util.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 Modifier and Type Field Description java.util.Collection<Range<Token>>ParticipateState. ranges -
Uses of Token in org.apache.cassandra.schema
Method parameters in org.apache.cassandra.schema with type arguments of type Token Modifier and Type Method Description static voidSystemDistributedKeyspace. successfulParentRepair(TimeUUID parent_id, java.util.Collection<Range<Token>> successfulRanges) -
Uses of Token in org.apache.cassandra.service
Fields in org.apache.cassandra.service with type parameters of type Token Modifier and Type Field Description Range<Token>TokenRange. rangeMethods in org.apache.cassandra.service that return types with arguments of type Token Modifier and Type Method Description java.util.List<Range<Token>>StorageService. getAllRanges(java.util.List<Token> sortedTokens)Get all ranges that span the ring given a set of tokens.java.util.List<Range<Token>>StorageService. getLocalAndPendingRanges(java.lang.String ks)java.util.Collection<Range<Token>>StorageService. getLocalPrimaryRange()java.util.Collection<Range<Token>>StorageService. getLocalPrimaryRangeForEndpoint(InetAddressAndPort referenceEndpoint)java.util.List<Range<Token>>StorageService. getLocalRanges(java.lang.String ks)java.util.Collection<Token>StorageService. getLocalTokens()java.util.Collection<Range<Token>>StorageService. getPrimaryRangeForEndpointWithinDC(java.lang.String keyspace, InetAddressAndPort referenceEndpoint)Get the "primary ranges" within local DC for the specified keyspace and endpoint.java.util.Collection<Range<Token>>StorageService. getPrimaryRanges(java.lang.String keyspace)java.util.Collection<Range<Token>>StorageService. getPrimaryRangesForEndpoint(java.lang.String keyspace, InetAddressAndPort ep)Get the "primary ranges" for the specified keyspace and endpoint.java.util.Collection<Range<Token>>StorageService. getPrimaryRangesWithinDC(java.lang.String keyspace)java.util.Set<Range<Token>>ActiveRepairService.ParentRepairSession. getRanges()java.util.List<Pair<Range<Token>,java.lang.Long>>StorageService. getSplits(java.lang.String keyspaceName, java.lang.String cfName, Range<Token> range, int keysPerSplit)java.util.Collection<Token>StorageService. getTokensFor(InetAddressAndPort endpoint)Methods in org.apache.cassandra.service with parameters of type Token Modifier and Type Method Description booleanStorageService. isEndpointValidForWrite(java.lang.String keyspace, Token token)Method parameters in org.apache.cassandra.service with type arguments of type Token Modifier and Type Method Description booleanStorageService. bootstrap(java.util.Collection<Token> tokens, long bootstrapTimeoutMillis)Bootstrap node by fetching data from other nodes.static TokenRangeTokenRange. create(Token.TokenFactory tokenFactory, Range<Token> range, java.util.List<InetAddressAndPort> endpoints, boolean withPorts)voidStorageService. finishJoiningRing(boolean didBootstrap, java.util.Collection<Token> tokens)java.util.List<Range<Token>>StorageService. getAllRanges(java.util.List<Token> sortedTokens)Get all ranges that span the ring given a set of tokens.static EndpointsForRangeActiveRepairService. getNeighbors(java.lang.String keyspaceName, java.lang.Iterable<Range<Token>> keyspaceLocalRanges, Range<Token> toRepair, java.util.Collection<java.lang.String> dataCenters, java.util.Collection<java.lang.String> hosts)Return all of the neighbors with whom we share the provided range.static EndpointsForRangeActiveRepairService. getNeighbors(java.lang.String keyspaceName, java.lang.Iterable<Range<Token>> keyspaceLocalRanges, Range<Token> toRepair, java.util.Collection<java.lang.String> dataCenters, java.util.Collection<java.lang.String> hosts)Return all of the neighbors with whom we share the provided range.java.util.List<Pair<Range<Token>,java.lang.Long>>StorageService. getSplits(java.lang.String keyspaceName, java.lang.String cfName, Range<Token> range, int keysPerSplit)voidActiveRepairService. registerParentRepairSession(TimeUUID parentRepairSession, InetAddressAndPort coordinator, java.util.List<ColumnFamilyStore> columnFamilyStores, java.util.Collection<Range<Token>> ranges, boolean isIncremental, long repairedAt, boolean isGlobal, PreviewKind previewKind)Future<?>ActiveRepairService. repairPaxosForTopologyChange(java.lang.String ksName, java.util.Collection<Range<Token>> ranges, java.lang.String reason)voidStorageService. setGossipTokens(java.util.Collection<Token> tokens)voidStorageService. setTokens(java.util.Collection<Token> tokens)This method updates the local token on diskFuture<StreamState>StorageService. startBootstrap(java.util.Collection<Token> tokens)Future<StreamState>StorageService. startBootstrap(java.util.Collection<Token> tokens, boolean replacing)Constructor parameters in org.apache.cassandra.service with type arguments of type Token Constructor Description ParentRepairSession(InetAddressAndPort coordinator, java.util.List<ColumnFamilyStore> columnFamilyStores, java.util.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 Token Modifier and Type Method Description BallotPaxosRepairHistory. ballotForToken(Token token)BallotPaxosRepairHistory.Searcher. ballotForToken(Token token)BallotTablePaxosRepairHistory. getBallotForToken(Token token)Method parameters in org.apache.cassandra.service.paxos with type arguments of type Token Modifier and Type Method Description static PaxosRepairHistoryPaxosRepairHistory. add(PaxosRepairHistory existing, java.util.Collection<Range<Token>> ranges, Ballot ballot)voidTablePaxosRepairHistory. add(java.util.Collection<Range<Token>> ranges, Ballot ballot, boolean flush)PaxosRepairHistoryTablePaxosRepairHistory. getHistoryForRanges(java.util.Collection<Range<Token>> ranges)static booleanPaxosRepair. hasSufficientLiveNodesForTopologyChange(Keyspace keyspace, Range<Token> range, java.util.Collection<InetAddressAndPort> liveEndpoints)checks if we have enough live nodes to perform a paxos repair for topology repair.static booleanPaxosRepair. validatePeerCompatibility(TableMetadata table, java.util.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 Token Modifier and Type Field Description java.util.Collection<Range<Token>>PaxosCleanupRequest. rangesMethod parameters in org.apache.cassandra.service.paxos.cleanup with type arguments of type Token Modifier and Type Method Description static PaxosCleanupLocalCoordinatorPaxosCleanupLocalCoordinator. createForAutoRepair(TableId tableId, java.util.Collection<Range<Token>> ranges)Constructor parameters in org.apache.cassandra.service.paxos.cleanup with type arguments of type Token Constructor Description PaxosCleanupRequest(java.util.UUID session, TableId tableId, java.util.Collection<Range<Token>> ranges)Request(TableId tableId, EndpointState epState, java.util.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 Token Modifier and Type Method Description CloseableIterator<PaxosKeyState>PaxosUncommittedIndex. repairIterator(TableId tableId, java.util.Collection<Range<Token>> ranges)CloseableIterator<PaxosKeyState>PaxosUncommittedTracker.UpdateSupplier. repairIterator(TableId tableId, java.util.Collection<Range<Token>> ranges)CloseableIterator<UncommittedPaxosKey>PaxosUncommittedTracker. uncommittedKeyIterator(TableId tableId, java.util.Collection<Range<Token>> ranges) -
Uses of Token in org.apache.cassandra.streaming
Fields in org.apache.cassandra.streaming with type parameters of type Token Modifier and Type Field Description java.util.Map<java.lang.String,java.util.Set<Range<Token>>>StreamEvent.SessionCompleteEvent. transferredRangesPerKeyspaceConstructor parameters in org.apache.cassandra.streaming with type arguments of type Token Constructor Description StreamReceivedOutOfTokenRangeException(java.util.Collection<Range<Token>> ownedRanges, DecoratedKey key, java.lang.String filename) -
Uses of Token in org.apache.cassandra.utils
Fields in org.apache.cassandra.utils declared as Token Modifier and Type Field Description TokenMerkleTree.RowHash. tokenMethods in org.apache.cassandra.utils that return types with arguments of type Token Modifier and Type Method Description static java.util.List<Range<Token>>MerkleTrees. difference(MerkleTrees ltrees, MerkleTrees rtrees)Get the differences between the two sets of MerkleTrees.java.util.Iterator<java.util.Map.Entry<Range<Token>,MerkleTree>>MerkleTrees. iterator()Get an iterator of all ranges and their MerkleTrees.java.util.Collection<Range<Token>>MerkleTrees. ranges()Get the ranges that these merkle trees covers.Methods in org.apache.cassandra.utils with parameters of type Token Modifier and Type Method Description MerkleTree.TreeRangeMerkleTree. get(Token t)For testing purposes.MerkleTree.TreeRangeMerkleTrees. get(Token t)Get the MerkleTree.Range responsible for the given token.voidMerkleTrees. invalidate(Token t)Invalidate the MerkleTree responsible for the given token.booleanMerkleTree. split(Token t)Splits the range containing the given token, if no tree limits would be violated.booleanMerkleTrees. split(Token t)Split the MerkleTree responsible for the given token.Method parameters in org.apache.cassandra.utils with type arguments of type Token Modifier and Type Method Description MerkleTreeMerkleTrees. addMerkleTree(int maxsize, byte hashdepth, Range<Token> range)MerkleTreeMerkleTrees. addMerkleTree(int maxsize, Range<Token> range)Add a MerkleTree with the defined size and range.voidMerkleTrees. addMerkleTrees(int maxsize, java.util.Collection<Range<Token>> ranges)Add merkle tree's with the defined maxsize and ranges.MerkleTreeMerkleTrees. getMerkleTree(Range<Token> range)Get the MerkleTree responsible for the given token range.byte[]MerkleTrees. hash(Range<Token> range)voidMerkleTrees. init(Range<Token> range)Init a selected MerkleTree with an even tree distribution.voidMerkleTrees. maxsize(Range<Token> range, int maxsize)static voidFBUtilities. sortSampledKeys(java.util.List<DecoratedKey> keys, Range<Token> range)Constructors in org.apache.cassandra.utils with parameters of type Token Constructor Description RowHash(Token token, byte[] hash, long size)Constructor parameters in org.apache.cassandra.utils with type arguments of type Token Constructor Description MerkleTree(IPartitioner partitioner, Range<Token> range, int hashdepth, long maxsize)
-