Examples of meta()


Examples of org.haystack.HCol.meta()

        // 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.meta()

        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.HGrid.meta()

* GridTest tests the HGrid class
*/
public class GridTest extends Test {
    public void testEmpty() {
        HGrid g = new HGridBuilder().toGrid();
        verifyEq(g.meta(), HDict.EMPTY);
        verifyEq(g.numRows(), 0);
        verifyEq(g.isEmpty(), true);
        verifyEq(g.col("foo", false), null);
        try {
            g.col("foo");
View Full Code Here

Examples of org.haystack.HGrid.meta()

        b.addCol("a").add("dis", "Alpha");
        b.addCol("b");
        HGrid g = b.toGrid();

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

        // cols
        HCol c;
        verifyEq(g.numCols(), 2);
View Full Code Here

Examples of org.haystack.HGrid.meta()

        b.addCol("b");
        HGrid g = b.toGrid();

        // 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");
View Full Code Here

Examples of org.haystack.HGrid.meta()

        b.addRow(new HVal[] { HRef.make("a"), HStr.make("Alpha"), HNum.make(1200) });
        b.addRow(new HVal[] { HRef.make("b"), HStr.make("Beta"), null });

        // meta
        HGrid g = b.toGrid();
        verifyEq(g.meta().size(), 0);

        // cols
        verifyEq(g.numCols(), 3);
        verifyCol(g, 0, "id");
        verifyCol(g, 1, "dis");
View Full Code Here

Examples of org.haystack.HGrid.meta()

    //////////////////////////////////////////////////////////////////////////

    void verifyHisRead() throws Exception {
        HDict kw = client.read("kw and siteMeter");
        HGrid his = client.hisRead(kw.id(), "yesterday");
        verifyEq(his.meta().id(), kw.id());
        verifyEq(ts(his.meta(), "hisStart").date, HDate.today().minusDays(1));
        verifyEq(ts(his.meta(), "hisEnd").date, HDate.today());
        verify(his.numRows() > 90);
        int last = his.numRows() - 1;
        verifyEq(ts(his.row(0)).date, HDate.today().minusDays(1));
View Full Code Here

Examples of org.haystack.HGrid.meta()

    void verifyHisRead() throws Exception {
        HDict kw = client.read("kw and siteMeter");
        HGrid his = client.hisRead(kw.id(), "yesterday");
        verifyEq(his.meta().id(), kw.id());
        verifyEq(ts(his.meta(), "hisStart").date, HDate.today().minusDays(1));
        verifyEq(ts(his.meta(), "hisEnd").date, HDate.today());
        verify(his.numRows() > 90);
        int last = his.numRows() - 1;
        verifyEq(ts(his.row(0)).date, HDate.today().minusDays(1));
        verifyEq(ts(his.row(0)).time, HTime.make(0, 15));
View Full Code Here

Examples of org.haystack.HGrid.meta()

    void verifyHisRead() throws Exception {
        HDict kw = client.read("kw and siteMeter");
        HGrid his = client.hisRead(kw.id(), "yesterday");
        verifyEq(his.meta().id(), kw.id());
        verifyEq(ts(his.meta(), "hisStart").date, HDate.today().minusDays(1));
        verifyEq(ts(his.meta(), "hisEnd").date, HDate.today());
        verify(his.numRows() > 90);
        int last = his.numRows() - 1;
        verifyEq(ts(his.row(0)).date, HDate.today().minusDays(1));
        verifyEq(ts(his.row(0)).time, HTime.make(0, 15));
        verifyEq(ts(his.row(last)).date, HDate.today());
View Full Code Here

Examples of org.haystack.HGridBuilder.meta()

        }
    }

    public void testNoRows() {
        HGridBuilder b = new HGridBuilder();
        b.meta().add("dis", "Title");
        b.addCol("a").add("dis", "Alpha");
        b.addCol("b");
        HGrid g = b.toGrid();

        // meta
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.