/** * Lazy initializes a set (for fast searching) of IN values. * * @return a hash set appropriate for IN clause evaluation */ private Set<?> getInValues() { if (_inValues == null) { if (_operand instanceof Set) { _inValues = (Set<?>) _operand; } else { List<?> list = CollectionUtils.toList(_operand); _inValues = new HashSet<Object>(list); } } return _inValues; }
/** * Lazy initializes a set (for fast searching) of IN values. * * @return a hash set appropriate for IN clause evaluation */ private Set<?> getInValues() { if (_inValues == null) { if (_operand instanceof Set) { _inValues = (Set<?>) _operand; } else { List<?> list = CollectionUtils.toList(_operand); _inValues = new HashSet<Object>(list); } } return _inValues; }
public static Object appendOperator(StringBuilder sb, Object operand, OperatorType operator) { sb.append(' '); sb.append(operator.toSql()); sb.append(' '); if (operator == OperatorType.IN || operator == OperatorType.NOT_IN) { operand = CollectionUtils.toList(operand); } return operand; }
public static Object appendOperator(StringBuilder sb, Object operand, OperatorType operator) { sb.append(' '); sb.append(operator.toSql()); sb.append(' '); if (operator == OperatorType.IN || operator == OperatorType.NOT_IN) { operand = CollectionUtils.toList(operand); } return operand; }
value = CollectionUtils.toList(value);
value = CollectionUtils.toList(value);
value = CollectionUtils.toList(value);
(List<Object>) CollectionUtils.toList(operand);
(List<Object>) CollectionUtils.toList(operand);
final List<?> operands = CollectionUtils.toList(operand); itemQueryBuilder = QueryBuilders.termsQuery(fieldName, operands); } else {
final List<?> operands = CollectionUtils.toList(operand); itemQueryBuilder = QueryBuilders.termsQuery(fieldName, operands); } else {