Class TabletMap


  • @Beta
    public class TabletMap
    extends Object
    Holds currently known tablet mappings. Updated lazily through received custom payloads described in Scylla's CQL protocol extensions (tablets-routing-v1).
    • Method Detail

      • emptyMap

        public static TabletMap emptyMap​(com.datastax.driver.core.Cluster.Manager cluster)
      • getReplicas

        public List<Host> getReplicas​(String keyspace,
                                      String table,
                                      long token)
        Finds hosts that have replicas for a given table and token combination. Meant for use in query planning. Can return empty collection if internal replica list information is determined not up to date.
        Parameters:
        keyspace - the keyspace that table is in
        table - the table name
        token - the token to look for
        Returns:
        List(immutable) of Host instances that do have a tablet for the given token and table combination.
      • getPayloadOuterTuple

        public TupleType getPayloadOuterTuple()
      • getPayloadInnerTuple

        public TupleType getPayloadInnerTuple()
      • removeTableMappings

        public void removeTableMappings​(String keyspace,
                                        String table)
      • removeTableMappings

        public void removeTableMappings​(String keyspace)