开发者

Google Docs Spreadsheet: get an individual row

开发者 https://www.devze.com 2023-02-25 01:34 出处:网络
I\'m using the Java APIs to update a Google Spreadsheet from a CSV file. I\'ve created a method for deleting a row:

I'm using the Java APIs to update a Google Spreadsheet from a CSV file. I've created a method for deleting a row:

public void deleteRow(int row) throws IOException, ServiceException {
    URL listFeedUrl = _worksheet.getListFeedUrl();
    ListFeed feed = _service.getFeed(listFe开发者_高级运维edUrl, ListFeed.class);
    List<ListEntry> entries = feed.getEntries();
    ListEntry entry = entries.get(row);
    entry.delete();
}

however, the problem is that I have to get all the entries to get the one entry I want. Is there a way that I can get one or even a smaller subset of the entries so I don't have to wait for the entire entry set to return to only delete one entry? (In its current state, this method takes a long time to run on large spreadsheets)


Have you tried looking at http://code.google.com/apis/spreadsheets/data/3.0/developers_guide.html#SendingStructuredRowQueries?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号