/** * Create a {@link Query} and set the field list in the {@code SELECT} clause. * * @param fields The fields to select, as comma-delimited field names. Spaces are OK. Must not contain {@code "*"}. * @return non-null Query * @throws java.lang.IllegalArgumentException if fields contains {@code "*"} */ public static Query select(String fields) { return new Query(QueryType.SELECT, fields); }
/** * Create a {@link Query} and set the field list in the {@code SELECT} clause. * * @param fields The fields to select, as comma-delimited field names. Spaces are OK. Must not contain {@code "*"}. * @return non-null Query * @throws java.lang.IllegalArgumentException if fields contains {@code "*"} */ public static Query select(String fields) { return new Query(QueryType.SELECT, fields); }