private Object[] asRow(Map<String,?> rowMap,Object defaultValue,boolean returnRowId){
  int len=_columns.size();
  if (returnRowId) {
    ++len;
  }
  Object[] row=new Object[len];
  if (defaultValue != null) {
    Arrays.fill(row,defaultValue);
  }
  if (returnRowId) {
    row[len - 1]=ColumnImpl.RETURN_ROW_ID;
  }
  if (rowMap == null) {
    return row;
  }
  for (  ColumnImpl col : _columns) {
    if (rowMap.containsKey(col.getName())) {
      col.setRowValue(row,col.getRowValue(rowMap));
    }
  }
  return row;
}

private Object [ ] asRow ( Map < String , ? > rowMap , Object defaultValue , boolean returnRowId ) { int len = _columns . size ( ) ; if ( returnRowId ) { ++ len ; } Object [ ] row = new Object [ len ] ; if ( defaultValue != null ) { Arrays . fill ( row , defaultValue ) ; } if ( returnRowId ) { row [ len - 1 ] = ColumnImpl . RETURN_ROW_ID ; } if ( rowMap == null ) { return row ; } for ( ColumnImpl col : _columns ) { if ( rowMap . containsKey ( col . getName ( ) ) ) { col . setRowValue ( row , col . getRowValue ( rowMap ) ) ; } } return row ; }
converts a map of columnname - > columnvalue to an array of row values .
