/// <summary> /// Initializes a new instance of the <see cref="QueryRequestAckTypeData"/> class /// </summary> /// <param name="numberOfHits">This many hits have been returned in this page.</param> /// <param name="numberOfFilteredHits">This many records have been filtered from the original result by the lists.</param> /// <param name="hasMorePage">Its value is true if the result has not fitted into this page, meaning that there are more records.</param> /// <param name="queryContextDescriptor">Query status descriptor for querying the next pages.</param> /// <param name="fieldDescriptors">The field descriptors.</param> /// <param name="records">The field values of the query result in the sort order.</param> /// <param name="numberOfTotalHits">The number of total hits (records) across all pages from the query.</param> public QueryRequestAckTypeData(long numberOfHits, long numberOfFilteredHits, bool hasMorePage, QueryContextDescriptor queryContextDescriptor, List <FieldDescriptor> fieldDescriptors, List <List <object> > records, long numberOfTotalHits) { this.numberOfHits = numberOfHits; this.numberOfFilteredHits = numberOfFilteredHits; this.hasMorePage = hasMorePage; this.queryContextDescriptor = queryContextDescriptor; this.fieldDescriptors = fieldDescriptors; this.records = records; this.numberOfTotalHits = numberOfTotalHits; }
/// <summary> /// Initializes a new instance of the <see cref="QueryRequestAckTypeData"/> class /// </summary> /// <param name="numberOfHits">This many hits have been returned in this page.</param> /// <param name="numberOfFilteredHits">This many records have been filtered from the original result by the lists.</param> /// <param name="hasMorePage">Its value is true if the result has not fitted into this page, meaning that there are more records.</param> /// <param name="queryContextDescriptor">Query status descriptor for querying the next pages.</param> /// <param name="fieldDescriptors">The field descriptors.</param> /// <param name="records">The field values of the query result in the sort order.</param> public QueryRequestAckTypeData(long numberOfHits, long numberOfFilteredHits, bool hasMorePage, QueryContextDescriptor queryContextDescriptor, List <FieldDescriptor> fieldDescriptors, List <List <object> > records) : this(numberOfHits, numberOfFilteredHits, hasMorePage, queryContextDescriptor, fieldDescriptors, records, 0) { }
/// <summary> /// Initializes a new instance of the <see cref="NextQueryPageRequestData"/> class /// </summary> /// <param name="queryContextDescriptor">Query status descriptor for querying the next pages.</param> /// <param name="timeout">The timeout value in milliseconds.</param> public NextQueryPageRequestData(QueryContextDescriptor queryContextDescriptor, long timeout) { this.queryContextDescriptor = queryContextDescriptor; this.timeout = timeout; }