public static class TabletMap.Tablet extends Object implements Comparable<TabletMap.Tablet>
compareTo implementation intentionally relies solely on lastToken in order to allow
for quick lookup on sorted Collections based just on the token value.| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(TabletMap.Tablet tablet) |
boolean |
equals(Object o) |
long |
getFirstToken() |
String |
getKeyspaceName() |
long |
getLastToken() |
List<TabletMap.HostShardPair> |
getReplicas() |
UUID |
getTableId() |
String |
getTableName() |
int |
hashCode() |
static TabletMap.Tablet |
malformedTablet(long lastToken)
Creates a
TabletMap.Tablet instance with given lastToken, identical firstToken
and unspecified other fields. |
String |
toString() |
public static TabletMap.Tablet malformedTablet(long lastToken)
TabletMap.Tablet instance with given lastToken, identical firstToken
and unspecified other fields. Used for lookup of sorted collections of proper TabletMap.Tablet.lastToken - TabletMap.Tablet objectpublic String getKeyspaceName()
public UUID getTableId()
public String getTableName()
public long getFirstToken()
public long getLastToken()
public List<TabletMap.HostShardPair> getReplicas()
public int compareTo(TabletMap.Tablet tablet)
compareTo in interface Comparable<TabletMap.Tablet>Copyright © 2012–2025. All rights reserved.