Class ResultRowMapper

java.lang.Object
cz.cvut.kbss.jopa.query.mapper.ResultRowMapper
All Implemented Interfaces:
SparqlResultMapper

public class ResultRowMapper extends Object implements SparqlResultMapper
Represents a single SparqlResultSetMapping instance.

This instance can contain multiple SparqlResultMapper instances, representing the individual mappings specified by the SparqlResultSetMapping.

  • Constructor Details

    • ResultRowMapper

      public ResultRowMapper(String name)
  • Method Details

    • getName

      public String getName()
      Gets the name of the result set mapping represented by this mapper.
      Returns:
      Mapping name
    • map

      public Object map(ResultRow resultRow, UnitOfWork uow)
      Description copied from interface: SparqlResultMapper
      Maps (a subset of) the specified current result row to output based on this instance's configuration.
      Specified by:
      map in interface SparqlResultMapper
      Parameters:
      resultRow - The result row to map
      uow - Current persistence context
      Returns:
      Result of the mapping