Package com.google.appengine.tools.mapreduce.outputs

Examples of com.google.appengine.tools.mapreduce.outputs.DatastoreOutput


      int shardCount) {
    // [START mapSpec]
    MapSpecification<Long, Entity, Void> spec = new MapSpecification.Builder<>(
        new ConsecutiveLongInput(0, entities, shardCount),
        new EntityCreator(datastoreType, bytesPerEntity),
        new DatastoreOutput())
        .setJobName("Create MapReduce entities")
        .build();
    // [END mapSpec]
    return spec;
  }
View Full Code Here


    // Reducer<K,V,O>, Reducer<String, String, ReadingHistory>, so K=String, V=String,
    // O=ReadingHistory
    Reducer<String, String, ReadingHistory> reducer = new ReadingReducer();

    // Output<O,R>, Output<ReadingHistory>, so O=ReadingHistory, R=Void
    Output output = new DatastoreOutput();

    MapReduceSpecification<Entity, String, String, ReadingHistory, Object> mrspecs =
        new MapReduceSpecification.Builder<>(input, mapper, reducer, output)
            .setKeyMarshaller(Marshallers.getStringMarshaller())
            .setValueMarshaller(Marshallers.getStringMarshaller()).setNumReducers(reduceShardCount)
View Full Code Here

TOP

Related Classes of com.google.appengine.tools.mapreduce.outputs.DatastoreOutput

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.