Package com.google.appengine.api.log
Class LogQueryResult
- java.lang.Object
-
- com.google.appengine.api.log.LogQueryResult
-
- All Implemented Interfaces:
Iterable<RequestLogs>
public final class LogQueryResult extends Object implements 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 theiterator()
provided by this class to retrieve their results.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 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 interfaceIterable<RequestLogs>
- Returns:
- An iterator that provides RequestLogs to the caller.
-
-