public class GoogleDataProtocolAPI extends Object
Modifier and Type | Class and Description |
---|---|
class |
GoogleDataProtocolAPI.DataProtocolQueryStrategy
Logic to query portion of data from Google Visualization Data Protocol.
|
Constructor and Description |
---|
GoogleDataProtocolAPI() |
Modifier and Type | Method and Description |
---|---|
org.teiid.translator.google.api.result.RowsResult |
executeQuery(org.teiid.translator.google.api.metadata.SpreadsheetInfo info,
String worksheetTitle,
String query,
int batchSize,
Integer offset,
Integer limit)
Most important method that will issue query [1] to specific worksheet.
|
List<org.teiid.translator.google.api.metadata.Column> |
getMetadata(String key,
String worksheetTitle) |
void |
setCredentialUtil(GoogleCredentialUtil util) |
public static String ENCODING
public void setCredentialUtil(GoogleCredentialUtil util)
public org.teiid.translator.google.api.result.RowsResult executeQuery(org.teiid.translator.google.api.metadata.SpreadsheetInfo info, String worksheetTitle, String query, int batchSize, Integer offset, Integer limit)
info
- The google spreadsheetInfoworksheetTitle
- The spreadsheet titlequery
- The query defined in [1]batchSize
- How big portions of data should be returned by one roundtrip
to Google.offset
- The offset to use, if not nulllimit
- The limit to use, if not nullCopyright © 2019. All rights reserved.