public static List < Object > buildSingleColumnResults ( Result result , int column , GeoPackageDataType dataType , Integer limit ) { List < Object > results = new ArrayList <> ( ) ; try { while ( result . moveToNext ( ) ) { Object value = result . getValue ( column , dataType ) ; results . add ( value ) ; if ( limit != null && results . size ( ) >= limit ) { break ; } } } finally { result . close ( ) ; } return results ; }
Build single column result rows from the result and the optional limit