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

Packages that use Token
org.apache.cassandra.db   
org.apache.cassandra.dht   
org.apache.cassandra.locator   
org.apache.cassandra.service   
 

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
 Token SystemTable.StorageMetadata.getToken()
           
 

Methods in org.apache.cassandra.db with parameters of type Token
 void SystemTable.StorageMetadata.setToken(Token storageId)
           
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.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 StringToken
           
 

Fields in org.apache.cassandra.dht declared as Token
protected  Token BootStrapper.token
           
 

Methods in org.apache.cassandra.dht that return Token
 Token Token.TokenSerializer.deserialize(java.io.DataInputStream dis)
           
abstract  Token<T> Token.TokenFactory.fromByteArray(byte[] 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 Range.left()
          Returns the left endpoint of a range.
 Token Range.right()
          Returns the right endpoint of a range.
 

Methods in org.apache.cassandra.dht with parameters of type Token
 int BigIntegerToken.compareTo(Token<java.math.BigInteger> o)
           
 int BytesToken.compareTo(Token<byte[]> o)
           
 int StringToken.compareTo(Token<java.lang.String> o)
           
abstract  int Token.compareTo(Token<T> o)
          This determines the comparison for node destination purposes.
 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.isTokenInRanges(Token token, java.lang.Iterable<Range> ranges)
           
 void Token.TokenSerializer.serialize(Token token, java.io.DataOutputStream dos)
           
abstract  byte[] Token.TokenFactory.toByteArray(Token<T> token)
           
abstract  java.lang.String Token.TokenFactory.toString(Token<T> token)
           
 

Constructors in org.apache.cassandra.dht with parameters of type Token
BootStrapper(AbstractReplicationStrategy rs, java.net.InetAddress address, Token token, TokenMetadata tmd)
           
Range(Token left, Token right)
           
Range(Token left, Token right)
           
 

Uses of Token in org.apache.cassandra.locator
 

Methods in org.apache.cassandra.locator that return Token
 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.List<Token> TokenMetadata.sortedTokens()
           
 

Methods in org.apache.cassandra.locator with parameters of type Token
 java.net.InetAddress TokenMetadata.getEndPoint(Token token)
           
 java.util.Map<java.net.InetAddress,java.net.InetAddress> AbstractReplicationStrategy.getHintedEndpoints(Token token, java.util.Collection<java.net.InetAddress> naturalEndpoints)
           
 java.util.ArrayList<java.net.InetAddress> AbstractReplicationStrategy.getNaturalEndpoints(Token token)
           
abstract  java.util.ArrayList<java.net.InetAddress> AbstractReplicationStrategy.getNaturalEndpoints(Token token, TokenMetadata metadata)
           
 java.util.ArrayList<java.net.InetAddress> DatacenterShardStategy.getNaturalEndpoints(Token token, TokenMetadata metadata)
           
 java.util.ArrayList<java.net.InetAddress> RackAwareStrategy.getNaturalEndpoints(Token token, TokenMetadata metadata)
           
 java.util.ArrayList<java.net.InetAddress> RackUnawareStrategy.getNaturalEndpoints(Token token, TokenMetadata metadata)
           
 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> AbstractReplicationStrategy.getWriteEndpoints(Token token, 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.update(Token token, java.net.InetAddress endpoint)
          Update the two maps in an safe mode.
 

Constructor parameters in org.apache.cassandra.locator with type arguments of type Token
DatacenterShardStategy(TokenMetadata tokenMetadata, IPartitioner<Token> partitioner, int replicas)
           
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.getLocalToken()
           
 

Methods in org.apache.cassandra.service with parameters of type Token
 void StorageService.setToken(Token token)
          This method updates the local token on disk
static void StorageService.updateBootstrapRanges(AbstractReplicationStrategy strategy, TokenMetadata metadata, Token token, java.net.InetAddress endpoint)
           
 void StorageService.updateForeignTokenUnsafe(Token token, java.net.InetAddress endpoint)
          for bulk loading clients to be able to use tokenmetadata/messagingservice without fully starting storageservice / systemtable.
 

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.
 



Copyright © 2009 The Apache Software Foundation