Class MapResultSetProcessor<K,V>

java.lang.Object
org.dalesbred.internal.result.MapResultSetProcessor<K,V>
All Implemented Interfaces:
ResultSetProcessor<Map<K,V>>

public final class MapResultSetProcessor<K,V> extends Object implements ResultSetProcessor<Map<K,V>>
ResultSetProcessor that expects results with two columns and creates map from them.

This processor updates the map in order in which the rows are read. Therefore, if the keys of the result are not distinct, the result contains the last binding of given key.