Google Docs Spreadsheet: get an individual 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?
精彩评论