boolean hasRaDecColumn = _hasRaDecColumn(starTable);
VoFieldDesc[] fields;
if (!hasIdColumn && hasRaDecColumn) {
// Add a unique id column
fields = new VoFieldDesc[numCols + 1];
fields[0] = new VoFieldDesc(new ColumnInfo("Id"));
fields[0].setIsId(true);
fields[0].setDescription(GENERATED_ID_DESC);
for (int i = 0; i < numCols; i++) {
ColumnInfo colInfo = starTable.getColumnInfo(i);
fields[i + 1] = new VoFieldDesc(colInfo);
}
} else {
fields = new VoFieldDesc[numCols];
for (int i = 0; i < numCols; i++) {
ColumnInfo colInfo = starTable.getColumnInfo(i);
fields[i] = new VoFieldDesc(colInfo);
}
}
RowSequence rseq = starTable.getRowSequence();