protected RangeForQuery computeNext() { if (!ranges.hasNext()) { return endOfData(); } AbstractBounds<PartitionPosition> range = ranges.next(); List<InetAddress> liveEndpoints = StorageProxy.getLiveSortedEndpoints(keyspace, range.right); return new RangeForQuery(range, liveEndpoints, consistency.filterForQuery(keyspace, liveEndpoints)); } }
protected RangeForQuery computeNext() { if (!ranges.hasNext()) return endOfData(); AbstractBounds<PartitionPosition> range = ranges.next(); List<InetAddress> liveEndpoints = getLiveSortedEndpoints(keyspace, range.right); return new RangeForQuery(range, liveEndpoints, consistency.filterForQuery(keyspace, liveEndpoints)); } }
protected RangeForQuery computeNext() { if (!ranges.hasNext()) return endOfData(); AbstractBounds<PartitionPosition> range = ranges.next(); List<InetAddress> liveEndpoints = getLiveSortedEndpoints(keyspace, range.right); return new RangeForQuery(range, liveEndpoints, consistency.filterForQuery(keyspace, liveEndpoints)); } }
public static List<InetAddress> getLiveSortedEndpoints(Keyspace keyspace, ByteBuffer key) { return getLiveSortedEndpoints(keyspace, StorageService.instance.getTokenMetadata().decorateKey(key)); }
protected RangeForQuery computeNext() { if (!ranges.hasNext()) return endOfData(); AbstractBounds<PartitionPosition> range = ranges.next(); List<InetAddress> liveEndpoints = getLiveSortedEndpoints(keyspace, range.right); return new RangeForQuery(range, liveEndpoints, consistency.filterForQuery(keyspace, liveEndpoints)); } }
public static List<InetAddress> getLiveSortedEndpoints(Keyspace keyspace, ByteBuffer key) { return getLiveSortedEndpoints(keyspace, StorageService.instance.getTokenMetadata().decorateKey(key)); }
public static List<InetAddress> getLiveSortedEndpoints(Keyspace keyspace, ByteBuffer key) { return getLiveSortedEndpoints(keyspace, StorageService.getPartitioner().decorateKey(key)); }
public static List<InetAddress> getLiveSortedEndpoints(Keyspace keyspace, ByteBuffer key) { return getLiveSortedEndpoints(keyspace, StorageService.instance.getTokenMetadata().decorateKey(key)); }
List<InetAddress> allReplicas = StorageProxy.getLiveSortedEndpoints(keyspace, command.partitionKey());
List<InetAddress> allReplicas = StorageProxy.getLiveSortedEndpoints(keyspace, command.partitionKey());
List<InetAddress> allReplicas = StorageProxy.getLiveSortedEndpoints(keyspace, command.key); ReadRepairDecision repairDecision = Schema.instance.getCFMetaData(command.ksName, command.cfName).newReadRepairDecision(); List<InetAddress> targetReplicas = consistencyLevel.filterForQuery(keyspace, allReplicas, repairDecision);
List<InetAddress> allReplicas = StorageProxy.getLiveSortedEndpoints(keyspace, command.partitionKey());
: nextRange; List<InetAddress> liveEndpoints = nextEndpoints == null ? getLiveSortedEndpoints(keyspace, range.right) : nextEndpoints; List<InetAddress> filteredEndpoints = nextFilteredEndpoints == null nextEndpoints = getLiveSortedEndpoints(keyspace, nextRange.right); nextFilteredEndpoints = consistency_level.filterForQuery(keyspace, nextEndpoints);