Notice: Over the next few months, we're reorganizing the App Engine documentation site to make it easier to find content and better align with the rest of Google Cloud products. The same content will be available, but the navigation will now match the rest of the Cloud products.

LogQueryResult (Google App Engine API for Java)

Stay organized with collections Save and categorize content based on your preferences.

Class LogQueryResult

  • java.lang.Object
  • All Implemented Interfaces:

    public final class LogQueryResult
    extends java.lang.Object
    implements java.lang.Iterable<RequestLogs>
    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 iterator() provided by this class to retrieve their results.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.util.Iterator<RequestLogs> iterator()
      Returns an Iterator that will yield all of the logs the user has requested.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Method Detail

      • iterator

        public java.util.Iterator<RequestLogs> iterator()
        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.
        Specified by:
        iterator in interface java.lang.Iterable<RequestLogs>
        An iterator that provides RequestLogs to the caller.