public final class ConsecutiveLongInput extends Input<Long>
| Constructor and Description |
|---|
ConsecutiveLongInput(long start,
long limit,
int shardCount)
Produces longs from (inclusive) to
limit (exclusive). |
| Modifier and Type | Method and Description |
|---|---|
List<? extends InputReader<Long>> |
createReaders()
Returns a list of readers for this input.
|
String |
toString() |
getContextpublic ConsecutiveLongInput(long start,
long limit,
int shardCount)
limit (exclusive).
The interval is partitioned into shardCount subintervals of roughly
equal size, one for each shard. Each shard produces its longs in ascending
order.public List<? extends InputReader<Long>> createReaders()
InputInput'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<Long>Copyright © 2015 Google. All rights reserved.