Package com.inadco.hbl.api

Examples of com.inadco.hbl.api.Measure.compiler2Fact()


    @Override
    public DataByteArray exec(Tuple input) throws IOException {
        Object measureKey = input.get(0);
        Measure m = measureKey == null ? null : cube.getMeasures().get(measureName);
        Validate.notNull(m, "no measure passed/found");
        Object d = m.compiler2Fact(input.get(1));
        // we don't measures to evaluate to nulls to simplify null issues .
        if (d == null)
            return null;

        Aggregation.Builder aggrb = Aggregation.newBuilder();
View Full Code Here


    private static Object compiler2Fact(Cube cube, String measureName, Tuple input) throws ExecException {
        Measure m = cube.getMeasures().get(measureName);
        Validate.notNull(m, "no measure passed/found");

        Object val = input.get(0);
        Object d = m.compiler2Fact(val instanceof Tuple ? ((Tuple) val).getAll() : val);

        return d;
    }

    @Override
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.