Package org.apache.cassandra.dht
Class Splitter.WeightedRange
- java.lang.Object
-
- org.apache.cassandra.dht.Splitter.WeightedRange
-
- Enclosing class:
- Splitter
public static class Splitter.WeightedRange extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description WeightedRange(double weight, Range<Token> range)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
int
hashCode()
Token
left()
Range<Token>
range()
Token
right()
double
size()
A less precise version of the above, returning the size of the span as a double approximation.java.lang.String
toString()
java.math.BigInteger
totalTokens(Splitter splitter)
double
weight()
-
-
-
Method Detail
-
totalTokens
public java.math.BigInteger totalTokens(Splitter splitter)
-
size
public double size()
A less precise version of the above, returning the size of the span as a double approximation.
-
left
public Token left()
-
right
public Token right()
-
weight
public double weight()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-