@Beta
public interface TabletMap
| Modifier and Type | Method and Description |
|---|---|
void |
addTablet(CqlIdentifier keyspace,
CqlIdentifier table,
Tablet tablet)
Adds a single tablet to the map.
|
ConcurrentMap<KeyspaceTableNamePair,ConcurrentSkipListSet<Tablet>> |
getMapping()
Returns mapping from tables to the sets of their tablets.
|
Tablet |
getTablet(CqlIdentifier keyspace,
CqlIdentifier table,
long token)
Returns
Tablet instance |
void |
removeByKeyspace(CqlIdentifier keyspace)
Removes all mappings for a given keyspace.
|
void |
removeByNode(Node node)
Removes all tablets that contain given node in its replica list.
|
void |
removeByTable(CqlIdentifier table)
Removes all mappings for a given table.
|
ConcurrentMap<KeyspaceTableNamePair,ConcurrentSkipListSet<Tablet>> getMapping()
void addTablet(CqlIdentifier keyspace, CqlIdentifier table, Tablet tablet)
keyspace - target keyspacetable - target tabletablet - tablet instance to addTablet getTablet(CqlIdentifier keyspace, CqlIdentifier table, long token)
Tablet instancekeyspace - tablet's keyspacetable - tablet's tabletoken - target tokenTablet responsible for provided token or null if no such tablet is
present.void removeByNode(Node node)
node - node serving as filter criterionvoid removeByKeyspace(CqlIdentifier keyspace)
keyspace - keyspace to removevoid removeByTable(CqlIdentifier table)
table - table to removeCopyright © 2017–2025. All rights reserved.