package lc.mecha.olap.xmla;

import lc.eo.EO;
import lc.eo.EOLoop;

import javax.xml.stream.XMLStreamException;

public class XmlaUtil {

    public static void drain(EO dst, String key, XmlaResultSet rs) throws XMLStreamException {
        EOLoop loop = new EOLoop();
        while (rs.next()) {
            loop.add(rs.getRow());
        }
        dst.setValue(key, loop);
    }
}
