public IndexShardRoutingTable(ShardId shardId,ShardRouting shard){
  List<ShardRouting> singleton=Collections.singletonList(shard);
  this.shardId=shardId;
  this.shards=singleton;
  this.allShardsStarted=shard.started();
  this.primary=shard;
  this.primaryAsList=singleton;
  this.replicas=EMPTY_LIST;
  this.activeShards=(shard.active()) ? singleton : EMPTY_LIST;
  this.allInitializingShards=(shard.initializing()) ? singleton : EMPTY_LIST;
  this.assignedShards=(shard.assignedToNode()) ? singleton : EMPTY_LIST;
  this.shuffler=DUMMY_SHARD_SHUFFLER;
}

public IndexShardRoutingTable ( ShardId shardId , ShardRouting shard ) { List < ShardRouting > singleton = Collections . singletonList ( shard ) ; this . shardId = shardId ; this . shards = singleton ; this . allShardsStarted = shard . started ( ) ; this . primary = shard ; this . primaryAsList = singleton ; this . replicas = EMPTY_LIST ; this . activeShards = ( shard . active ( ) ) ? singleton : EMPTY_LIST ; this . allInitializingShards = ( shard . initializing ( ) ) ? singleton : EMPTY_LIST ; this . assignedShards = ( shard . assignedToNode ( ) ) ? singleton : EMPTY_LIST ; this . shuffler = DUMMY_SHARD_SHUFFLER ; }
elassandra default ctor for single primary shard indexshardroutingtable
