You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
732 B
Java
27 lines
732 B
Java
package eu.dnetlib.enabling.resultset;
|
|
|
|
import javax.xml.ws.wsaddressing.W3CEndpointReference;
|
|
|
|
/**
|
|
* Create a new resultset which takes each record of the input resultset and counts them.
|
|
*
|
|
* @author claudio
|
|
*
|
|
*/
|
|
public class CountingResultSetFactory extends MappedResultSetFactory {
|
|
|
|
/**
|
|
* Create a new resultset which takes each record of the input resultset and counts them.
|
|
*
|
|
* @param source
|
|
* source resultset epr
|
|
* @param mapper
|
|
* mapper function
|
|
* @return mapped resultset epr
|
|
*/
|
|
public W3CEndpointReference createCountingResultSet(final W3CEndpointReference source) {
|
|
return getResultSetFactory().createResultSet(new CountingResultSet(source, getServiceResolver()));
|
|
}
|
|
|
|
}
|