se.l4.silo.results.TransformingQueryFetchResult Maven / Gradle / Ivy
The newest version!
package se.l4.silo.results;
import java.util.function.Function;
import se.l4.silo.query.QueryFetchResult;
/**
* Implementation of {@link QueryFetchResult} for transforming results.
*
* @author Andreas Holstenson
*
* @param
*/
public class TransformingQueryFetchResult
extends TransformingFetchResult
implements QueryFetchResult
{
private final QueryFetchResult> in;
public TransformingQueryFetchResult(QueryFetchResult in, Function func)
{
super(in, func);
this.in = in;
}
@Override
public M getMetadata(String key)
{
return in.getMetadata(key);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy