}
private void calculateEndpointBytes() {
watch.reset();
watch.start();
AffinityCalculator ac = new AffinityCalculator(fs, availableEndpoints);
for (RowGroupInfo e : rowGroupInfos) {
ac.setEndpointBytes(e);
totalBytes += e.getLength();
}
watch.stop();
logger.debug("Took {} ms to calculate EndpointBytes", watch.elapsed(TimeUnit.MILLISECONDS));
}