public final class LogInput extends Input<com.google.appengine.api.log.RequestLogs>
Modifier and Type | Field and Description |
---|---|
static long |
EARLIEST_LOG_TIME |
Constructor and Description |
---|
LogInput(com.google.appengine.api.log.LogQuery logQuery,
int shardCount)
Create a new Input for getting App Engine Logs
Shards are created by assuming a uniform distribution of logs over the entire time specified
and naively dividing the distance between the start and end times equally.
|
Modifier and Type | Method and Description |
---|---|
List<? extends InputReader<com.google.appengine.api.log.RequestLogs>> |
createReaders()
Returns a list of readers for this input.
|
getContext
public static final long EARLIEST_LOG_TIME
public LogInput(com.google.appengine.api.log.LogQuery logQuery, int shardCount)
logQuery
- a query with at least a start and end time specified. Additional query options may
also be specified to indicate which log data should be read.shardCount
- the desired number of shardspublic List<? extends InputReader<com.google.appengine.api.log.RequestLogs>> createReaders()
Input
Input
's
responsibility to determine an appropriate number of readers to split into.
This could be specified by the user or determined algorithmically.
The number of input readers returned determines the number of map shards.createReaders
in class Input<com.google.appengine.api.log.RequestLogs>
Copyright © 2015 Google. All rights reserved.