class InOperator extends AbstractOperator implements RelationalOperator {

  @Override
  public Predicate toPredicate(String prop, String val) throws InvalidQueryException {

    if (val == null) {
      throw new InvalidQueryException("IN operator is missing a required right operand for property " + prop);
    }

    String[] tokens = val.split(",");
    List<EqualsPredicate> listPredicates = new ArrayList<>();
    for (String token : tokens) {
      listPredicates.add(new EqualsPredicate<>(prop, token.trim()));
    }
    return listPredicates.size() == 1 ? listPredicates.get(0) :
        buildOrPredicate(listPredicates);
  }

  public  InOperator();

}