lib/connection/result/row_stream.js
function externalizeRow(row, columns, mapColumnIdToExtractFnName)
{
  var externalizedRow = {};
  for (var index = 0, length = columns.length; index < length; index++)
  {
    var column = columns[index];
    var extractFnName = mapColumnIdToExtractFnName[column.getId()];
    externalizedRow[column.getName()] = row[extractFnName](column.getId());
  }

  return externalizedRow;
}
function externalizeRow(row, columns, mapColumnIdToExtractFnName)
{
  var externalizedRow = {};
  for (var index = 0, length = columns.length; index < length; index++)
  {
    var column = columns[index];
    var extractFnName = mapColumnIdToExtractFnName[column.getId()];
    externalizedRow[column.getName()] = row[extractFnName](column.getId());
  }

  return externalizedRow;
}
function externalizeRow ( row , columns , mapColumnIdToExtractFnName ) { var externalizedRow = { } ; for ( var index = 0 , length = columns . length ; index < length ; index ++ ) { var column = columns [ index ] ; var extractFnName = mapColumnIdToExtractFnName [ column . getId ( ) ] ; externalizedRow [ column . getName ( ) ] = row [ extractFnName ] ( column . getId ( ) ) ; } return externalizedRow ; }
Converts an internal representation of a result row to a format appropriate
for consumption by the outside world.

@param {Object} row
@param {Object[]} columns
@param {Object} [mapColumnIdToExtractFnName]

@returns {Object}
Converts an internal representation of a result row to a format appropriate for consumption by the outside world .