Class 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 Detail

      • DataProtocolQueryStrategy

        public DataProtocolQueryStrategy​(String key,
                                         String worksheetTitle,
                                         String query)
    • 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 interface PartialResultExecutor
        Returns:
        null or empty list if no more results are in the batch. Maximum amount of sheet rows in the result is amount