/** * <p> Creates a {@link In} query which asserts that an attribute has at least one value matching any value in a set of values. * <p> If the given attribute is a {@link com.googlecode.cqengine.attribute.SimpleAttribute}, this method will set a hint in the query to * indicate that results for the child queries will inherently be disjoint and so will not require deduplication. * * @param entityIndex The index to which the query refers * @param attributeValues TThe set of values to match * @param <A> The type of the attribute * @param <O> The type of the object containing the attribute * @return An {@link In} query */ @Deprecated static <O extends Entity, A> Query<EntityHandle<O>> in(EntityIndex<O, A> entityIndex, Collection<A> attributeValues) { return in(entityIndex, entityIndex instanceof SimpleIndex, attributeValues); }
/** * <p> Creates a {@link In} query which asserts that an attribute has at least one value matching any value in a set of values. * <p> If the given attribute is a {@link com.googlecode.cqengine.attribute.SimpleAttribute}, this method will set a hint in the query to * indicate that results for the child queries will inherently be disjoint and so will not require deduplication. * * @param entityIndex The index to which the query refers * @param attributeValues The set of values to match * @param <A> The type of the attribute * @param <O> The type of the object containing the attribute * @return An {@link In} query */ @Deprecated static <O extends Entity, A> Query<EntityHandle<O>> in(EntityIndex<O, A> entityIndex, A... attributeValues) { return in(entityIndex, Arrays.asList(attributeValues)); }