Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.cassandra.dht
Class Token<T>

    java.lang.Object
      org.apache.cassandra.dht.Token<T>

All Implemented Interfaces:
  java.io.Serializable, java.lang.Comparable<Token<T>>, RingPosition<Token<T>>

Direct Known Subclasses:
  BigIntegerToken, BytesToken, LocalToken, StringToken

    public abstract class Token<T>

extends java.lang.Object
implements RingPosition<Token<T>>, java.io.Serializable

See Also:
  Serialized Form

Nested Class Summary
`static class` | `Token.KeyBound`
`static class` | `Token.TokenFactory<T>`
`static class` | `Token.TokenSerializer`

Field Summary
`T` | `token`

Constructor Summary
`protected` | `Token(T token)`

Method Summary
`abstract int` | `compareTo(Token<T> o)` This determines the comparison for node destination purposes.
`boolean` | `equals(java.lang.Object obj)`
`Token<T>` | `getToken()`
`int` | `hashCode()`
`boolean` | `isMinimum()`
`boolean` | `isMinimum(IPartitioner partitioner)`
`Token.KeyBound` | `maxKeyBound()`
`Token.KeyBound` | `maxKeyBound(IPartitioner partitioner)`
`Token.KeyBound` | `minKeyBound()`
`Token.KeyBound` | `minKeyBound(IPartitioner partitioner)`
`static Token.TokenSerializer` | `serializer()`
`java.lang.String` | `toString()`
`
`<T extends RingPosition> T`
` | `upperBound(java.lang.Class<T> klass)`

Methods inherited from class java.lang.Object
`clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

Field Detail

### token

    public final T token

Constructor Detail

### Token

    protected Token(T token)

Method Detail

### serializer

    public static Token.TokenSerializer serializer()

### compareTo

    public abstract int compareTo(Token<T> o)

  This determines the comparison for node destination purposes.

  Specified by:
    `compareTo` in interface `java.lang.Comparable<Token<T>>`

### toString

    public java.lang.String toString()

  Overrides:
    `toString` in class `java.lang.Object`

### equals

    public boolean equals(java.lang.Object obj)

  Overrides:
    `equals` in class `java.lang.Object`

### hashCode

    public int hashCode()

  Overrides:
    `hashCode` in class `java.lang.Object`

### getToken

    public Token<T> getToken()

  Specified by:
    `getToken` in interface `RingPosition<Token<T>>`

### isMinimum

    public boolean isMinimum(IPartitioner partitioner)

  Specified by:
    `isMinimum` in interface `RingPosition<Token<T>>`

### isMinimum

    public boolean isMinimum()

### minKeyBound

    public Token.KeyBound minKeyBound(IPartitioner partitioner)

### minKeyBound

    public Token.KeyBound minKeyBound()

### maxKeyBound

    public Token.KeyBound maxKeyBound(IPartitioner partitioner)

### maxKeyBound

    public Token.KeyBound maxKeyBound()

### upperBound

    public <T extends RingPosition> T upperBound(java.lang.Class<T> klass)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2013 The Apache Software Foundation