Uses of Class org.apache.cassandra.dht.Token (apache-cassandra API)
Date: 2014-10-21

## Uses of Class
org.apache.cassandra.dht.Token

- Packages that use Token
  Package | Description
  --- | ---
  org.apache.cassandra.client |
  org.apache.cassandra.db |
  org.apache.cassandra.db.compaction |
  org.apache.cassandra.db.marshal |
  org.apache.cassandra.dht |
  org.apache.cassandra.gms |
  org.apache.cassandra.io.sstable |
  org.apache.cassandra.locator |
  org.apache.cassandra.repair |
  org.apache.cassandra.repair.messages |
  org.apache.cassandra.service |
  org.apache.cassandra.streaming |
  org.apache.cassandra.utils |

- - ### Uses of Token in org.apache.cassandra.client

    Methods in org.apache.cassandra.client that return types with arguments of type Token
    Modifier and Type | Method and Description
    --- | ---
    `Range<Token>` | RingCache.`getRange(java.nio.ByteBuffer key)`

    Method parameters in org.apache.cassandra.client with type arguments of type Token
    Modifier and Type | Method and Description
    --- | ---
    `java.util.List<java.net.InetAddress>` | RingCache.`getEndpoint(Range<Token> range)` ListMultimap promises to return a List for get(K)

  - ### Uses of Token in org.apache.cassandra.db

    Methods in org.apache.cassandra.db that return Token
    Modifier and Type | Method and Description
    --- | ---
    `Token` | DecoratedKey.`getToken()`

    Methods in org.apache.cassandra.db that return types with arguments of type Token
    Modifier and Type | Method and Description
    --- | ---
    `static java.util.Collection<Token>` | SystemKeyspace.`getSavedTokens()`
    `static com.google.common.collect.SetMultimap<java.net.InetAddress,Token>` | SystemKeyspace.`loadTokens()` Return a map of stored tokens to IP addresses
    `static java.util.Collection<Token>` | SystemKeyspace.`updateLocalTokens(java.util.Collection<Token> addTokens, java.util.Collection<Token> rmTokens)` Convenience method to update the list of tokens in the local system keyspace.

    Method parameters in org.apache.cassandra.db with type arguments of type Token
    Modifier and Type | Method and Description
    --- | ---
    `long` | ColumnFamilyStore.`estimatedKeysForRange(Range<Token> range)`
    `static DataRange` | DataRange.`forKeyRange(Range<Token> keyRange)`
    `java.lang.Iterable<DecoratedKey>` | ColumnFamilyStore.`keySamples(Range<Token> range)`
    `static java.util.Collection<Token>` | SystemKeyspace.`updateLocalTokens(java.util.Collection<Token> addTokens, java.util.Collection<Token> rmTokens)` Convenience method to update the list of tokens in the local system keyspace.
    `static java.util.Collection<Token>` | SystemKeyspace.`updateLocalTokens(java.util.Collection<Token> addTokens, java.util.Collection<Token> rmTokens)` Convenience method to update the list of tokens in the local system keyspace.
    `static void` | SystemKeyspace.`updateTokens(java.util.Collection<Token> tokens)` This method is used to update the System Keyspace with the new tokens for this node
    `static void` | SystemKeyspace.`updateTokens(java.net.InetAddress ep, java.util.Collection<Token> tokens)` Record tokens being used by another node

    Constructors in org.apache.cassandra.db with parameters of type Token
    Constructor and Description
    `BufferDecoratedKey(Token token, java.nio.ByteBuffer key)`
    `DecoratedKey(Token token)`
    `NativeDecoratedKey(Token token, NativeAllocator allocator, OpOrder.Group writeOp, java.nio.ByteBuffer key)`

  - ### Uses of Token in org.apache.cassandra.db.compaction

    Method parameters in org.apache.cassandra.db.compaction with type arguments of type Token
    Modifier and Type | Method and Description
    --- | ---
    `AbstractCompactionStrategy.ScannerList` | AbstractCompactionStrategy.`getScanners(java.util.Collection<SSTableReader> sstables, Range<Token> range)` Returns a list of KeyScanners given sstables and a range on which to scan.
    `AbstractCompactionStrategy.ScannerList` | LeveledCompactionStrategy.`getScanners(java.util.Collection<SSTableReader> sstables, Range<Token> range)`
    `void` | CompactionManager.`performAnticompaction(ColumnFamilyStore cfs, java.util.Collection<Range<Token>> ranges, java.util.Collection<SSTableReader> validatedForRepair, long repairedAt)` Make sure the {validatedForRepair} are marked for compaction before calling this.
    `java.util.concurrent.Future<?>` | CompactionManager.`submitAntiCompaction(ColumnFamilyStore cfs, java.util.Collection<Range<Token>> ranges, java.util.Collection<SSTableReader> validatedForRepair, long repairedAt)`

  - ### Uses of Token in org.apache.cassandra.db.marshal

    Classes in org.apache.cassandra.db.marshal with type parameters of type Token
    Modifier and Type | Class and Description
    --- | ---
    `class` | `LocalByPartionerType<T extends Token>` for sorting columns representing row keys in the row ordering as determined by a partitioner.

  - ### Uses of Token in org.apache.cassandra.dht

    Classes in org.apache.cassandra.dht with type parameters of type Token
    Modifier and Type | Class and Description
    --- | ---
    `class` | `AbstractPartitioner<T extends Token>`
    `interface` | `IPartitioner<T extends Token>`

    Subclasses of Token in org.apache.cassandra.dht
    Modifier and Type | Class and Description
    --- | ---
    `class` | `BigIntegerToken`
    `class` | `BytesToken`
    `class` | `LocalToken`
    `class` | `LongToken`
    `class` | `StringToken`

    Fields in org.apache.cassandra.dht with type parameters of type Token
    Modifier and Type | Field and Description
    --- | ---
    `protected java.util.Collection<Token>` | BootStrapper.`tokens`

    Methods in org.apache.cassandra.dht that return Token
    Modifier and Type | Method and Description
    --- | ---
    `Token` | Token.TokenSerializer.`deserialize(java.io.DataInput in)`
    `abstract Token<T>` | Token.TokenFactory.`fromByteArray(java.nio.ByteBuffer bytes)`
    `abstract Token<T>` | Token.TokenFactory.`fromString(java.lang.String string)`
    `Token` | RingPosition.`getToken()`
    `Token<T>` | Token.`getToken()`
    `Token` | Token.KeyBound.`getToken()`
    `Token` | IPartitioner.`midpoint(Token left, Token right)` Calculate a Token representing the approximate "middle" of the given range.
    `Token` | LocalPartitioner.`midpoint(Token left, Token right)`
    `Token` | Murmur3Partitioner.`midpoint(Token lToken, Token rToken)`
    `Token` | RandomPartitioner.`midpoint(Token ltoken, Token rtoken)`

    Methods in org.apache.cassandra.dht that return types with arguments of type Token
    Modifier and Type | Method and Description
    --- | ---
    `java.util.Map<Token,java.lang.Float>` | AbstractByteOrderedPartitioner.`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)` if initialtoken was specified, use that (split on comma).
    `static java.util.Collection<Token>` | BootStrapper.`getRandomTokens(TokenMetadata metadata, int numTokens)`
    `static com.google.common.collect.Multimap<java.net.InetAddress,Range<Token>>` | RangeStreamer.`getWorkMap(com.google.common.collect.Multimap<Range<Token>,java.net.InetAddress> rangesWithSourceTarget)`
    `abstract AbstractBounds<Token>` | AbstractBounds.`toTokenBounds()` Transform this abstract bounds to a token abstract bounds.
    `AbstractBounds<Token>` | Bounds.`toTokenBounds()`
    `AbstractBounds<Token>` | ExcludingBounds.`toTokenBounds()`
    `AbstractBounds<Token>` | IncludingExcludingBounds.`toTokenBounds()`
    `AbstractBounds<Token>` | Range.`toTokenBounds()`

    Methods in org.apache.cassandra.dht with parameters of type Token
    Modifier and Type | Method and Description
    --- | ---
    `int` | BigIntegerToken.`compareTo(Token<java.math.BigInteger> o)`
    `int` | BytesToken.`compareTo(Token<byte[]> o)`
    `int` | LocalToken.`compareTo(Token<java.nio.ByteBuffer> o)`
    `int` | LongToken.`compareTo(Token<java.lang.Long> o)`
    `int` | StringToken.`compareTo(Token<java.lang.String> o)`
    `abstract int` | Token.`compareTo(Token<T> o)` This determines the comparison for node destination purposes.
    `static Bounds<RowPosition>` | Bounds.`makeRowBounds(Token left, Token right, IPartitioner partitioner)` Compute a bounds of keys corresponding to a given bounds of token.
    `static Bounds<RowPosition>` | Bounds.`makeRowBounds(Token left, Token right, IPartitioner partitioner)` Compute a bounds of keys corresponding to a given bounds of token.
    `static Range<RowPosition>` | Range.`makeRowRange(Token left, Token right, IPartitioner partitioner)` Compute a range of keys corresponding to a given range of token.
    `static Range<RowPosition>` | Range.`makeRowRange(Token left, Token right, IPartitioner partitioner)` Compute a range of keys corresponding to a given range of token.
    `BytesToken` | AbstractByteOrderedPartitioner.`midpoint(Token ltoken, Token rtoken)`
    `BytesToken` | AbstractByteOrderedPartitioner.`midpoint(Token ltoken, Token rtoken)`
    `Token` | IPartitioner.`midpoint(Token left, Token right)` Calculate a Token representing the approximate "middle" of the given range.
    `Token` | IPartitioner.`midpoint(Token left, Token right)` Calculate a Token representing the approximate "middle" of the given range.
    `Token` | LocalPartitioner.`midpoint(Token left, Token right)`
    `Token` | LocalPartitioner.`midpoint(Token left, Token right)`
    `Token` | Murmur3Partitioner.`midpoint(Token lToken, Token rToken)`
    `Token` | Murmur3Partitioner.`midpoint(Token lToken, Token rToken)`
    `StringToken` | OrderPreservingPartitioner.`midpoint(Token ltoken, Token rtoken)`
    `StringToken` | OrderPreservingPartitioner.`midpoint(Token ltoken, Token rtoken)`
    `Token` | RandomPartitioner.`midpoint(Token ltoken, Token rtoken)`
    `Token` | RandomPartitioner.`midpoint(Token ltoken, Token rtoken)`
    `void` | Token.TokenSerializer.`serialize(Token token, DataOutputPlus out)`
    `long` | Token.TokenSerializer.`serializedSize(Token object, TypeSizes typeSizes)`
    `abstract java.nio.ByteBuffer` | Token.TokenFactory.`toByteArray(Token<T> token)`
    `abstract java.lang.String` | Token.TokenFactory.`toString(Token<T> token)`

    Method parameters in org.apache.cassandra.dht with type arguments of type Token
    Modifier and Type | Method and Description
    --- | ---
    `void` | RangeStreamer.`addRanges(java.lang.String keyspaceName, java.util.Collection<Range<Token>> ranges)`
    `java.util.Map<Token,java.lang.Float>` | AbstractByteOrderedPartitioner.`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 com.google.common.collect.Multimap<java.net.InetAddress,Range<Token>>` | RangeStreamer.`getWorkMap(com.google.common.collect.Multimap<Range<Token>,java.net.InetAddress> rangesWithSourceTarget)`

    Constructor parameters in org.apache.cassandra.dht with type arguments of type Token
    Constructor and Description
    `BootStrapper(java.net.InetAddress address, java.util.Collection<Token> tokens, TokenMetadata tmd)`
    `RangeStreamer(TokenMetadata metadata, java.util.Collection<Token> tokens, java.net.InetAddress address, java.lang.String description)`

  - ### 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 and 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 and Description
    --- | ---
    `VersionedValue` | VersionedValue.VersionedValueFactory.`moving(Token token)`

    Method parameters in org.apache.cassandra.gms with type arguments of type Token
    Modifier and Type | Method and Description
    --- | ---
    `VersionedValue` | VersionedValue.VersionedValueFactory.`bootstrapping(java.util.Collection<Token> tokens)`
    `VersionedValue` | VersionedValue.VersionedValueFactory.`leaving(java.util.Collection<Token> tokens)`
    `VersionedValue` | VersionedValue.VersionedValueFactory.`left(java.util.Collection<Token> tokens, long expireTime)`
    `VersionedValue` | VersionedValue.VersionedValueFactory.`normal(java.util.Collection<Token> tokens)`
    `static void` | TokenSerializer.`serialize(IPartitioner partitioner, java.util.Collection<Token> tokens, java.io.DataOutput out)`
    `VersionedValue` | VersionedValue.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 and Description
    --- | ---
    `java.util.Map<java.net.InetAddress,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 and Description
    --- | ---
    `protected void` | SSTableLoader.Client.`addRangeForEndpoint(Range<Token> range, java.net.InetAddress endpoint)`
    `long` | SSTableReader.`estimatedKeysForRanges(java.util.Collection<Range<Token>> ranges)`
    `java.lang.Iterable<DecoratedKey>` | SSTableReader.`getKeySamples(Range<Token> range)`
    `java.util.List<Pair<java.lang.Long,java.lang.Long>>` | 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.
    `ICompactionScanner` | SSTableReader.`getScanner(java.util.Collection<Range<Token>> ranges, com.google.common.util.concurrent.RateLimiter limiter)` Direct I/O SSTableScanner over a defined collection of ranges of tokens.
    `ICompactionScanner` | SSTableReader.`getScanner(Range<Token> range, com.google.common.util.concurrent.RateLimiter limiter)` Direct I/O SSTableScanner over a defined range of tokens.
    `protected java.util.Collection<SSTableReader>` | SSTableLoader.`openSSTables(java.util.Map<java.net.InetAddress,java.util.Collection<Range<Token>>> ranges)`

  - ### Uses of Token in org.apache.cassandra.locator

    Methods in org.apache.cassandra.locator that return Token
    Modifier and Type | Method and Description
    --- | ---
    `static Token` | TokenMetadata.`firstToken(java.util.ArrayList<Token> ring, Token start)`
    `Token` | TokenMetadata.`getPredecessor(Token token)`
    `Token` | TokenMetadata.`getSuccessor(Token token)`
    `Token` | TokenMetadata.`getToken(java.net.InetAddress endpoint)` Deprecated.

    Methods in org.apache.cassandra.locator that return types with arguments of type Token
    Modifier and Type | Method and Description
    --- | ---
    `com.google.common.collect.Multimap<java.net.InetAddress,Range<Token>>` | AbstractReplicationStrategy.`getAddressRanges()`
    `com.google.common.collect.Multimap<java.net.InetAddress,Range<Token>>` | AbstractReplicationStrategy.`getAddressRanges(TokenMetadata metadata)`
    `BiMultiValMap<Token,java.net.InetAddress>` | TokenMetadata.`getBootstrapTokens()`
    `com.google.common.collect.Multimap<java.net.InetAddress,Token>` | TokenMetadata.`getEndpointToTokenMapForReading()`
    `java.util.Set<Pair<Token,java.net.InetAddress>>` | TokenMetadata.`getMovingEndpoints()` Endpoints which are migrating to the new tokens
    `java.util.Map<Token,java.net.InetAddress>` | TokenMetadata.`getNormalAndBootstrappingTokenToEndpointMap()`
    `java.util.Collection<Range<Token>>` | AbstractReplicationStrategy.`getPendingAddressRanges(TokenMetadata metadata, java.util.Collection<Token> pendingTokens, java.net.InetAddress pendingAddress)`
    `java.util.Collection<Range<Token>>` | AbstractReplicationStrategy.`getPendingAddressRanges(TokenMetadata metadata, Token pendingToken, java.net.InetAddress pendingAddress)`
    `java.util.Map<Range<Token>,java.util.Collection<java.net.InetAddress>>` | TokenMetadata.`getPendingRanges(java.lang.String keyspaceName)` a mutable map may be returned but caller should not modify it
    `java.util.List<Range<Token>>` | TokenMetadata.`getPendingRanges(java.lang.String keyspaceName, java.net.InetAddress endpoint)`
    `Range<Token>` | TokenMetadata.`getPrimaryRangeFor(Token right)` Deprecated.
    `java.util.Collection<Range<Token>>` | TokenMetadata.`getPrimaryRangesFor(java.util.Collection<Token> tokens)`
    `com.google.common.collect.Multimap<Range<Token>,java.net.InetAddress>` | AbstractReplicationStrategy.`getRangeAddresses(TokenMetadata metadata)`
    `java.util.Collection<Token>` | TokenMetadata.`getTokens(java.net.InetAddress endpoint)`
    `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 and Description
    --- | ---
    `void` | TokenMetadata.`addBootstrapToken(Token token, java.net.InetAddress endpoint)` Deprecated.
    `void` | TokenMetadata.`addMovingEndpoint(Token token, java.net.InetAddress endpoint)` Add a new moving endpoint
    `abstract java.util.List<java.net.InetAddress>` | AbstractReplicationStrategy.`calculateNaturalEndpoints(Token searchToken, TokenMetadata tokenMetadata)` calculate the natural endpoints for the given token
    `java.util.List<java.net.InetAddress>` | LocalStrategy.`calculateNaturalEndpoints(Token token, TokenMetadata metadata)`
    `java.util.List<java.net.InetAddress>` | NetworkTopologyStrategy.`calculateNaturalEndpoints(Token searchToken, TokenMetadata tokenMetadata)` calculate endpoints in one pass through the tokens by tracking our progress in each DC, rack etc.
    `java.util.List<java.net.InetAddress>` | OldNetworkTopologyStrategy.`calculateNaturalEndpoints(Token token, TokenMetadata metadata)`
    `java.util.List<java.net.InetAddress>` | SimpleStrategy.`calculateNaturalEndpoints(Token token, TokenMetadata metadata)`
    `static Token` | TokenMetadata.`firstToken(java.util.ArrayList<Token> ring, Token start)`
    `static int` | TokenMetadata.`firstTokenIndex(java.util.ArrayList ring, Token start, boolean insertMin)`
    `java.util.ArrayList<java.net.InetAddress>` | AbstractReplicationStrategy.`getCachedEndpoints(Token t)`
    `java.net.InetAddress` | TokenMetadata.`getEndpoint(Token token)`
    `java.util.Collection<Range<Token>>` | AbstractReplicationStrategy.`getPendingAddressRanges(TokenMetadata metadata, Token pendingToken, java.net.InetAddress pendingAddress)`
    `Token` | TokenMetadata.`getPredecessor(Token token)`
    `Range<Token>` | TokenMetadata.`getPrimaryRangeFor(Token right)` Deprecated.
    `Token` | TokenMetadata.`getSuccessor(Token token)`
    `java.util.Collection<java.net.InetAddress>` | TokenMetadata.`getWriteEndpoints(Token token, java.lang.String keyspaceName, java.util.Collection<java.net.InetAddress> naturalEndpoints)` Deprecated. retained for benefit of old tests
    `java.util.Collection<java.net.InetAddress>` | TokenMetadata.`pendingEndpointsFor(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)
    `void` | TokenMetadata.`updateNormalToken(Token token, java.net.InetAddress 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 and Description
    --- | ---
    `void` | TokenMetadata.`addBootstrapTokens(java.util.Collection<Token> tokens, java.net.InetAddress endpoint)`
    `static Token` | TokenMetadata.`firstToken(java.util.ArrayList<Token> ring, Token start)`
    `java.util.Collection<Range<Token>>` | AbstractReplicationStrategy.`getPendingAddressRanges(TokenMetadata metadata, java.util.Collection<Token> pendingTokens, java.net.InetAddress pendingAddress)`
    `java.util.Collection<Range<Token>>` | TokenMetadata.`getPrimaryRangesFor(java.util.Collection<Token> tokens)`
    `void` | TokenMetadata.`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)
    `void` | TokenMetadata.`setPendingRanges(java.lang.String keyspaceName, com.google.common.collect.Multimap<Range<Token>,java.net.InetAddress> rangeMap)`
    `void` | TokenMetadata.`updateNormalTokens(java.util.Collection<Token> tokens, java.net.InetAddress endpoint)`
    `void` | TokenMetadata.`updateNormalTokens(com.google.common.collect.Multimap<java.net.InetAddress,Token> endpointTokens)` Update token map with a set of token/endpoint pairs in normal state.

  - ### Uses of Token in org.apache.cassandra.repair

    Fields in org.apache.cassandra.repair with type parameters of type Token
    Modifier and Type | Field and Description
    --- | ---
    `java.util.List<Range<Token>>` | Differencer.`differences`
    `Range<Token>` | RepairJobDesc.`range` repairing range
    `Range<Token>` | RepairSession.`range` Range to repair

    Methods in org.apache.cassandra.repair that return types with arguments of type Token
    Modifier and Type | Method and Description
    --- | ---
    `Range<Token>` | RepairSession.`getRange()`

    Constructor parameters in org.apache.cassandra.repair with type arguments of type Token
    Constructor and Description
    `RepairJob(IRepairJobEventListener listener, java.util.UUID parentSessionId, java.util.UUID sessionId, java.lang.String keyspace, java.lang.String columnFamily, Range<Token> range, boolean isSequential, com.google.common.util.concurrent.ListeningExecutorService taskExecutor)` Create repair job to run on specific columnfamily
    `RepairJobDesc(java.util.UUID parentSessionId, java.util.UUID sessionId, java.lang.String keyspace, java.lang.String columnFamily, Range<Token> range)`
    `RepairSession(java.util.UUID parentRepairSession, Range<Token> range, java.lang.String keyspace, boolean isSequential, java.util.Set<java.net.InetAddress> endpoints, java.lang.String... cfnames)` Create new repair session.
    `RepairSession(java.util.UUID parentRepairSession, java.util.UUID id, Range<Token> range, java.lang.String keyspace, boolean isSequential, java.util.Set<java.net.InetAddress> endpoints, java.lang.String[] cfnames)`

  - ### 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 and Description
    --- | ---
    `java.util.Collection<Range<Token>>` | PrepareMessage.`ranges`
    `java.util.Collection<Range<Token>>` | SyncRequest.`ranges`

    Constructor parameters in org.apache.cassandra.repair.messages with type arguments of type Token
    Constructor and Description
    `PrepareMessage(java.util.UUID parentRepairSession, java.util.List<java.util.UUID> cfIds, java.util.Collection<Range<Token>> ranges)`
    `SyncRequest(RepairJobDesc desc, java.net.InetAddress initiator, java.net.InetAddress src, java.net.InetAddress dst, java.util.Collection<Range<Token>> ranges)`

  - ### Uses of Token in org.apache.cassandra.service

    Fields in org.apache.cassandra.service with type parameters of type Token
    Modifier and Type | Field and Description
    --- | ---
    `java.util.Collection<Range<Token>>` | ActiveRepairService.ParentRepairSession.`ranges`

    Methods in org.apache.cassandra.service that return types with arguments of type Token
    Modifier and Type | Method and Description
    --- | ---
    `Pair<java.util.Set<Range<Token>>,java.util.Set<Range<Token>>>` | StorageService.`calculateStreamAndFetchRanges(java.util.Collection<Range<Token>> current, java.util.Collection<Range<Token>> updated)` Calculate pair of ranges to stream/fetch for given two range collections (current ranges for keyspace and ranges after move to new token)
    `Pair<java.util.Set<Range<Token>>,java.util.Set<Range<Token>>>` | StorageService.`calculateStreamAndFetchRanges(java.util.Collection<Range<Token>> current, java.util.Collection<Range<Token>> updated)` Calculate pair of ranges to stream/fetch for given two range collections (current ranges for keyspace and ranges after move to new token)
    `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.Collection<Range<Token>>` | StorageService.`getLocalRanges(java.lang.String keyspaceName)`
    `java.util.Collection<Token>` | StorageService.`getLocalTokens()`
    `java.util.Collection<Range<Token>>` | StorageService.`getPrimaryRangeForEndpointWithinDC(java.lang.String keyspace, java.net.InetAddress 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, java.net.InetAddress ep)` Get the "primary ranges" for the specified keyspace and endpoint.
    `java.util.Collection<Range<Token>>` | StorageService.`getPrimaryRangesWithinDC(java.lang.String keyspace)`
    `java.util.Map<Range<Token>,java.util.List<java.net.InetAddress>>` | StorageService.`getRangeToAddressMap(java.lang.String keyspace)`
    `java.util.Map<Range<Token>,java.util.List<java.net.InetAddress>>` | StorageService.`getRangeToAddressMapInLocalDC(java.lang.String keyspace)`
    `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.`prepareReplacementInfo()`

    Method parameters in org.apache.cassandra.service with type arguments of type Token
    Modifier and Type | Method and Description
    --- | ---
    `Pair<java.util.Set<Range<Token>>,java.util.Set<Range<Token>>>` | StorageService.`calculateStreamAndFetchRanges(java.util.Collection<Range<Token>> current, java.util.Collection<Range<Token>> updated)` Calculate pair of ranges to stream/fetch for given two range collections (current ranges for keyspace and ranges after move to new token)
    `Pair<java.util.Set<Range<Token>>,java.util.Set<Range<Token>>>` | StorageService.`calculateStreamAndFetchRanges(java.util.Collection<Range<Token>> current, java.util.Collection<Range<Token>> updated)` Calculate pair of ranges to stream/fetch for given two range collections (current ranges for keyspace and ranges after move to new token)
    `int` | StorageService.`forceRepairAsync(java.lang.String keyspace, boolean isSequential, boolean isLocal, java.util.Collection<Range<Token>> ranges, boolean fullRepair, java.lang.String... columnFamilies)`
    `int` | StorageService.`forceRepairAsync(java.lang.String keyspace, boolean isSequential, java.util.Collection<java.lang.String> dataCenters, java.util.Collection<java.lang.String> hosts, java.util.Collection<Range<Token>> ranges, boolean fullRepair, java.lang.String... columnFamilies)`
    `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 java.util.Set<java.net.InetAddress>` | ActiveRepairService.`getNeighbors(java.lang.String keyspaceName, 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)`
    `java.util.UUID` | ActiveRepairService.`prepareForRepair(java.util.Set<java.net.InetAddress> endpoints, java.util.Collection<Range<Token>> ranges, java.util.List<ColumnFamilyStore> columnFamilyStores)`
    `void` | ActiveRepairService.`registerParentRepairSession(java.util.UUID parentRepairSession, java.util.List<ColumnFamilyStore> columnFamilyStores, java.util.Collection<Range<Token>> ranges)`
    `void` | StorageService.`setTokens(java.util.Collection<Token> tokens)` This method updates the local token on disk
    `RepairFuture` | ActiveRepairService.`submitRepairSession(java.util.UUID parentRepairSession, Range<Token> range, java.lang.String keyspace, boolean isSequential, java.util.Set<java.net.InetAddress> endpoints, java.lang.String... cfnames)` Requests repairs for the given keyspace and column families.

    Constructor parameters in org.apache.cassandra.service with type arguments of type Token
    Constructor and Description
    `ActiveRepairService.ParentRepairSession(java.util.List<ColumnFamilyStore> columnFamilyStores, java.util.Collection<Range<Token>> ranges, java.util.Map<java.util.UUID,java.util.Set<SSTableReader>> sstables, long repairedAt)`

  - ### Uses of Token in org.apache.cassandra.streaming

    Fields in org.apache.cassandra.streaming with type parameters of type Token
    Modifier and Type | Field and Description
    --- | ---
    `java.util.Collection<Range<Token>>` | StreamRequest.`ranges`

    Method parameters in org.apache.cassandra.streaming with type arguments of type Token
    Modifier and Type | Method and Description
    --- | ---
    `void` | StreamSession.`addStreamRequest(java.lang.String keyspace, java.util.Collection<Range<Token>> ranges, java.util.Collection<java.lang.String> columnFamilies, long repairedAt)` Request data fetch task to this session.
    `void` | StreamSession.`addTransferRanges(java.lang.String keyspace, java.util.Collection<Range<Token>> ranges, java.util.Collection<java.lang.String> columnFamilies, boolean flushTables, long repairedAt)` Set up transfer for specific keyspace/ranges/CFs Used in repair - a streamed sstable in repair will be marked with the given repairedAt time
    `StreamPlan` | StreamPlan.`requestRanges(java.net.InetAddress from, java.net.InetAddress connecting, java.lang.String keyspace, java.util.Collection<Range<Token>> ranges)` Request data in `keyspace` and `ranges` from specific node.
    `StreamPlan` | StreamPlan.`requestRanges(java.net.InetAddress from, java.net.InetAddress connecting, java.lang.String keyspace, java.util.Collection<Range<Token>> ranges, java.lang.String... columnFamilies)` Request data in `columnFamilies` under `keyspace` and `ranges` from specific node.
    `StreamPlan` | StreamPlan.`transferRanges(java.net.InetAddress to, java.net.InetAddress connecting, java.lang.String keyspace, java.util.Collection<Range<Token>> ranges)` Add transfer task to send data of specific keyspace and ranges.
    `StreamPlan` | StreamPlan.`transferRanges(java.net.InetAddress to, java.net.InetAddress connecting, java.lang.String keyspace, java.util.Collection<Range<Token>> ranges, java.lang.String... columnFamilies)` Add transfer task to send data of specific `columnFamilies` under `keyspace` and `ranges`.
    `StreamPlan` | StreamPlan.`transferRanges(java.net.InetAddress to, java.lang.String keyspace, java.util.Collection<Range<Token>> ranges, java.lang.String... columnFamilies)` Add transfer task to send data of specific `columnFamilies` under `keyspace` and `ranges`.

    Constructor parameters in org.apache.cassandra.streaming with type arguments of type Token
    Constructor and Description
    `StreamRequest(java.lang.String keyspace, java.util.Collection<Range<Token>> ranges, java.util.Collection<java.lang.String> columnFamilies, long repairedAt)`

  - ### Uses of Token in org.apache.cassandra.utils

    Fields in org.apache.cassandra.utils declared as Token
    Modifier and Type | Field and Description
    --- | ---
    `Token` | MerkleTree.RowHash.`token`

    Fields in org.apache.cassandra.utils with type parameters of type Token
    Modifier and Type | Field and Description
    --- | ---
    `Range<Token>` | MerkleTree.`fullRange` The top level range that this MerkleTree covers.

    Methods in org.apache.cassandra.utils with parameters of type Token
    Modifier and Type | Method and Description
    --- | ---
    `MerkleTree.TreeRange` | MerkleTree.`get(Token t)` For testing purposes.
    `void` | MerkleTree.`invalidate(Token t)` Invalidates the ranges containing the given token.
    `boolean` | MerkleTree.`split(Token t)` Splits the range containing the given token, if no tree limits would be violated.

    Method parameters in org.apache.cassandra.utils with type arguments of type Token
    Modifier and Type | Method and Description
    --- | ---
    `byte[]` | MerkleTree.`hash(Range<Token> range)` Hash the given range in the tree.
    `static void` | FBUtilities.`sortSampledKeys(java.util.List<DecoratedKey> keys, Range<Token> range)`

    Constructors in org.apache.cassandra.utils with parameters of type Token
    Constructor and Description
    `MerkleTree.RowHash(Token token, byte[] hash, long size)`
    `MerkleTree.TreeDifference(Token left, Token right, byte depth)`
    `MerkleTree.TreeDifference(Token left, Token right, byte depth)`

    Constructor parameters in org.apache.cassandra.utils with type arguments of type Token
    Constructor and Description
    `MerkleTree(IPartitioner partitioner, Range<Token> range, byte hashdepth, long maxsize)`

Copyright © 2014 The Apache Software Foundation