private Pair<AtomicInteger, ConcurrentLinkedQueue<RowMutation>> getMutationQueue(String indexName)
{
Pair<AtomicInteger, ConcurrentLinkedQueue<RowMutation>> mutationQ = mutationList.get(indexName);
if (mutationQ == null)
{
mutationQ = new Pair<AtomicInteger, ConcurrentLinkedQueue<RowMutation>>(new AtomicInteger(0),
new ConcurrentLinkedQueue<RowMutation>());
Pair<AtomicInteger, ConcurrentLinkedQueue<RowMutation>> liveQ = mutationList
.putIfAbsent(indexName, mutationQ);
if (liveQ != null)
mutationQ = liveQ;
}
return mutationQ;
}