primaryKeyValuesList.add(new ArrayList<BytesRef>(context.table().primaryKey().size()));
for (int i=0; i<primaryKeyLiterals.size(); i++) {
Object primaryKey = primaryKeyLiterals.get(i);
if (primaryKey instanceof Literal) {
Literal pkLiteral = (Literal)primaryKey;
// support e.g. pk IN (Value..,)
if (pkLiteral.valueType().id() == SetType.ID) {
Set<Literal> literals = Sets.newHashSet(Literal.explodeCollection(pkLiteral));
Iterator<Literal> literalIterator = literals.iterator();
for (int s=0; s<literals.size(); s++) {
Literal pk = literalIterator.next();
if (s >= primaryKeyValuesList.size()) {
// copy already parsed pk values, so we have all possible multiple pk for all sets
primaryKeyValuesList.add(Lists.newArrayList(primaryKeyValuesList.get(s - 1)));
}
List<BytesRef> primaryKeyValues = primaryKeyValuesList.get(s);