if (tuple == null) {
return null;
}
String field = tuple.v1().info().ident().columnIdent().fqn();
Literal literal = tuple.v2();
CollectionType dataType = ((CollectionType) literal.valueType());
QueryBuilderHelper builder = QueryBuilderHelper.forType(dataType.innerType());
BooleanQuery booleanQuery = new BooleanQuery();
Set values = (Set) literal.value();
for (Object value : values) {
booleanQuery.add(builder.eq(field, value), BooleanClause.Occur.SHOULD);
}