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
 

Methods in org.apache.cassandra.db that return Token
 Token DBManager.StorageMetadata.getStorageId()
           
 

Methods in org.apache.cassandra.db with parameters of type Token
 void DBManager.StorageMetadata.setStorageId(Token storageId)
           
 void SystemTable.updateToken(Token token)
           
 

Uses of Token in org.apache.cassandra.dht
 

Subclasses of Token in org.apache.cassandra.dht
 class BigIntegerToken
           
 class StringToken
           
 

Fields in org.apache.cassandra.dht declared as Token
protected  Token[] BootStrapper.tokens_
           
protected  Token[] LeaveJoinProtocolImpl.tokens_
           
 

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)
           
 Token IPartitioner.getDefaultToken()
           
 Token IPartitioner.getInitialToken(java.lang.String key)
           
 Token OrderPreservingPartitioner.getInitialToken(java.lang.String key)
           
 Token RandomPartitioner.getInitialToken(java.lang.String key)
           
 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 StringToken.compareTo(Token<java.lang.String> o)
           
 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.util.List<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(EndPoint[] target, Token... token)
           
BootStrapper(EndPoint[] target, Token[] token, EndPoint[] filters)
           
LeaveJoinProtocolImpl(EndPoint[] targets, Token[] tokens)
           
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.getToken(EndPoint endpoint)
           
 

Methods in org.apache.cassandra.locator that return types with arguments of type Token
 java.util.Map<EndPoint,Token> TokenMetadata.cloneEndPointTokenMap()
           
 java.util.Map<Token,EndPoint> TokenMetadata.cloneTokenEndPointMap()
           
 

Methods in org.apache.cassandra.locator with parameters of type Token
 java.util.Map<EndPoint,EndPoint> AbstractStrategy.getHintedStorageEndPoints(Token token)
           
 java.util.Map<EndPoint,EndPoint> IReplicaPlacementStrategy.getHintedStorageEndPoints(Token token)
           
abstract  EndPoint[] AbstractStrategy.getStorageEndPoints(Token token)
           
 EndPoint[] IReplicaPlacementStrategy.getStorageEndPoints(Token token)
           
 EndPoint[] RackAwareStrategy.getStorageEndPoints(Token token)
           
 EndPoint[] RackUnawareStrategy.getStorageEndPoints(Token token)
           
 EndPoint[] IReplicaPlacementStrategy.getStorageEndPoints(Token token, java.util.Map<Token,EndPoint> tokenToEndPointMap)
           
 EndPoint[] RackAwareStrategy.getStorageEndPoints(Token token, java.util.Map<Token,EndPoint> tokenToEndPointMap)
           
 EndPoint[] RackUnawareStrategy.getStorageEndPoints(Token token, java.util.Map<Token,EndPoint> tokenToEndPointMap)
           
 void TokenMetadata.update(Token token, EndPoint endpoint)
          Update the two maps in an safe mode.
 

Method parameters in org.apache.cassandra.locator with type arguments of type Token
 EndPoint[] IReplicaPlacementStrategy.getStorageEndPoints(Token token, java.util.Map<Token,EndPoint> tokenToEndPointMap)
           
 EndPoint[] RackAwareStrategy.getStorageEndPoints(Token token, java.util.Map<Token,EndPoint> tokenToEndPointMap)
           
 EndPoint[] RackUnawareStrategy.getStorageEndPoints(Token token, java.util.Map<Token,EndPoint> tokenToEndPointMap)
           
 

Uses of Token in org.apache.cassandra.service
 

Methods in org.apache.cassandra.service with parameters of type Token
 EndPoint[] StorageService.getNStorageEndPoint(Token token)
          This method returns the N endpoints that are responsible for storing the specified token i.e for replication.
protected  EndPoint[] StorageService.getNStorageEndPoint(Token token, java.util.Map<Token,EndPoint> tokenToEndPointMap)
          This method returns the N endpoints that are responsible for storing the specified token i.e for replication and are based on the token to endpoint mapping that is passed in.
 void StorageService.updateToken(Token token)
           
 void StorageService.updateTokenMetadata(Token token, EndPoint endpoint)
           
 

Method parameters in org.apache.cassandra.service with type arguments of type Token
 java.util.Map<Range,java.util.List<EndPoint>> StorageService.constructRangeToEndPointMap(Range[] ranges, java.util.Map<Token,EndPoint> tokenToEndPointMap)
          Construct the range to endpoint mapping based on the view as dictated by the mapping of token to endpoints passed in.
 Range[] StorageService.getAllRanges(java.util.Set<Token> tokens)
          Get all ranges that span the ring given a set of tokens.
protected  EndPoint[] StorageService.getNStorageEndPoint(Token token, java.util.Map<Token,EndPoint> tokenToEndPointMap)
          This method returns the N endpoints that are responsible for storing the specified token i.e for replication and are based on the token to endpoint mapping that is passed in.
 



Copyright © 2009 The Apache Software Foundation