private void readRecord ( byte [ ] buffer , Table table ) { //System.out.println(ByteArrayHelper.hexdump(buffer, true, 16, "")); int deletedFlag = getShort ( buffer , 0 ) ; if ( deletedFlag != 0 ) { Map < String , Object > row = new HashMap < String , Object > ( ) ; for ( ColumnDefinition column : m_definition . getColumns ( ) ) { Object value = column . read ( 0 , buffer ) ; //System.out.println(column.getName() + ": " + value); row . put ( column . getName ( ) , value ) ; } table . addRow ( m_definition . getPrimaryKeyColumnName ( ) , row ) ; } }
Reads a single record from the table .