Examples of RowSequence


Examples of uk.ac.starlink.table.RowSequence

                ColumnInfo colInfo = starTable.getColumnInfo(i);
                fields[i] = new VoFieldDesc(colInfo);
            }
        }

        RowSequence rseq = starTable.getRowSequence();
        Vector<Vector<Object>> dataVector = new Vector<Vector<Object>>();
        int rowCount = 0;
        try {
            while (rseq.next()) {
                if (++rowCount > maxRows) {
                    break;
                }
                Object[] rowData = rseq.getRow();
                Vector<Object> row = new Vector<Object>(fields.length);
                List<Object> list = new ArrayList<Object>(Arrays.asList(rowData));
                if (fields.length > numCols) {
                    list.add(0, rowCount);
                }
                row.addAll(list);
                dataVector.add(row);
            }
        }
        finally {
            rseq.close();
        }

        return new VoTable(starTable, catalog, fields, dataVector, hasRaDecColumn);
    }
View Full Code Here

Examples of uk.ac.starlink.table.RowSequence

        } catch (Exception e) {
            e.printStackTrace();
            return;
        }

        RowSequence rseq;
        try {
            rseq = table.getRowSequence();
            try {
                while (rseq.next()) {
                    Object[] row = rseq.getRow();
//                    System.out.println("XXX Found row: " + row[0]); // XXX
                }
            }
            finally {
                rseq.close();
            }
        } catch (IOException e) {
            e.printStackTrace();
            return;
        }
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.