de.fuberlin.wiwiss.d2rq.sql
Class ResultRowMap
java.lang.Object
de.fuberlin.wiwiss.d2rq.sql.ResultRowMap
- All Implemented Interfaces:
- ResultRow
public class ResultRowMap
- extends Object
- implements ResultRow
A result row returned by a database query, presented as a
map from SELECT clause entries to string values.
- Author:
- Richard Cyganiak (richard@cyganiak.de)
ResultRowMap
public ResultRowMap(Map<ProjectionSpec,String> projectionsToValues)
fromResultSet
public static ResultRowMap fromResultSet(ResultSet resultSet,
List<ProjectionSpec> projectionSpecs,
ConnectedDB database)
throws SQLException
- Throws:
SQLException
get
public String get(ProjectionSpec projection)
- Specified by:
get
in interface ResultRow
toString
public String toString()
- Overrides:
toString
in class Object