@Test public void query_hash_map() { JdbcIntermediateSession session = openSession(); performStatements(session, "create table if not exists map_1 (K integer, V bigint)", "insert into map_1 values (11,10000001), (22,20000002), (33,30000003)" ); JdbcIntermediateSeance seance = session.openSeance("select * from map_1", null); seance.execute(); JdbcIntermediateCursor<Map<Integer, Long>> cursor = seance.openDefaultCursor(Layouts.hashMapOf(Integer.class, Long.class)); Map<Integer, Long> map = cursor.fetch(); assertThat(map).containsEntry(11, 10000001L) .containsEntry(22, 20000002L) .containsEntry(33, 30000003L) .hasSize(3); }