An object that is the result of performing a LogService.fetch() operation. LogQueryResults
contain the logs from the user's query. Users of this service should use the LogQueryResult#iterator provided by this class to retrieve their results.
Returns an Iterator that will yield all of the logs the user has requested.
If the user has asked for more logs than a single request can accommodate
(which is LogService.MAX_ITEMS_PER_FETCH), then this iterator grabs
the first batch and returns them until they are exhausted. Once they are
exhausted, a fetch() call is made to get more logs and the process is
repeated until either all of the logs have been read or the user has
stopped asking for more logs.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Class LogQueryResult (2.0.0)\n\n public final class LogQueryResult implements Iterable\u003cRequestLogs\u003e\n\nAn object that is the result of performing a LogService.fetch() operation. LogQueryResults\ncontain the logs from the user's query. Users of this service should use the [LogQueryResult#iterator](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.log.LogQueryResult#com_google_appengine_api_log_LogQueryResult_iterator_) provided by this class to retrieve their results. \n\nInheritance\n-----------\n\n[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \\\u003e LogQueryResult \n\nImplements\n----------\n\n[Iterable\\\u003cRequestLogs\\\u003e](https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable\u003ccom/google/appengine/api/log/RequestLogs\u003e.html) \n\nInherited Members\n-----------------\n\n[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) \n[Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) \n[Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) \n[Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) \n[Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) \n[Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) \n[Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) \n[Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) \n[Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) \n[Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) \n[Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)\n\nStatic Methods\n--------------\n\n### parseOffset(String offset)\n\n protected static LogServicePb.LogOffset parseOffset(String offset)\n\nReturns a LogOffset parsed from the submitted String, which is assumed to be a Base64-encoded\noffset produced by this class.\n\nConstructors\n------------\n\n### LogQueryResult(LogServicePb.LogReadResponse response, LogQuery originalQuery)\n\n protected LogQueryResult(LogServicePb.LogReadResponse response, LogQuery originalQuery)\n\nMethods\n-------\n\n### iterator()\n\n public Iterator\u003cRequestLogs\u003e iterator()\n\nReturns an Iterator that will yield all of the logs the user has requested.\nIf the user has asked for more logs than a single request can accommodate\n(which is LogService.MAX_ITEMS_PER_FETCH), then this iterator grabs\nthe first batch and returns them until they are exhausted. Once they are\nexhausted, a fetch() call is made to get more logs and the process is\nrepeated until either all of the logs have been read or the user has\nstopped asking for more logs."]]