When the total record count is higher (in millions ) then the iterator_1 is set with very minimal value like in a few thousand. But when the data is less, both are having the same set of records. In iterator_1 fetching only the values and then setting iterator. In iterator_2 fetching all records and setting iterator.
Ideally, both are the same right? But getting inconsistent outputs. can someone please help to understand?
TableResult results = bigquery.query(queryConfig);
Iterator<FieldValueList> iterator_1 = results.getValues().iterator();
Iterator<FieldValueList> iterator_2 = results.iterateAll().iterator();