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

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


  @Test
  public void testMapOnlyJobWithSizeSegmentedOutput() throws Exception {
    String mimeType = "application/json";
    String fileNamePattern = "MapOnlySegmentingTestShard-%04d/file-%04d";

    SizeSegmentedGoogleCloudStorageFileOutput output =
        new SizeSegmentedGoogleCloudStorageFileOutput(BUCKET, 30, fileNamePattern, mimeType);
    MarshallingOutput<String, GoogleCloudStorageFileSet> op =
        new MarshallingOutput<>(output, Marshallers.getStringMarshaller());

    MapSpecification<Long, String, GoogleCloudStorageFileSet> spec = new MapSpecification.Builder<>(
        new ConsecutiveLongInput(0, 100, 1), new MapOnly(), op).setJobName("Test job").build();
View Full Code Here

TOP

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

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.