// [START createMapReduceSpec]
public static MapReduceSpecification<Long, Integer, Integer, ArrayList<Integer>,
GoogleCloudStorageFileSet> createMapReduceSpec(String bucket, long start, long limit,
int shards) {
ConsecutiveLongInput input = new ConsecutiveLongInput(start, limit, shards);
Mapper<Long, Integer, Integer> mapper = new SeedToRandomMapper();
Marshaller<Integer> intermediateKeyMarshaller = Marshallers.getIntegerMarshaller();
Marshaller<Integer> intermediateValueMarshaller = Marshallers.getIntegerMarshaller();
Reducer<Integer, Integer, ArrayList<Integer>> reducer = new CollisionFindingReducer();
Marshaller<ArrayList<Integer>> outputMarshaller = Marshallers.getSerializationMarshaller();