Package com.foundationdb.server.api.dml.scan

Examples of com.foundationdb.server.api.dml.scan.NiceRow.toRowData()


        NewRow niceRow = new NiceRow(rowDef.getRowDefId(), rowDef);
        int fields = rowDef.table().getColumnsIncludingInternal().size();
        for(int i = 0; i < fields; ++i) {
            creator.put(row.value(i), niceRow, i);
        }
        return niceRow.toRowData();
    }

    public abstract IndexRow newIndexRow (IndexRowType indexRowType);
   
    public abstract IndexRow takeIndexRow(IndexRowType indexRowType);
View Full Code Here


        // Insert longs, not integers, because Persistit stores all ints as 8-byte.
        niceRow.put(cId, 100);
        niceRow.put(cA, 200);
        niceRow.put(cB, 300);
        niceRow.put(cC, null);
        LegacyRowWrapper legacyRow = new LegacyRowWrapper(niceRow.getRowDef(), niceRow.toRowData());
        assertEquals(100, legacyRow.get(cId));
        assertEquals(200, legacyRow.get(cA));
        assertEquals(300, legacyRow.get(cB));
        assertNull(legacyRow.get(cC));
        legacyRow.put(cA, 222);
View Full Code Here

        niceRow.put(cId, 0);
        niceRow.put(cA, 0);
        niceRow.put(cB, 0);
        niceRow.put(cC, 0);
        // Create initial legacy row
        LegacyRowWrapper legacyRow = new LegacyRowWrapper(niceRow.getRowDef(), niceRow.toRowData());
        assertEquals(0, legacyRow.get(cA));
        assertEquals(0, legacyRow.get(cB));
        assertEquals(0, legacyRow.get(cC));
        // Apply a few updates
        legacyRow.put(cA, 1);
View Full Code Here

        // Insert longs, not integers, because Persistit stores all ints as 8-byte.
        original.put(cId, 100);
        original.put(cA, 200);
        original.put(cB, 300);
        RowDef rowDef = getRowDef(t);
        RowData rowData = original.toRowData();
        NiceRow reconstituted = (NiceRow) NiceRow.fromRowData(rowData, rowDef);
        assertEquals(original, reconstituted);
    }

    @Test
View Full Code Here

        // Insert longs, not integers, because Persistit stores all ints as 8-byte.
        original.put(cId, 100);
        original.put(cA, 200);
        original.put(cB, null);
        RowDef rowDef = getRowDef(t);
        RowData rowData = original.toRowData();
        NiceRow reconstituted = (NiceRow) NiceRow.fromRowData(rowData, rowDef);
        assertEquals(original, reconstituted);
    }

    @Test
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.