Package org.apache.cassandra.locator

Examples of org.apache.cassandra.locator.DatacenterShardStrategy



    @Override
    protected int determineBlockFor(String table)
    {
        DatacenterShardStrategy strategy = (DatacenterShardStrategy) StorageService.instance.getReplicationStrategy(table);
        return (strategy.getReplicationFactor(localdc) / 2) + 1;
    }
View Full Code Here


    }
   
    @Override
    public int determineBlockFor(ConsistencyLevel consistency_level, String table)
  {
    DatacenterShardStrategy stategy = (DatacenterShardStrategy) StorageService.instance.getReplicationStrategy(table);
    return (stategy.getReplicationFactor(localdc) / 2) + 1;
  }
View Full Code Here

TOP

Related Classes of org.apache.cassandra.locator.DatacenterShardStrategy

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.