Hi Darren, The only workarounds I can think of to produce a Set right now would be:
fetch().intoMap(field).keySet(); new HashSet<>(fetch().getValues(field)); Both aren't optimal, of course. I have registered a feature request for this: https://github.com/jOOQ/jOOQ/issues/2997 However, I think that just adding intoSet() and similar wouldn't do the trick. Some more general approach at operating on rows and columns could be useful. I'm thinking about getting some inspiration from Guava's Table type: http://docs.guava-libraries.googlecode.com/git/javadoc/com/google/common/collect/Table.html Cheers Lukas 2014-01-30 Darren S <[email protected]>: > Would it make sense to have a series of methods on Result just like > intoArray(), but instead take a Collection as an arguement. I find that I > keep wanting to select a single field into a Set. I don't see a straight > forward way of doing that. I usually end up just using a RecordHandler to > add each value to a set. > > Darren > > -- > You received this message because you are subscribed to the Google Groups > "jOOQ User Group" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "jOOQ User Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
