in src/main/java/org/apache/sling/jcr/base/internal/mount/ProxySession.java [170:250]
public RowIterator wrap(final RowIterator iter) {
return new RowIterator() {
@Override
public Row nextRow() {
final Row row = iter.nextRow();
return new Row() {
@Override
public Value[] getValues() throws RepositoryException {
return row.getValues();
}
@Override
public Value getValue(String s) throws ItemNotFoundException, RepositoryException {
return row.getValue(s);
}
@Override
public Node getNode() throws RepositoryException {
return wrap(row.getNode());
}
@Override
public Node getNode(String s) throws RepositoryException {
return wrap(row.getNode(s));
}
@Override
public String getPath() throws RepositoryException {
return row.getPath();
}
@Override
public String getPath(String s) throws RepositoryException {
return row.getPath(s);
}
@Override
public double getScore() throws RepositoryException {
return row.getScore();
}
@Override
public double getScore(String s) throws RepositoryException {
return row.getScore(s);
}
};
}
@Override
public void skip(long l) {
iter.skip(l);
}
@Override
public long getSize() {
return iter.getSize();
}
@Override
public long getPosition() {
return iter.getPosition();
}
@Override
public boolean hasNext() {
return iter.hasNext();
}
@Override
public Object next() {
return nextRow();
}
@Override
public void remove() {
iter.remove();
}
};
}