def __init__(self, client, options, execution_context, query_execution_info): ''' Constructor ''' super(self.__class__, self).__init__(client, options) if options.get('maxItemCount'): self._page_size = options['maxItemCount'] else: self._page_size = _PipelineExecutionContext.DEFAULT_PAGE_SIZE self._execution_context = execution_context self._endpoint = endpoint_component._QueryExecutionEndpointComponent( execution_context) order_by = query_execution_info.get_order_by() if (order_by): self._endpoint = endpoint_component._QueryExecutionOrderByEndpointComponent( self._endpoint) top = query_execution_info.get_top() if not (top is None): self._endpoint = endpoint_component._QueryExecutionTopEndpointComponent( self._endpoint, top) aggregates = query_execution_info.get_aggregates() if aggregates: self._endpoint = endpoint_component._QueryExecutionAggregateEndpointComponent( self._endpoint, aggregates)
def __init__(self, client, options, execution_context, query_execution_info): ''' Constructor ''' super(self.__class__, self).__init__(client, options) if options.get('maxItemCount'): self._page_size = options['maxItemCount'] else: self._page_size = _PipelineExecutionContext.DEFAULT_PAGE_SIZE self._execution_context = execution_context self._endpoint = endpoint_component._QueryExecutionEndpointComponent(execution_context) order_by = query_execution_info.get_order_by() if (order_by): self._endpoint = endpoint_component._QueryExecutionOrderByEndpointComponent(self._endpoint) top = query_execution_info.get_top() if not (top is None): self._endpoint = endpoint_component._QueryExecutionTopEndpointComponent(self._endpoint, top) aggregates = query_execution_info.get_aggregates() if aggregates: self._endpoint = endpoint_component._QueryExecutionAggregateEndpointComponent(self._endpoint, aggregates)