Javaを介してGoogleのスプレッドシートサービスから列の最初の空のセルを取得する良い方法はありますか?
私は使用できることを知っています:
public CellFeed CheckColumn(int row, int col)
throws IOException, ServiceException {
CellQuery query = new CellQuery(cellFeedUrl);
query.setMinimumRow(row);
query.setMaximumRow(row);
query.setMinimumCol(col);
query.setMaximumCol(col);
query.setReturnEmpty(true);
CellFeed feed = service.query(query, CellFeed.class);
int cell_loc[];
for (CellEntry entry : feed.getEntries()) {
cell_loc=CheckIfEmpty(entry);
}
return cell_loc;
}
エントリをウォークスルーしますが、列全体を一度にロードするのではなく、ユーザーにとっては遅く、列全体をウォークスルーするのは悪いようです。
何かご意見は?