Package edu.brown.utils

Examples of edu.brown.utils.TableDataIterable


    private void loadTableFromCsv(String sTblName, String sLinkPath, VoltTable vt, Map<String, VoltTable> memory)
    {
        Table t = TableEnv.getTable(sTblName);
        try
        {
            Iterator<Object[]> iter = new TableDataIterable(t, new File(sLinkPath)).iterator();
            while (iter.hasNext())
            {
                vt.addRow(iter.next());
            }
View Full Code Here


       
        Table catalog_tbl = args.catalog_db.getTables().get(SEATSConstants.TABLENAME_AIRPORT);
        assert(catalog_tbl != null);
        File f = new File(data_dir.getAbsolutePath() + File.separator + "table." + catalog_tbl.getName().toLowerCase() + ".csv");
        if (f.exists() == false) f = new File(f.getAbsolutePath() + ".gz");
        TableDataIterable iterable = new TableDataIterable(catalog_tbl, f, true, true);
        Map<Long, Pair<Double, Double>> locations = new HashMap<Long, Pair<Double,Double>>();
        for (Object row[] : iterable) {
            Long code = (Long)row[0];
            Double longitude = (Double)row[6];
            Double latitude = (Double)row[7];
View Full Code Here

     * @return
     * @throws Exception
     */
    public Iterable<Object[]> getTable(final Table catalog_tbl) throws Exception {
        File file = new File(EGenLoader.this.output_path + File.separator + catalog_tbl.getName().toUpperCase() + ".txt");
        return (new TableDataIterable(catalog_tbl, file));
    }
View Full Code Here

     * @return
     * @throws Exception
     */
    protected Iterable<Object[]> getFixedIterable(Table catalog_tbl) throws Exception {
        File f = SEATSProjectBuilder.getTableDataFile(this.airline_data_dir, catalog_tbl);
        TableDataIterable iterable = new FixedDataIterable(catalog_tbl, f);
        return (iterable);
    }
View Full Code Here

TOP

Related Classes of edu.brown.utils.TableDataIterable

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.