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

Examples of com.foundationdb.server.api.dml.scan.NewRow


        CsvRowReader reader = new CsvRowReader(t1, columns,
                                               istr, new CsvFormat("UTF-8"),
                                               null, MTypesTranslator.INSTANCE);
        reader.skipRows(1); // Header
        List<NewRow> rows = new ArrayList<>();
        NewRow row;
        while ((row = reader.nextRow()) != null)
            rows.add(row);
        assertEquals("number of rows", ROWS.length, rows.size());
        for (int i = 0; i < ROWS.length; i++) {
            Object[] orow = ROWS[i];
            row = rows.get(i);
            assertEquals("row " + i + " size", orow.length, row.getRowDef().getFieldCount());
            for (int j = 0; j < orow.length; j++) {
                assertEquals("row " + i + " col " + j, orow[j], row.get(j));
            }
        }
    }
View Full Code Here

TOP

Related Classes of com.foundationdb.server.api.dml.scan.NewRow

Copyright © 2018 www.massapicom. 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.