Package org.teiid.google.dataprotocol
Class GoogleDataProtocolAPI.DataProtocolQueryStrategy
- java.lang.Object
-
- org.teiid.google.dataprotocol.GoogleDataProtocolAPI.DataProtocolQueryStrategy
-
- All Implemented Interfaces:
PartialResultExecutor
- Enclosing class:
- GoogleDataProtocolAPI
public class GoogleDataProtocolAPI.DataProtocolQueryStrategy extends Object implements PartialResultExecutor
Logic to query portion of data from Google Visualization Data Protocol. We do not use any special library just simple Http request. Google sends response back in CSV that we parse afterwards.- Author:
- fnguyen
-
-
Constructor Summary
Constructors Constructor Description DataProtocolQueryStrategy(String key, String worksheetTitle, String query)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Column>
getMetadata()
List<SheetRow>
getResultsBatch(int startIndex, int amount)
Returns part of the result.
-
-
-
Method Detail
-
getResultsBatch
public List<SheetRow> getResultsBatch(int startIndex, int amount)
Description copied from interface:PartialResultExecutor
Returns part of the result.- Specified by:
getResultsBatch
in interfacePartialResultExecutor
- Returns:
- null or empty list if no more results are in the batch. Maximum amount of sheet rows in the result is amount
-
-