Examples of HCol


Examples of org.haystack.HCol

        // meta
        verifyEq(g.meta().size(), 1);
        verifyEq(g.meta().get("dis"), HStr.make("Title"));

        // cols
        HCol c;
        verifyEq(g.numCols(), 2);
        c = verifyCol(g, 0, "a");
        verifyEq(c.dis(), "Alpha");
        verifyEq(c.meta().size(), 1);
        verifyEq(c.meta().get("dis"), HStr.make("Alpha"));

        // rows
        verifyEq(g.numRows(), 0);
        verifyEq(g.isEmpty(), true);
View Full Code Here

Examples of org.haystack.HCol

        // iterator
        verifyGridIterator(g);
    }

    HCol verifyCol(HGrid g, int i, String n) {
        HCol col = g.col(i);
        verify(g.col(i) == g.col(n));
        verifyEq(col.name(), n);
        return col;
    }
View Full Code Here

Examples of org.haystack.HCol

        // build and return result grid
        HDict meta = new HDictBuilder().add("id", id).add("hisStart", r.start).add("hisEnd", r.end).toDict();
        writer.writeMeta(meta);

        HDictBuilder dictBuilder = new HDictBuilder();
        HCol[] cols = { new HCol(0, "ts", dictBuilder.toDict()), new HCol(1, "val", dictBuilder.toDict()), };
        writer.writeCols(cols);

        // route to subclass
        onHisRead(rec, r, writer, cols);
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.