Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV NEXT | FRAMES NO FRAMES

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

Packages that use Token
org.apache.cassandra.db |
org.apache.cassandra.db.marshal |
org.apache.cassandra.dht |
org.apache.cassandra.gms |
org.apache.cassandra.locator |
org.apache.cassandra.service |
org.apache.cassandra.tools |
org.apache.cassandra.utils |

Uses of Token in org.apache.cassandra.db

Classes in org.apache.cassandra.db with type parameters of type Token
`class` | `DecoratedKey<T extends Token>` Represents a decorated key, handy for certain operations where just working with strings gets slow.

Fields in org.apache.cassandra.db declared as Token
`T` | `DecoratedKey.token`

Methods in org.apache.cassandra.db that return Token
`static Token` | `SystemTable.getSavedToken()`

Methods in org.apache.cassandra.db that return types with arguments of type Token
`static java.util.HashMap<Token,java.net.InetAddress>` | `SystemTable.loadTokens()` Return a map of stored tokens to IP addresses

Methods in org.apache.cassandra.db with parameters of type Token
`static void` | `SystemTable.removeToken(Token token)` Remove stored token being used by another node
`static void` | `SystemTable.updateToken(java.net.InetAddress ep, Token token)` Record token being used by another node
`static void` | `SystemTable.updateToken(Token token)` This method is used to update the System Table with the new token for this node

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

Classes in org.apache.cassandra.db.marshal with type parameters of type Token
`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
`interface` | `IPartitioner<T extends Token>`

Subclasses of Token in org.apache.cassandra.dht
`class` | `BigIntegerToken`
`class` | `BytesToken`
`class` | `LocalToken`
`class` | `StringToken`

Fields in org.apache.cassandra.dht declared as Token
`Token` | `AbstractBounds.left`
`Token` | `AbstractBounds.right`
`protected Token<?>` | `BootStrapper.token`

Methods in org.apache.cassandra.dht that return Token
`Token` | `Token.TokenSerializer.deserialize(java.io.DataInput dis)`
`abstract Token<T>` | `Token.TokenFactory.fromByteArray(java.nio.ByteBuffer bytes)`
`abstract Token<T>` | `Token.TokenFactory.fromString(java.lang.String string)`
`static Token` | `BootStrapper.getBalancedToken(TokenMetadata metadata, java.util.Map<java.net.InetAddress,java.lang.Double> load)`
`static Token` | `BootStrapper.getBootstrapToken(TokenMetadata metadata, java.util.Map<java.net.InetAddress,java.lang.Double> load)` if initialtoken was specified, use that.
`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` | `RandomPartitioner.midpoint(Token ltoken, Token rtoken)`

Methods in org.apache.cassandra.dht that return types with arguments of type Token
`java.util.Map<Token,java.lang.Float>` | `AbstractByteOrderedPartitioner.describeOwnership(java.util.List<Token> sortedTokens)`
`java.util.Map<Token,java.lang.Float>` | `CollatingOrderPreservingPartitioner.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>` | `OrderPreservingPartitioner.describeOwnership(java.util.List<Token> sortedTokens)`
`java.util.Map<Token,java.lang.Float>` | `RandomPartitioner.describeOwnership(java.util.List<Token> sortedTokens)`

Methods in org.apache.cassandra.dht with parameters of type Token
`static int` | `Range.compare(Token left, Token right)`
`static int` | `Range.compare(Token left, Token right)`
`int` | `BigIntegerToken.compareTo(Token<java.math.BigInteger> o)`
`int` | `BytesToken.compareTo(Token<byte[]> o)`
`int` | `LocalToken.compareTo(Token<java.nio.ByteBuffer> o)`
`int` | `StringToken.compareTo(Token<java.lang.String> o)`
`abstract int` | `Token.compareTo(Token<T> o)` This determines the comparison for node destination purposes.
`abstract boolean` | `AbstractBounds.contains(Token start)`
`boolean` | `Bounds.contains(Token token)`
`boolean` | `Range.contains(Token bi)` Helps determine if a given point on the DHT ring is contained in the range in question.
`static boolean` | `Range.contains(Token left, Token right, Token bi)`
`static boolean` | `Range.contains(Token left, Token right, Token bi)`
`static boolean` | `Range.contains(Token left, Token right, Token bi)`
`abstract AbstractBounds` | `AbstractBounds.createFrom(Token right)`
`AbstractBounds` | `Bounds.createFrom(Token token)`
`AbstractBounds` | `Range.createFrom(Token token)`
`static boolean` | `Range.isTokenInRanges(Token token, java.lang.Iterable<Range> ranges)`
`static boolean` | `Range.isWrapAround(Token left, Token right)` Tells if the given range is a wrap around.
`static boolean` | `Range.isWrapAround(Token left, Token right)` Tells if the given range is a wrap around.
`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)`
`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, java.io.DataOutput dos)`
`long` | `Token.TokenSerializer.serializedSize(Token object)`
`Pair<AbstractBounds,AbstractBounds>` | `AbstractBounds.split(Token token)` Given token T and AbstractBounds ?L,R], returns Pair(?L,T], ?T,R]) (where ? means that the same type of Bounds is returned -- Range or Bounds -- as the original.) The original AbstractBounds must contain the token T.
`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
`java.util.Map<Token,java.lang.Float>` | `AbstractByteOrderedPartitioner.describeOwnership(java.util.List<Token> sortedTokens)`
`java.util.Map<Token,java.lang.Float>` | `CollatingOrderPreservingPartitioner.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>` | `OrderPreservingPartitioner.describeOwnership(java.util.List<Token> sortedTokens)`
`java.util.Map<Token,java.lang.Float>` | `RandomPartitioner.describeOwnership(java.util.List<Token> sortedTokens)`

Constructors in org.apache.cassandra.dht with parameters of type Token
`AbstractBounds(Token left, Token right, IPartitioner partitioner)`
`AbstractBounds(Token left, Token right, IPartitioner partitioner)`
`BootStrapper(java.net.InetAddress address, Token token, TokenMetadata tmd)`
`Bounds(Token left, Token right)`
`Bounds(Token left, Token right)`
`Range(Token left, Token right)`
`Range(Token left, Token right)`
`Range(Token left, Token right, IPartitioner partitioner)`
`Range(Token left, Token right, IPartitioner partitioner)`

Uses of Token in org.apache.cassandra.gms

Methods in org.apache.cassandra.gms with parameters of type Token
`void` | `Gossiper.advertiseRemoving(java.net.InetAddress endpoint, Token token, Token mytoken, int delay)` This method will begin removing an existing endpoint from the cluster by spoofing its state This should never be called unless this coordinator has had 'removetoken' invoked
`void` | `Gossiper.advertiseRemoving(java.net.InetAddress endpoint, Token token, Token mytoken, int delay)` This method will begin removing an existing endpoint from the cluster by spoofing its state This should never be called unless this coordinator has had 'removetoken' invoked
`void` | `Gossiper.advertiseTokenRemoved(java.net.InetAddress endpoint, Token token)` Handles switching the endpoint's state from REMOVING_TOKEN to REMOVED_TOKEN This should only be called after advertiseRemoving
`VersionedValue` | `VersionedValue.VersionedValueFactory.bootstrapping(Token token)`
`VersionedValue` | `VersionedValue.VersionedValueFactory.leaving(Token token)`
`VersionedValue` | `VersionedValue.VersionedValueFactory.left(Token token, long expireTime)`
`VersionedValue` | `VersionedValue.VersionedValueFactory.moving(Token token)`
`VersionedValue` | `VersionedValue.VersionedValueFactory.normal(Token token)`
`VersionedValue` | `VersionedValue.VersionedValueFactory.removalCoordinator(Token token)`
`VersionedValue` | `VersionedValue.VersionedValueFactory.removedNonlocal(Token token, long expireTime)`
`VersionedValue` | `VersionedValue.VersionedValueFactory.removingNonlocal(Token token)`

Uses of Token in org.apache.cassandra.locator

Methods in org.apache.cassandra.locator that return Token
`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)`

Methods in org.apache.cassandra.locator that return types with arguments of type Token
`java.util.Set<java.util.Map.Entry<Token,java.net.InetAddress>>` | `TokenMetadata.entrySet()`
`java.util.Map<Token,java.net.InetAddress>` | `TokenMetadata.getBootstrapTokens()` caller should not modify bootstrapTokens
`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.getTokenToEndpointMap()` Return the Token to Endpoint map for all the node in the cluster, including bootstrapping ones.
`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
`void` | `TokenMetadata.addBootstrapToken(Token token, java.net.InetAddress endpoint)`
`void` | `TokenMetadata.addMovingEndpoint(Token token, java.net.InetAddress endpoint)` Add a new moving endpoint
`void` | `AbstractReplicationStrategy.cacheEndpoint(Token t, java.util.ArrayList<java.net.InetAddress> addr)`
`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)`
`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.ArrayList<java.net.InetAddress>` | `AbstractReplicationStrategy.getNaturalEndpoints(Token searchToken)` get the (possibly cached) endpoints that should store the given Token Note that while the endpoints are conceptually a Set (no duplicates will be included), we return a List to avoid an extra allocation when sorting by proximity later
`java.util.Collection<Range>` | `AbstractReplicationStrategy.getPendingAddressRanges(TokenMetadata metadata, Token pendingToken, java.net.InetAddress pendingAddress)`
`Token` | `TokenMetadata.getPredecessor(Token token)`
`Range` | `TokenMetadata.getPrimaryRangeFor(Token right)`
`Token` | `TokenMetadata.getSuccessor(Token token)`
`java.util.Collection<java.net.InetAddress>` | `TokenMetadata.getWriteEndpoints(Token token, java.lang.String table, java.util.Collection<java.net.InetAddress> naturalEndpoints)` write endpoints may be different from read endpoints, because read endpoints only need care about the "natural" nodes for a token, but write endpoints also need to account for nodes that are bootstrapping into the ring, and write data there too so that they stay up to date during the bootstrap process.
`void` | `TokenMetadata.removeBootstrapToken(Token token)`
`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)`

Method parameters in org.apache.cassandra.locator with type arguments of type Token
`static Token` | `TokenMetadata.firstToken(java.util.ArrayList<Token> ring, Token start)`
`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)

Constructor parameters in org.apache.cassandra.locator with type arguments of type Token
`TokenMetadata(com.google.common.collect.BiMap<Token,java.net.InetAddress> tokenToEndpointMap)`

Uses of Token in org.apache.cassandra.service

Methods in org.apache.cassandra.service that return Token
`Token` | `StorageService.getBootstrapToken()` return a token to which if a node bootstraps it will get about 1/2 of this node's range
`Token` | `StorageService.getLocalToken()`

Methods in org.apache.cassandra.service that return types with arguments of type Token
`java.util.Map<Token,java.lang.Float>` | `StorageService.getOwnership()`
`java.util.Map<Token,java.lang.Float>` | `StorageServiceMBean.getOwnership()` given a list of tokens (representing the nodes in the cluster), returns a mapping from "token -> %age of cluster owned by that token"
`java.util.List<Token>` | `StorageService.getSplits(java.lang.String table, java.lang.String cfName, Range range, int keysPerSplit)`
`java.util.Map<Token,java.lang.String>` | `StorageService.getTokenToEndpointMap()`
`java.util.Map<Token,java.lang.String>` | `StorageServiceMBean.getTokenToEndpointMap()` Retrieve a map of tokens to endpoints, including the bootstrapping ones.

Methods in org.apache.cassandra.service with parameters of type Token
`java.util.List<java.net.InetAddress>` | `StorageService.getLiveNaturalEndpoints(java.lang.String table, Token token)`
`java.util.List<java.net.InetAddress>` | `StorageService.getNaturalEndpoints(java.lang.String table, Token token)` This method returns the N endpoints that are responsible for storing the specified key i.e for replication.
`void` | `StorageService.setToken(Token token)` This method updates the local token on disk

Method parameters in org.apache.cassandra.service with type arguments of type Token
`java.util.List<Range>` | `StorageService.getAllRanges(java.util.List<Token> sortedTokens)` Get all ranges that span the ring given a set of tokens.

Uses of Token in org.apache.cassandra.tools

Methods in org.apache.cassandra.tools that return types with arguments of type Token
`java.util.Map<Token,java.lang.Float>` | `NodeProbe.getOwnership()`
`java.util.Map<Token,java.lang.String>` | `NodeProbe.getTokenToEndpointMap()`

Uses of Token in org.apache.cassandra.utils

Fields in org.apache.cassandra.utils declared as Token
`Token` | `MerkleTree.RowHash.token`

Methods in org.apache.cassandra.utils with parameters of type Token
`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.

Constructors in org.apache.cassandra.utils with parameters of type Token
`MerkleTree.RowHash(Token token, byte[] hash)`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV NEXT | FRAMES NO FRAMES

Copyright © 2011 The Apache Software Foundation